Activation failed: Missing external jar

Hi,
I'm using an external jar in my WebDynpro development for ESS. I placed this jar file in the lib folder. Everything works fine when deploying to the development server directly.
During activation, i got the error which describing the imported classes from the jar file cannot be found. I'm confirmed this jar file was uploaded into the open activity prior to the activation.
How to solve this problem?
Any help would be highly appreciated. Thanks.
- julius

Hi julius,
if you want to use a class in a jar file in your WebDynpro Development DC, you have to do the following steps:
1) create a external library component , copy your jar file into the library folder
2) creating two public parts one of the type assembly the other one of the type compilation
3)create a j2ee library component and use the Public part of type assembly from step one as used component. Build and Deploy that component (sda file) to your server.
4)In your WD DC use the PP from step 1 of type compilation, build the DC -> then you can use the classes of yor jar file.--> Organize Imports
5)Last step: navigate to the properties of your WD project-> select Web Dynpro References -> select Library references and perss add. Enter the name of the j2ee library component ( this is for runtime dependency)
regrds
Martin

Similar Messages

  • 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.

  • Web Dynpro component activation failed

    I tried to activate a web dynpro component and the activation failed. Have listed error messages from the request log and activation log. Do let me know what could be the issue. The application deployed successfully on my local J2EE.
    Request log details are as follows:
    ===== Processing =====
    BUILD DCs
         "hubbell.com/appl/ptl.wd.regtool" in variant "default"
              .. FAILURE: The build failed due to compilation errors. See build log for details. [result code: 202]
    ===== Processing =====  finished at 2005-11-29 00:09:48.813 GMT and took 18 s 899 ms
    ===== Post-Processing =====
    Check whether build was successful for all required variants...
         "hubbell.com/appl/ptl.wd.regtool" in variant "default"   FAILED
    ===== Post-Processing =====  finished at 2005-11-29 00:09:48.823 GMT and took 3 ms
    Change request state from PROCESSING to FAILED
    ERROR! The following problem(s) occurred  during request processing:
    ERROR! The following error occurred  during request processing:Activation FAILED due to build problems. See build logs for details.
    Activation log details are as follows:
    wdgen] [Info]    Initialize generation templates from configuration jar:file:/usr/sap/EDP/JC00/j2ee/cluster/server0/temp/CBS/79/.B/3223/DCs/sap.com/tc/bi/wd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml
        [wdgen] [Error]   com.hubbell.ptl.rgstr.app.Registration -->
       Application Registration: Component is missing
        [wdgen] [Error]   com.hubbell.ptl.rgstr.app.Registration -->
       Application Registration: Startup plug is missing
        [wdgen] [Error]   Generation failed due to errors (0 seconds)
    Build with ERRORS
    file:/usr/sap/EDP/JC00/j2ee/cluster/server0/temp/CBS/79/.B/3223/DCs/hubbell.com/appl/ptl.wd.regtool/_comp/gen/default/logs/build.xml:49: [Error]   Generation failed!

    There's obviously something missing in your WD DC: "Startup plug is missing". Your code has been checked-in to the inactive workspace. What you can do now is synchronize your DC with the server. You should get the same error then in your local NWDS and solve it.

  • Activation failed due to sructure generation error.-URGENT

    i tried to check in an activity but activation failed due to the foloowing error:PLEASE HELP VERY URGENT
    Development Component Build (2008-03-14 10:09:20)
      Component name: tablist
      Component vendor: worldbank.org
      SC compartment: worldbank.org_GDB_OPERATIONS_1
      Configuration: WAS_MIGATEST_D
      Location: WAS_MIGATEST_D
      Source code location: http://sapjdi01:50000/dtr/ws/MIGATEST/worldbank.org_GDB_OPERATIONS/dev/active/DCs/worldbank.org/tablist/_comp/
      DC root folder: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/
      DC type: Web Dynpro
      Host: sapjdi01
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/cmi"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/logging"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"
              [dcmake] validating dependency to  public part "pp_connserv" of DC "worldbank.org/connserv"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/webDynpro
              [dcmake] starting build plugin from : /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/bp/webDynpro/_comp/gen/default/public/webDynpro/
    Build Plugin 'WebDynproPlugin', Version 6.40 SP 19 (630_VAL_REL, built on 2006-10-27 02:01:51 CEST)
       development component:  tablist (worldbank.org)
          software component:  GDB_OPERATIONS (worldbank.org)
                    location:  WAS_MIGATEST_D
                        type:  Web Dynpro
               build variant:  default
             source location:  http://sapjdi01:50000/dtr/ws/MIGATEST/worldbank.org_GDB_OPERATIONS/dev/active/
           plugin start time:  2008-03-14 10:09:21 GMT+00:00
                     Java VM:  Classic VM, 1.4.2 (IBM Corporation)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Source folder META-INF exists but is empty.
    Source folder src/configuration exists but is empty.
    Plugin initialized in 1.026 seconds
    Warning: Runtime dependency to connserv (worldbank.org) not allowed (incompatible runtime type).
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0.128 seconds
    Executing macro file..
      Using macro file:     /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/bp/webDynpro/_comp/gen/default/public/webDynpro/macros/build.vm
      Creating output file: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/gen/default/logs/build.xml
    Macro file executed in 3 seconds
    Starting Ant..
      Using build file:     /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/gen/default/logs/build.xml
      Using build target:   build
      Generation folder:    /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/t/013EC0ABDECC3015F13C417F5CBF217B
      Using Ant version:    1.5.4
    prepare:
         [mkdir] Created dir: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/gen/default/deploy
    compile:
         [ddgen]
         [ddgen] [Info]    Property deployment is true: Deployment information is provided!
         [ddgen] [Info]    Property sourcepath: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/src/packages
         [ddgen] [Info]    Property targetpath: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/t/013EC0ABDECC3015F13C417F5CBF217B/gdd
         [ddgen] [Info]    Property archivename: worldbank.org~tablist
         [ddgen] [Info]    Property vendor: worldbank.org
         [ddgen] [Info]    Property dcname: tablist
         [ddgen] [Info]    Property language: Available languages are automatically determined!
         [ddgen] [Info]    Property addpaths ...
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       worldbank.orgconnservpp_connserv.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/connserv/_comp/gen/default/public/pp_connserv/lib/java
         [ddgen] [Info]       exception.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.exception/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapDictionaryTypeServices.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapDictionaryTypesRuntime.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       jrfc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_proxy_rt.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.aii.proxy.framework/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       cmiapi.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproadmin.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynprobasesrvc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproclientserver.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodelimpl.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodel_dynamicrfc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpropdfobject.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproprogmodel.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling_api.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository_pmr.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproservices.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_util_misc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.aii.util.misc/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.perf.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]    Initialize generation templates from configuration jar:file:/usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Origin.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/PackagePointer.java
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Inves_Id.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Ccy_Code.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Subm_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Uw_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Guar_Holder.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Conver_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Doc_Num.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Sic_Cde.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Rcvr_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Sndr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Rcvr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Modified_By.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Symsgid.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Status_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Msg.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Inves_Ty.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reason_Dt.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Stl_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Balmnr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Id.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Line.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Frcast_Chk.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Migeo_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Waiv_Flag.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Item_Num.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Symsgno.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Status_Categ.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Mngmt_Gr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reg_Num.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Stat_Chng_Dt.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Migaorg_Code.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Rcvr_Grp.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Commnt_Eventtype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Param.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Doc_Typ.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Stl_Comment.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Src_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Eventtype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Mtype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Sndr_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Fld.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Commnt_Doctype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Cmmt_User.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Symsgv.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Sme_Share.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Description.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Balognr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapilogsys.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Amount.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Status.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reason_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Comment_Id.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Time_Stamp.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reason.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Miga_Source.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__S_Doc_Typ.gstructure
         [ddgen] [Error]   Structure org.wb.operations.stl.types.__Miga__Appl is not generated
         [ddgen] [Error]   BuiltIn Type or Simple Type expected
         [ddgen] [Info]    Catching throwable null
         [ddgen] [Info]    com.sap.dictionary.generation.ant.GenerationAntTaskError
         [ddgen]      at com.sap.dictionary.generation.ant.GenerationAnt.showCheckResult(GenerationAnt.java:171)
         [ddgen]      at com.sap.dictionary.tools.generation.Generation.generatePersistentStructure(Generation.java:480)
         [ddgen]      at com.sap.dictionary.tools.generation.console.GenerationConsole.generate(GenerationConsole.java:168)
         [ddgen]      at com.sap.dictionary.generation.ant.GenerationAnt.main(GenerationAnt.java:47)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         [ddgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         [ddgen]      at java.lang.reflect.Method.invoke(Method.java:391)
         [ddgen]      at com.sap.dictionary.generation.ant.DDGenAntTask.execute(DDGenAntTask.java:219)
         [ddgen]      at org.apache.tools.ant.Task.perform(Task.java:341)
         [ddgen]      at org.apache.tools.ant.Target.execute(Target.java:309)
         [ddgen]      at org.apache.tools.ant.Target.performTasks(Target.java:336)
         [ddgen]      at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         [ddgen]      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         [ddgen]      at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         [ddgen]      at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:226)
         [ddgen]      at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:202)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         [ddgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         [ddgen]      at java.lang.reflect.Method.invoke(Method.java:391)
         [ddgen]      at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         [ddgen]      at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         [ddgen]      at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
         [ddgen]      at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
         [ddgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         [ddgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1498)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:168)
         [ddgen] ERROR: Unknown exception during generation null (com.sap.dictionary.generation.ant.GenerationAntTaskError)
         [ddgen] ERROR: Generation failed due to errors (3 seconds)
    Ant runtime 5.593 seconds
    Ant build finished with ERRORS
    [Error]   Generation failed!
    Error: Build stopped due to an error: [Error]   Generation failed!
    Build plugin finished at 2008-03-14 10:09:32 GMT+00:00
    Total build plugin runtime: 10.143 seconds
    Build finished with ERROR

    I think the "," that comes in the flat file. CHange the number fields in the file from ",". If it has 1000 separator remove them. You need not have them in the file. In your case i think the decimals are coming as ",". In that case change your user settings for decimal places and then try to load.
    Hope this helps

  • Activation Failed

    I have a library project and an External Library project, both which build successfully.  In fact the application that uses these runs successfully on one server.  These projects were built on an NWDI Track and there is an activity for each (Create Library and Create External Library).  Both activities are checked in and available in the activation view. 
    I first tried to activate the External Library as it has no predecessors.  The build was successful but the activation failed.  I thought maybe I needed to activate them at the same time so I tried to activate the Create Library - it has one predecessor (Create External Library) - I selected Activate with all Predecessors.  Still Fails.
    This is what the activation log says:
    REQUEST PROCESSING started at 2009-03-03 14:44:05.770 GMT
        ACTIVATION request in Build Space "JP1_EPPHASE1_D" at Node ID: 3,431,550
         [id: 270; parentID: 0; type: 4]
         [options: FORCE ACTIVATE PREDECESSORS, IGNORE COMPONENT INTERSECTION]
        Waiting for access: 4 ms
        ===== Pre-Processing =====  started at 2009-03-03 14:44:05.774 GMT
            List of requested for activation activities:
                'mc.com_TRACK_1' compartment
                    Edit XML Library
                        [ISN 217][created by M100236 at 2009-03-03 09:43:48.0][OID f2562c82b03211ddc1689ad54e639164]
                There is 1 activity in compartment mc.com_TRACK_1
                1 activity will be processed by this request
            Analyze dependencies to predecessor activities... started at 2009-03-03 14:44:05.783 GMT
                Analyzing predecessors in compartment "mc.com_TRACK_1"
                    2 not activated predecessors are detected
                    The following activities are being added to request:
                    "Create XML External Library"   [seq. no 145][created by M100236 at 11/11/08 2:05 PM][ID bdae3201b01311ddac1e9ad54e639164]
                    "Create XML Library"   [seq. no 146][created by M100236 at 11/11/08 3:21 PM][ID 5cedb8ccb02311dd9f7d9ad54e639164]
                    The following DC is to be added to compartment mc.com_TRACK_1:
                    "mc.com/xml_eLib"
            Analyze dependencies to predecessor activities... finished at 2009-03-03 14:44:05.811 GMT and took 28 ms
            Analyze versions... started at 2009-03-03 14:44:05.811 GMT
                List Active Versions Report: "HTTP/1.1 207 Multi-Status" finished at 2009-03-03 14:44:05.914 GMT and took 103 ms
                Resource "/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_eLib.dcref" is not relevant for DC build and will be ignored. Reason: Invalid DC URL '/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_eLib.dcref'. URL does not point to DCs root directory.
                Resource "/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_lib.dcref" is not relevant for DC build and will be ignored. Reason: Invalid DC URL '/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_lib.dcref'. URL does not point to DCs root directory.
                < IGNORE > 'mc.com/xml_eLib' DC
                Synchronize metadata for [mc.com/xml_elib] started at 2009-03-03 14:44:05.980 GMT
                    Verification of DL [ws/EPPHASE1/mc.com_MC/dev/active/] finished at 2009-03-03 14:44:05.997 GMT and took 7 ms
                    Verification of cache (level 2: Comparison of attributes) finished at 2009-03-03 14:44:06.009 GMT and took 12 ms
                Synchronize metadata for [mc.com/xml_elib] finished at 2009-03-03 14:44:06.009 GMT and took 29 ms
                < CREATE > 'mc.com/xml_elib' DC
                Synchronize metadata for [mc.com/xml_lib] started at 2009-03-03 14:44:06.033 GMT
                    Verification of DL [ws/EPPHASE1/mc.com_MC/dev/active/] finished at 2009-03-03 14:44:06.047 GMT and took 6 ms
                    Verification of cache (level 2: Comparison of attributes) finished at 2009-03-03 14:44:06.059 GMT and took 12 ms
                Synchronize metadata for [mc.com/xml_lib] finished at 2009-03-03 14:44:06.059 GMT and took 26 ms
                < CREATE > 'mc.com/xml_lib' DC
            Analyze versions... finished at 2009-03-03 14:44:06.059 GMT and took 248 ms
            Analyze activities... started at 2009-03-03 14:44:06.059 GMT
                Loading component definitions
                DC Metadata inconsistency detected: Registered DC vendor/name "mc.com/xml_elib" does not correspond to "mc.com/xml_eLib" declared in the DC definition
                Removing component "mc.com/xml_eLib" from request 270. A component with this name has not yet been created or activated.
                2 components to be build in compartment "mc.com_TRACK_1"
            Analyze activities... finished at 2009-03-03 14:44:06.077 GMT and took 18 ms
            Calculate all combinations of components and variants to be built...
            Analyze request DC BV... started at 2009-03-03 14:44:06.083 GMT
                    'mc.com/xml_elib' variant 'default'
                    'mc.com/xml_lib' variant 'default'
                    'mc.com/xml_lib' variant 'default' cannot be built. ACTIVATION will fail.
                    INVALID dependency is declared
                    DC 'mc.com/xml_lib' in SC 'mc.com_TRACK_1' USES Non-existing DC 'mc.com/xml_eLib' [public-part: XMLAssembly] AS Build-Time Dependency  [validity: USED COMPONENT OR PUBLIC PART IS UNKNOWN OR UNDEFINED]
            Analyze request DC BV... finished at 2009-03-03 14:44:06.118 GMT and took 35 ms
        ===== Pre-Processing =====  finished at 2009-03-03 14:44:06.120 GMT and took 346 ms
        Change request state from PROCESSING to FAILED
        Error! The following problem(s) occurred  during request processing:
        Error! The following error occurred during request processing:Activation failed due to component "mc.com/xml_lib" variant "default". The component is BROKEN.
    REQUEST PROCESSING finished at 2009-03-03 14:44:06.129 GMT and took 359 ms
    So I can understand there is a problem - but the activities are checked in and I cannot modify them so I am unsure how to fix this issue.  I thought maybe create a new activity and just checkin the project from scratch but that isn't an option as these are always seen as predecessors.  I really need to get these activated and released to the next server so any tips are appriciated.

    I did a sync on the Track and am now receiving a different error:
    REQUEST PROCESSING started at 2009-03-03 15:11:59.292 GMT
        ACTIVATION request in Build Space "JP1_EPPHASE1_D" at Node ID: 3,431,550
         [id: 273; parentID: 0; type: 4]
         [options: FORCE ACTIVATE PREDECESSORS, IGNORE COMPONENT INTERSECTION]
        Waiting for access: 16 ms
        ===== Pre-Processing =====  started at 2009-03-03 15:11:59.308 GMT
            List of requested for activation activities:
                'mc.com_TRACK_1' compartment
                    Create XML Library
                        [ISN 146][created by M100236 at 2008-11-11 15:21:14.0][OID 5cedb8ccb02311dd9f7d9ad54e639164]
                There is 1 activity in compartment mc.com_TRACK_1
                1 activity will be processed by this request
            Analyze dependencies to predecessor activities... started at 2009-03-03 15:11:59.312 GMT
                Analyzing predecessors in compartment "mc.com_TRACK_1"
                    1 not activated predecessor is  detected
                    The following activities are being added to request:
                    "Create XML External Library"   [seq. no 145][created by M100236 at 11/11/08 2:05 PM][ID bdae3201b01311ddac1e9ad54e639164]
                    The following 2 DCs are to be added to compartment mc.com_TRACK_1:
                    "mc.com/xml_elib"
                    "mc.com/xml_eLib"
            Analyze dependencies to predecessor activities... finished at 2009-03-03 15:11:59.339 GMT and took 27 ms
            Analyze versions... started at 2009-03-03 15:11:59.339 GMT
                List Active Versions Report: "HTTP/1.1 207 Multi-Status" finished at 2009-03-03 15:11:59.436 GMT and took 97 ms
                Resource "/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_eLib.dcref" is not relevant for DC build and will be ignored. Reason: Invalid DC URL '/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_eLib.dcref'. URL does not point to DCs root directory.
                Resource "/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_lib.dcref" is not relevant for DC build and will be ignored. Reason: Invalid DC URL '/SCs/mc.com/MC/_comp/TopLevelDCs/mc.com xml_lib.dcref'. URL does not point to DCs root directory.
                < IGNORE > 'mc.com/xml_eLib' DC
                Synchronize metadata for [mc.com/xml_elib] started at 2009-03-03 15:11:59.483 GMT
                    Verification of DL [ws/EPPHASE1/mc.com_MC/dev/active/] finished at 2009-03-03 15:11:59.497 GMT and took 7 ms
                    Verification of cache (level 2: Comparison of attributes) finished at 2009-03-03 15:11:59.516 GMT and took 19 ms
                Synchronize metadata for [mc.com/xml_elib] finished at 2009-03-03 15:11:59.516 GMT and took 33 ms
                < CREATE > 'mc.com/xml_elib' DC
                Synchronize metadata for [mc.com/xml_lib] started at 2009-03-03 15:11:59.541 GMT
                    Verification of DL [ws/EPPHASE1/mc.com_MC/dev/active/] finished at 2009-03-03 15:11:59.557 GMT and took 9 ms
                    Verification of cache (level 2: Comparison of attributes) finished at 2009-03-03 15:11:59.576 GMT and took 19 ms
                Synchronize metadata for [mc.com/xml_lib] finished at 2009-03-03 15:11:59.576 GMT and took 35 ms
                < CREATE > 'mc.com/xml_lib' DC
            Analyze versions... finished at 2009-03-03 15:11:59.576 GMT and took 237 ms
            Analyze activities... started at 2009-03-03 15:11:59.577 GMT
                Loading component definitions
                DC Metadata inconsistency detected: Registered DC vendor/name "mc.com/xml_elib" does not correspond to "mc.com/xml_eLib" declared in the DC definition
                Removing component "mc.com/xml_eLib" from request 273. A component with this name has not yet been created or activated.
                2 components to be build in compartment "mc.com_TRACK_1"
            Analyze activities... finished at 2009-03-03 15:11:59.587 GMT and took 10 ms
            Calculate all combinations of components and variants to be built...
            Analyze request DC BV... started at 2009-03-03 15:11:59.593 GMT
                    'mc.com/xml_elib' variant 'default'
                    'mc.com/xml_lib' variant 'default'
            Analyze request DC BV... finished at 2009-03-03 15:11:59.643 GMT and took 50 ms
            Prepare build environment in the file system... started at 2009-03-03 15:11:59.643 GMT
                Synchronize development configuration... started at 2009-03-03 15:11:59.644 GMT
                Synchronize development configuration... finished at 2009-03-03 15:11:59.646 GMT and took 2 ms
                Synchronize sources for [mc.com/xml_elib] started at 2009-03-03 15:11:59.649 GMT
                    Verification of DL [ws/EPPHASE1/mc.com_MC/dev/active/] finished at 2009-03-03 15:11:59.667 GMT and took 8 ms
                    Verification of cache (level 2: Comparison of attributes) finished at 2009-03-03 15:11:59.696 GMT and took 29 ms
                Synchronize sources for [mc.com/xml_elib] finished at 2009-03-03 15:11:59.696 GMT and took 47 ms
                Synchronize sources for [mc.com/xml_lib] started at 2009-03-03 15:11:59.722 GMT
                    Verification of DL [ws/EPPHASE1/mc.com_MC/dev/active/] finished at 2009-03-03 15:11:59.737 GMT and took 7 ms
                    Verification of cache (level 2: Comparison of attributes) finished at 2009-03-03 15:11:59.777 GMT and took 40 ms
                Synchronize sources for [mc.com/xml_lib] finished at 2009-03-03 15:11:59.778 GMT and took 56 ms
                Synchronize used libraries... started at 2009-03-03 15:11:59.793 GMT
                Synchronize used libraries... finished at 2009-03-03 15:12:00.665 GMT and took 872 ms
            Prepare build environment in the file system... finished at 2009-03-03 15:12:00.665 GMT and took 1 s 22 ms
        ===== Pre-Processing =====  finished at 2009-03-03 15:12:00.665 GMT and took 1 s 357 ms
        Waiting for access: 3 ms
        ===== Processing =====  started at 2009-03-03 15:12:00.669 GMT
            BUILD DCs
                'mc.com/xml_elib' in variant 'default'
                        'XML_Assembly' PP has been changed. Dependent DCs will be re-built.
                        'XML_Component' PP has been changed. Dependent DCs will be re-built.
                    The build was SUCCESSFUL. Archives have been created.
                'mc.com/xml_lib' in variant 'default'
                        'defLib' PP has been changed. Dependent DCs will be re-built.
                    The build was SUCCESSFUL. Archives have been created.
        ===== Processing =====  finished at 2009-03-03 15:12:11.953 GMT and took 11 s 284 ms
        ===== Post-Processing =====
        Waiting for access: 7 ms
        ===== Post-Processing =====  started at 2009-03-03 15:12:11.960 GMT
            Check whether build was successful for all required variants...
                "mc.com/xml_elib" in variant "default"   OK
                "mc.com/xml_lib" in variant "default"   OK
            STORE activation build results... started at 2009-03-03 15:12:11.961 GMT
                Update DC metadata... started at 2009-03-03 15:12:11.961 GMT
                    'mc.com/xml_elib' DC is CREATED
                    'mc.com/xml_lib' DC is CREATED
                Update DC metadata... finished at 2009-03-03 15:12:12.040 GMT and took 79 ms
                STORE build results... started at 2009-03-03 15:12:12.040 GMT
                ===== Post-Processing =====  finished at 2009-03-03 15:12:12.041 GMT and took 81 ms
                Change request state from PROCESSING to FAILED
                Error! The following problem(s) occurred  during request processing:
                Error! The following error occurred during request processing:I/O error:Failed to persist the assembly
    Assembly: [binary ID: [B@35193519]
         [bsID: 27, scID: 101, dcID: 304, bvID: 101, ppName: "XML_Assembly"archive type: "PP Archive", build number: 259]
         temporary location in: /usr/sap/JP1/DVEBMGS00/j2ee/cluster/server0/temp/CBS/1b/.B/259/DCs/mc.com/xml_elib/tmp of the PPBV
    Build Variant "default" of Compartment "mc.com_TRACK_1"
         [bvID: 101, scID: 101, required for activation: true] OF Build variant default of
    Development Component
         "mc.com/xml_elib" in compartment "mc.com_TRACK_1" attached to request 273
         [scID: 101, dcID: 304, parent dcID: 0, current state: OK, action: CREATED]
         Build Number: (last successful: 259, last known 259)
         Original Cause: PPA not found! Expected location:
    /usr/sap/JP1/DVEBMGS00/j2ee/cluster/server0/temp/CBS/1b/.B/259/DCs/mc.com/xml_elib/_comp/gen/default/public/XML_Assembly.ppa
            REQUEST PROCESSING finished at 2009-03-03 15:12:12.084 GMT and took 12 s 792 ms

  • How to call external jar files in EJB project for CE

    Hi,
    I would be thankful if someone could help me with this -
    I need to call the external jar files into my EJB project - Here is what I have done and am getting runtime exception as  -
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/glance/pdf/pt/PTDoc
    1. Created a EJB  project" HelloWorld "  using Java perspective in NWDS 7.1 called with client as HelloWorldClient and EAR project as HelloWorldEAR.
    2. Am working on HelloWorld project (1st one).
    3. In my code I am instantiating a class which is a class in one of  the external jar file that I need to refer in my project.
    4. I have set the Java Build path but it works only for the compile time and fails during runtime.
    5. Have read I need to create external library DC and refer in my project "HelloWorld".
    Can anyone help me with exact steps what needs to be done - during creation of external library project and then for my "HelloWorld" EJB project. How would I be able to reference or set the external library project in my EJB project?
    Looking forward to hear from experts.
    Thanks,
    Shiv
    Edited by: Shiv Khullar on Aug 30, 2010 9:39 PM

    Hi Edson,
    I tried it , but it still gives me runtime exception.
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/glance/pdf/pt/PTDoc
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/glance/pdf/pt/PTDoc
    Steps I performed are -
    1. Created a library project and created 2 Public parts "Compilation" and "Assembly"
    2. Build the library project.
    Now in my EJB project using Project Explorer - set the classpath and added both compilation jar and assembly jar files.
    This is how the classpath entries for external library looks like -
    <classpathentry kind="lib" path="/LocalDevelopmentLocalDevelopmentexternallibrarypdftoolsforwatermarkingdemo.sap.com/gen/default/public/WatermarkAssembly/lib/java/demo.sap.comexternallibrarypdftoolsforwatermarking~WatermarkAssembly.jar"/>
         <classpathentry kind="lib" path="/LocalDevelopmentLocalDevelopmentexternallibrarypdftoolsforwatermarkingdemo.sap.com/gen/default/public/WatermarkCompilation/lib/java/demo.sap.comexternallibrarypdftoolsforwatermarking~WatermarkCompilation.jar"/>
    I have also added the jar files I used in my external library project as "User Library" from Java Build Path . I dont do it , then the code fails during compilation itself.
    Regards,
    Shiv

  • How to handle External Jar files in EJB DC

    I have created a EJB DC.
    I have added the required MDM Jar files to the class path.
    These MDM Jar files are supplied by SAP for integration with Master Data Management.
    But the DC build fails.
    If I create the same project as a <b>REGULAR</b> EJB (non-dc approach)project, everything works fine.
    Qn:
    How to bundle the MDM jars (External jars)in a DC?
    How to create the Public Parts in the DC for the added MDM External Jars?
    How to use the above DC in the EJB DC?
    Basically, I am looking for a step by step procedure,
    to add external jars in a DC.
    And to use the above DC in a EJB DC.
    Any assistance in this regard is appreciated.

    You should not reference the MDM jar files by setting classpath directly. For setting references to it from your EJB DCs , you will have to create a DC of type "External Library". Deploy this DC also before your EJBs are deployed. You will then have to create a public part for this DC and the reference the public part from the DC metadata of the EJB DC ie set the Used DC list of EJB DC to the public part of the ext lib. You will get info about this in NDS help as well on help.sap.com

  • 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 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

  • 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

  • Using external Jar with a mobile application

    Hi folks!
       I need some help with my application, i make a simple mobile application and i need to use a external jar, in this case, this jar have a simple JAVA class that represents a manipulation with eSWT, so my problem is How to using external Jar in NetWeaver 7.1?
       I see other threads that have a same doubts, but i don´t have a solution for my problem.
       Thats it.

    Hi Sivakumar,
    I have similar problem. i want use iText or similar jar files to create pdf. I have currently developed a UI component for handheld. I have dont the following things:
    1)Created a external dc of type external library
    2) addedd the jar in the build path
    3) added the jar in the lib folder of the webdynpro project
    4) added the external jar dc as dependency in my webdynpro project
    I am getting no class def found eror still for some wierd reason. please let me know if some step is missing. I have pasted the trace.
    rror starting the framework
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: com/cete/dynamicpdf/Font
         at com.sap.demo.testui.testapp.comp.SignatureStandard.runApps(SignatureStandard.java:88)
         at com.sap.demo.testui.testapp.comp.TestCompView.wdDoInit(TestCompView.java:85)
         at com.sap.tc.mobile.wdlite.progmodel.core.Controller.enter(Controller.java:21)
         at com.sap.tc.mobile.wdlite.progmodel.core.View.enter(View.java:45)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrentView(Application.java:133)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:169)
         at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:19)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.setCurrentApplication(WDLite.java:148)
         at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:80)
         at com.sap.tc.mobile.wdlite.container.ContainerApp.startApp(ContainerApp.java:171)
         at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:325)
         at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:368)
         at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:199)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:369)
         at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:148)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:412)
         at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:455)
         at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:380)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)

  • 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).

  • Activation fail, broken DCs

    Hi, guru:
    we have a track call MRP, and Buildspace are:
    - MRP_C
    - MRP_D
    anyone can tell me what is MRP_C for. is that for consolidation? I checked landscape configurator, runtime systems, and consolidation system is not ticked.
    we have problem with activation. and I found our DC under (MRP_C) is broken.
    We developed in MRP_D, however, MRP_C has broken DC, and I have no idea. is this will cause activation fail?
    If I checked the request log, and I found that a lot of invalid independecies.
    INVALID DEPENDENCIES: The following dependencies of the DCs in this request are being marked as invalid:
         DC: optus.com.au/optusaugecko of compartment optus.com.au_MAINT_REQ_PROCESSING_1 USES  UNKNOWN DC: sap.com/tc/bi/bp/webDynpro [public-part: webDynpro] AS Build Plugin Dependency
              [validity: USED COMPONENT OR PUBLIC PART IS UNKNOWN OR UNDEFINED]
         DC: optus.com.au/optusaugecko of compartment optus.com.au_MAINT_REQ_PROCESSING_1 USES  UNKNOWN DC: sap.com/tc/cmi [public-part: default] AS Build-Time Dependency
              [validity: USED COMPONENT OR PUBLIC PART IS UNKNOWN OR UNDEFINED]
         DC: optus.com.au/optusaugecko of compartment optus.com.au_MAINT_REQ_PROCESSING_1 USES  UNKNOWN DC: sap.com/tc/ddic/ddicruntime [public-part: default] AS Build-Time Dependency
              [validity: USED COMPONENT OR PUBLIC PART IS UNKNOWN OR UNDEFINED]
         DC: optus.com.au/optusaugecko of compartment optus.com.au_MAINT_REQ_PROCESSING_1 USES  UNKNOWN DC: sap.com/tc/ddic/metamodel/content [public-part: default] AS Build-Time Dependency
    So how can I fix it?
    Cheers,
    Eric

    Hi, Guru:
    I am reading your comments:
    If the DCs were build successfully in *_D development track, it means that the transport of all the required DCs to *_C track was missed, so kindly ask your basis administrator to do the needful.
    I checked the landscape configurator, tab "runtime systems", and find consolidation box is not checked.
    Shall I check the box and set up a consolidation system? (is it the root cause for the problem you said that transports of all the required DCs to *_C track was missed?)
    If so, shall I configure consolidation system same as development system, I mean using same hose, SDM, and port?
    Cheers,
    Eric

  • External Jar files packaged with the Application Jar.

    Hello Friends,
    I have a Java class 'Config.java' with a package a.b.c
    This class requires a third party Jar 'new.jar'. I place this Jar file in the parent directory of the package.
    So I can compile the Config.java with classpath as '.'
    This works fine.
    Now while packaging them, I create a mymanifest.mf file with following contents
    Main-Class: a.b.c.Config
    Class-Path: . new.jar
    and issue the command
    jar -cvmf mymanifest.mf myjar.jar *
    This creates a jar file with appropriate manifest information and heirarchy (since the included third party jar is in the same directory)
    When I run the Jar by issuing the command
    java -jar myjar.jar
    It gives me an error, NoClassDefFound for a class inside the included third party jar.
    I have gone through some of the other queries posted in this forum and through Sun's articles for creating Jar files.
    I have taken care of all the minute things involved in writing the manifest file, etc.
    I dont understand why such a simple application gives me a problem.
    Am I still missing something ?
    Regards,
    Ravi

    I had the same problem. But I solve it.. The thing that you have to do is:
    create another directory in your project application directory let's say your project directory is Project. such as Project / lib.
    then put external jars in lib directory.
    The last thing you have to do :
    change your manifest file like that
    Main-Class : mainclass
    Class-Path : lib/externaljar1.jar lib/externaljar2.jar
    I don't know you ever deal with manifest files before but there can be very stupid errors while you create .
    i.e there should be a space between ":" and mainclass name you shoul use "/" not "\" etc.
    I think it will work for you.

Maybe you are looking for

  • External display issues heat-related?

    I have a new late-2008 MacBook, the 2.0 GHz model, and a mini-DisplayPort-to-DVI adapter connected to my several-years-old aluminum Apple Cinema Display. After having no problems for the first couple of days, today on a couple of occasions I've had t

  • Timestamp field in standard datasources

    Hi All, Can anyone tell me how do we find out the timestamp(delta) field for standard datasources 2LIS_11_V_ITM and 2LIS_11_V_SCL

  • HT201317 i cant select the photo button in icloud panel as it said....pls help

    can anyone help me coz the photo stream FAQ isin't helping me.....

  • Jinitiator fatal error 1.3

    Client OS : windows xp sp3 browser : IE 7 8 firefox 3.6 mathon latest jre: 6 update 20 jinitiator: 1.3.1.22 database: 10g I got this error with above browsers. "jinitiator fatal error 1.3 cannot be loaded /bin/client/jvm.dll How to fix this in client

  • Changing template for Test Case Description

    Hi All, Greetings... In one of my projects, I want to customize the template provided by the SAP in test case description. We can add test case description while creating Manual Test Case (Tx: STWB_TC), Test Script and Test Configuration (Tx: SECATT)