[SOLVED] ClassNotFoundException = j2ee library

hello community,
I have got a problem with an unresolved j2ee library.
the libraries are placed in a directory somewhere on the harddisk and i do not know how to reference them in the weblogic server (v10).
I guess that they need an entry in the deployment descriptors of the application designed to deploy.
Is there a option like a tag in the application-deployment-descriptor of the application where i can reference the directory with the libraries? Or do i have to make an entry for each library the application needs?
Thanks,
maik
#edit 1:
Can i specify a directory in the weblogic server deployment descriptor to search for the libraries?
such as:
<library-dir>{$app.home}/lib</library-dir>{$app.home} is a java option i've added in the start-script of the server (-Dapp.home=c:\app)
#edit 2:
or do I have to place the libraries needed under the WEB-INF of META-INF directory in the lib-directory of the application?
#edit 3:
I've found out that there is an extra server-start option -Dweblogic.ext.dirs for specifying other library-directories... but this does not work at all :-(
when copying the needed libraries to the lib directory of the weblogic domain the class bytes found but defineClass()failed for: error occurs.
are there any suggestions for solving?
Edited by sqlworktask at 10/30/2007 4:58 AM

ok, i've solved it...
i just have added following environment variable to the start-script of the server:
WEBLOGIC_EXTENSION_DIRS=<directories>

Similar Messages

  • How to use own J2EE library withon WAR/EAR?

    Hi,
    I've written a servlet within a WAR that uses for example JCo-Conenction. For that. I've added com.sap.mw.jco as "Used DC" in the WAR-Metadata. Additionally, I've added the DC in the EARs application-j2ee-engine.xml
    <reference reference-type="hard">
      <reference-target provider-name="sap.com"
         target-type="library">com.sap.mw.jco</reference-target>
    </reference>
    Everything is fine so far. But now, I want to use a self-created J2EE-Library DC that is deployed on the server.
    I've added it to the WARs "Used DC"s as well and added it to the EARs application-j2ee-engine.xml. But the servlet is not loaded during deploy. It fails with the error "NoClassDefFound: <class i have in my J2EE-Library project>"
    is there anything more to do for self-created J2EE-Libs?
    kr, achim

    Marc,
    I've solved it already. I've added indeed the wrong DC ("libs/servicelibs" instead of "libs/servicelibs_j2ee"). Well, bad naming conventions, it was late and I have the flu...
    Anyway, thanks for supporting me, that all what I did was correct
    kr, achim

  • Class in J2ee Library DC can't be found

    Another Problem where I need your help.
    I have a portal module Component, in this i have a class wich extends the AbstractPortalApplicatin and in the doContent i include a jsp wich i have written. In this JSP i need some logic. Cause the logic I need here is not only used by this component i want to outsource the class wich does the work.
    So I created a java component in wich i wrote my class. Created 2 public parts, an api for build time and a sda public part.
    After that i createt a j2ee libary dc, in wich I add the public sda part from the java component. The Api is only for Build Time of the portal Component.
    In the portalapp.xml I created a private sharing reference to the j2ee library component. But the class cannot be resolved. I really don't know what i have done wrong....

    I figured out that you need to move the folder over to the shared section or share every folder in you folder structure above the one you need to share!!!

  • How do I create a runtime library reference from a J2EE library DC?

    I've created a J2EE library DC that references some classes in an already deployed library.  The referenced jar file has been correctly deployed, as it's successfully used by some other components.  I can build the DC, since I've created created a compile-time reference to the local copy of the target jar file.
    Unfortunately, I can't figure out how to create a runtime reference from my J2EE library to the already deployed library - there just doesn't appear to be any place to put the reference, at least using a gui-based function in NWDS.  Unlike WebDynpro, which has a 'references' configuration option, J2EE lib's don't appear to have anything similar.
    Where/How can I do this?
    BTW, the Visual Administrator function 'ClassLoader Viewer ' is a very handy tool for diagnosing ClassDefNotFoundError errors....

    Hello Ken,
    well it seems to be not a trivial thing.
    1) Build your library DC.
    2) Create folder "server" in root DC folder "_comp".
    3) Extract provider.xml from generated SDA file to "server" folder.
    4) Add references in provider.xml:
        <references>
          <reference type="library" strength="weak">
            sapxmltoolkit
          </reference>
          <reference type="library" strength="weak">
            com.sap.lcr.api.cimclient
          </reference>
          <reference type="service" strength="weak">
            tc~sec~securestorage~service
          </reference>
        </references>
    5) Rebuild DC. Deploy.
    6) Enjoy!
    Useful links:
    http://help.sap.com/saphelp_webas630/helpdata/en/b5/22123b8d92294fac207283f3e8756e/content.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/09/5d963be736904c96cbdfe93793eb42/TEMPLATE_image002.gif
    Best regards, Maksim Rashchynski

  • How to set runtime references in J2EE library DC's

    Hi,
    I'm building an custom logon module. This is well described in
    http://help.sap.com/saphelp_nw04/helpdata/en/46/3ce9402f3f8031e10000000a1550b0/content.htm
    I created the following DC:
    1. simple java project DC that contains the login module class
    2. J2EE library DC that will act as the deployable component.
    The part "Make reference to the Security Provider service of the J2EE Engine." (2b) is where i get stumped:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/93d84072378031e10000000a1550b0/content.htm
    The example adds the reference direct to the provider.xml. I don't have that option when I develop the library as a DC.
    It seems that while EAR file DC's allow the adding of runtime library references via the application-j2ee.xml file, it seems that is not possible for J2EE library DCs.
    Specifically, I'm trying to get the follwing entry into the provider.xml:
    <references>
      <reference provider-name="sap.com" strength="weak" type="interface">security_api</reference>
    I saw one workaround in the SDN where they suggest to extract the provider.xml from the SDA and manually
    add the references but this isn't really an option in our case.
    Should I be deploying 'normal' EAR files in this case ? Have I overlooked something ?
    thanks
    Michael

    Hi,
    talk about overlooking the obvious . . . The appropriate public part is present in com.sap_SAP-JEE_1.
    Adding that worked.
    Michael

  • How to refer to J2EE library server component from a web service?

    Hi,
    I need help!  I created a web service and it worked fine.  However, I started having problems when I tried to use java classes from my deployable J2EE library server component.  I got the NoClassDefFound error.
    I tried to include the library DC in the Used DC list and put the reference of it in the web service deployment descriptor xml (application.xml and application-j2ee-engine.xml), but it did not work.
    How do I refer and use java classes from my deployable J2EE library at run time from my web service application?  What should I do?
    Thanks,
    Giavinh Pham

    I would like to clarify more about the web service project.  I created a Java DC project and converted it into a web service as the SAP manual instructions.  It worked fine by itself, but I now want to use some of my classes that I deployed as a J2EE library server component. 
    It was compiled and built when I refer to my J2EE library server component DC in the UsedDC.  It was deployed fine as well.  However, it broke when I tested the web service calls.  The class declarations and usage from the J2EE server component could not be found (NoClassDefFound error.) 
    I thought it was because I did not have an application-j2ee-engine.xml in my META-INF folder so I created one and referred to the library in xml as type library and reference 'strong'.  I built and deployed again.  It still did not work. 
    I examined the EAR and noticed that there were two parts of the EAR.  One is the WSAR archive file that contains the META-INF folder from my project and other web service assemblies.  The other part is the META-INF folder generated by the SAP NetWeaver IDE. 
    The strange thing was that SAP NetWeaver IDE generated an application-j2ee-engine.xml without any reference to my J2EE library server component.  However, the nested application-j2ee-engine.xml in the WSAR archive file did contain the info. 
    Since I cannot control the application-j2ee-engine.xml generated by SAP NetWeaver IDE, what should I do?  Is it the cause for my problem?
    Please advice, anyone?
    Giavinh

  • How to delete a J2EE library from the WAS?

    Hello,
    I have uploaded a J2EE library to the WAS, it can be found at the Admin tool under: Server->Libraries.
    Suppose I don't need these library anymore and I would like to delete it. How do I do it?

    Hi Roy,
    It depends on which server you are asking for, for Netweaver 2004 and 2004s the easiest way to deploy\undeploy components would be via the SDM UI - launch it from \usr\sap\<sid>\<id>\SDM\program\RemoteGui .
    There from the undeployment tab you should see your library, then click the select button, start undeployment and follow the instructions.
    You may check the SDM documentation as well - it should be in a doc directory
    HTH
    Peter

  • WDException from J2EE Library ?

    Hello,
    I have a shared j2ee library implementing some java beans that follow the JavaBean, command bean pattern, business delegate and DTO's patterns.
    I am using these from webdynpro component as an imported model (javabean model).
    Now I want to follow SAP recommendation that bean exceptions (if any) shall be wrapped to WDException types (see WebDynpro Best Practices for Connecting To Java API's).
    I have found no way to make this kind of exception visible from my J2EE Library. In fact class com.sap.tc.webdynpro.services.exceptions.WDException is only found in WebDynpro Runtime Service and not in any shared library. I am not willing to deploy in my library an additional copy of webdynproservices.jar because it is version related.
    What is the correct way to achieve this?
    I am on NW04 SP17.
    Thanks in advance & Regards
    Vitaliano Trecca

    Hello,
    is their any solution for this problem?
    I tried to use an own Bean-class from my J2EE-App,
    but the JSP-Page returned "package <mypackage> does not exist".
    The JSPDynPage is able to get the Bean.
    same mechanism as shown above (SharingReference in portalapp.xml)
    We are on SP17
    Thanks in advance,
    Thomas

  • Where is "WebLogic J2EE Library "?

    Hi, i want to extend Portal Administration Console, but when i do follow guide of oracle documentation, it seem not work.
    Follow document : To copy a J2EE module to your web project:
    1. In the Project Explorer, right-click the //web_project_name/WebLogic Deployment Descriptor > J2EE Libraries folder and then select Add Multiple.
    2. In the Select WebLogic J2EE library, select the modules you need. The required administration console J2EE libraries are:
    But i don't see where is WebLogic J2EE library. Can someone tell me where is it ? Thanks in advance and sorry for my bad English.
    Best Regards,
    Coy.

    If you mean the folder 'library' like from the computer, the iphone doesn't have one directly. If you connect your iphone to your computer then, depending on what you want, you can probably do it via the computer or try downloading an app like iexplorer and you can access loads of hidden folders on your iphone. Hope this helps but sorry if it doesnt

  • J2EE Library Build Error

    Hi all
    Trying to build a J2EE library, i got following error on NWDS. Can you imagine what happen?
    Actually i migrate WebDynpro callable object from SP06 to SP07 using GP Public API. (reger SAP Note 924776)
    I have no idea what is variant "default"?
    Regards,
    Sanghun
    Jun 20, 2006 6:07:49 PM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: libcrbup: Build failed for ides.com/libcrbup(MyComponents) in variant "default": Failed to create build script: Illegal value strong for attribute strength(element reference)
    Build log -
    Development Component Build (2006-06-20 18:07:48)
    Component name: libcrbup
    Component vendor: ides.com
    SC compartment: MyComponents
    Configuration: LocalDevelopment
    Location: local
    Source code location: Administrator@seln50038942a
    DC root folder: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\ides.com\libcrbup\_comp\
    DC type: J2EE Server Component
    DC subtype: Library
    Host: seln50038942a
    DC Model check:
    [dcmake] All used DCs are available locally
    [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/addLib"
    [dcmake] validating dependency to public part "default" of DC "sap.com/com.sap.security.api.sda"
    [dcmake] validating dependency to used DC "ides.com/libmdm1"
    [dcmake] validating dependency to public part "external" of DC "sap.com/caf/eu/gp/api"
    [dcmake] validating dependency to public part "CreateBupa" of DC "ides.com/creabup"
    [dcmake] DC model check OK
    Start build plugin:
    [dcmake] using build plugin: sap.com/tc/bi/bp/addLib
    [dcmake] starting build plugin from : C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\
    Build Plugin 'AdditionalLibraryPlugin', Version 7.00 SP 7 (645_VAL_REL, built on 2006-03-23 22:53:15 CET)
    development component: libcrbup (ides.com)
    software component: MyComponents (demo.sap.com)
    location: local
    type: J2EE Server Component, subtype Library
    build variant: default
    source location: Administrator@seln50038942a
    plugin start time: 2006-06-20 18:07:48 GMT+09:00
    Java VM: Java HotSpot(TM) Client VM, 1.4.2_11-b06 (Sun Microsystems Inc.)
    General options:
    convert *.xlf to *.properties: yes
    include sources for debugging: yes
    Warning: Warning: Source folder does not exist, will be ignored: server
    Plugin initialized in 0.07 seconds
    Warning: No runtime information available for development component type Java (sap.com), cannot validate runtime dependency.
    Warning: Assembled DC creabup (ides.com) has runtime dependency on com.sap.exception (sap.com), but the current component neither assembles nor references that component.
    Warning: Assembled DC creabup (ides.com) has runtime dependency on tc/logging (sap.com), but the current component neither assembles nor references that component.
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Generating application-dd.xml
    Data context prepared in 0.01 seconds
    Executing macro file..
    Using macro file: C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\addLib\_comp\gen\default\public\addLib\macros\build.vm
    Creating output file: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\ides.com\libcrbup\_comp\gen\default\logs\build.xml
    Macro file executed in 0.1 seconds
    Starting Ant..
    Using build file: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\ides.com\libcrbup\_comp\gen\default\logs\build.xml
    Using build target: build
    Generation folder: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\t\3EE9ACE846E54B984287928A94165CE1
    Using Ant version: 1.6.2
    prepare:
    [mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\ides.com\libcrbup\_comp\gen\default\deploy
    [mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\t\3EE9ACE846E54B984287928A94165CE1\int-pp
    [mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\t\3EE9ACE846E54B984287928A94165CE1\sda
    compile:
    createPublicParts:
    [mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\ides.com\libcrbup\_comp\gen\default\public\defLib\lib\java
    [copy] Copying 4 files to C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\DCs\ides.com\libcrbup\_comp\gen\default\public\defLib\lib\java
    createDeployArchive:
    [mkdir] Created dir: C:\Documents and Settings\Administrator\.dtc\LocalDevelopment\t\3EE9ACE846E54B984287928A94165CE1\sdaprep
    [cda] Adding module 'ides.comcreabupCreateBupa.jar' from DC 'creabup' (vendor 'ides.com'), public part 'CreateBupa'
    [cda] Creating descriptor server/provider.xml ...
    [cda] Adding weak reference to com.sap.security.api.sda (sap.com), type library
    [cda] Adding strong reference to libmdm1 (ides.com), type library
    [cda] ERROR: java.lang.IllegalArgumentException: Illegal value strong for attribute strength(element reference)
    [cda] ERROR: at com.sap.tc.buildplugin.util.xml.SimpleDOM.setAttribute(SimpleDOM.java:376)
    [cda] ERROR: at com.sap.tc.buildplugin.util.xml.EngineProviderXml.addReference(EngineProviderXml.java:252)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.val.ProviderXmlValidator.validate(ProviderXmlValidator.java:140)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.JarSAPArchivePacker.validateDescriptors(JarSAPArchivePacker.java:284)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.JarSAPArchivePacker.pack(JarSAPArchivePacker.java:142)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.DeployArchiveTask._execute(DeployArchiveTask.java:267)
    [cda] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.BPTask.execute(BPTask.java:20)
    [cda] ERROR: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [cda] ERROR: at org.apache.tools.ant.Task.perform(Task.java:364)
    [cda] ERROR: at org.apache.tools.ant.Target.execute(Target.java:341)
    [cda] ERROR: at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [cda] ERROR: at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [cda] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:225)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:201)
    [cda] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [cda] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [cda] ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [cda] ERROR: at java.lang.reflect.Method.invoke(Method.java:324)
    [cda] ERROR: at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
    [cda] ERROR: at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
    [cda] ERROR: at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
    [cda] ERROR: at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
    [cda] ERROR: at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
    [cda] ERROR: at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5559)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
    [cda] ERROR: at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    [cda] ERROR: Failed to create build script: Illegal value strong for attribute strength(element reference)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.DeployArchiveTask._execute(DeployArchiveTask.java:274)
    [cda] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.BPTask.execute(BPTask.java:20)
    [cda] ERROR: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [cda] ERROR: at org.apache.tools.ant.Task.perform(Task.java:364)
    [cda] ERROR: at org.apache.tools.ant.Target.execute(Target.java:341)
    [cda] ERROR: at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [cda] ERROR: at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [cda] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:225)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:201)
    [cda] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [cda] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [cda] ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [cda] ERROR: at java.lang.reflect.Method.invoke(Method.java:324)
    [cda] ERROR: at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
    [cda] ERROR: at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
    [cda] ERROR: at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
    [cda] ERROR: at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
    [cda] ERROR: at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
    [cda] ERROR: at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5559)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
    [cda] ERROR: at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    [cda] ERROR: Caused by: java.lang.IllegalArgumentException: Illegal value strong for attribute strength(element reference)
    [cda] ERROR: at com.sap.tc.buildplugin.util.xml.SimpleDOM.setAttribute(SimpleDOM.java:376)
    [cda] ERROR: at com.sap.tc.buildplugin.util.xml.EngineProviderXml.addReference(EngineProviderXml.java:252)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.val.ProviderXmlValidator.validate(ProviderXmlValidator.java:140)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.JarSAPArchivePacker.validateDescriptors(JarSAPArchivePacker.java:284)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.JarSAPArchivePacker.pack(JarSAPArchivePacker.java:142)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.DeployArchiveTask._execute(DeployArchiveTask.java:267)
    [cda] ERROR: ... 24 more
    [cda] ERROR: --- Nested Exception ---
    [cda] ERROR: java.lang.IllegalArgumentException: Illegal value strong for attribute strength(element reference)
    [cda] ERROR: at com.sap.tc.buildplugin.util.xml.SimpleDOM.setAttribute(SimpleDOM.java:376)
    [cda] ERROR: at com.sap.tc.buildplugin.util.xml.EngineProviderXml.addReference(EngineProviderXml.java:252)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.val.ProviderXmlValidator.validate(ProviderXmlValidator.java:140)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.JarSAPArchivePacker.validateDescriptors(JarSAPArchivePacker.java:284)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.JarSAPArchivePacker.pack(JarSAPArchivePacker.java:142)
    [cda] ERROR: at com.sap.tc.buildplugin.deploy.DeployArchiveTask._execute(DeployArchiveTask.java:267)
    [cda] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.BPTask.execute(BPTask.java:20)
    [cda] ERROR: at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [cda] ERROR: at org.apache.tools.ant.Task.perform(Task.java:364)
    [cda] ERROR: at org.apache.tools.ant.Target.execute(Target.java:341)
    [cda] ERROR: at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [cda] ERROR: at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [cda] ERROR: at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:225)
    [cda] ERROR: at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:201)
    [cda] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [cda] ERROR: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [cda] ERROR: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [cda] ERROR: at java.lang.reflect.Method.invoke(Method.java:324)
    [cda] ERROR: at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
    [cda] ERROR: at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
    [cda] ERROR: at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
    [cda] ERROR: at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
    [cda] ERROR: at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
    [cda] ERROR: at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5559)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
    [cda] ERROR: at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
    [cda] ERROR: at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Ant runtime 0.1 seconds
    Ant build finished with ERRORS
    Failed to create build script: Illegal value strong for attribute strength(element reference)
    Error: Build stopped due to an error: Failed to create build script: Illegal value strong for attribute strength(element reference)
    Build plugin finished at 2006-06-20 18:07:49 GMT+09:00
    Total build plugin runtime: 0.3 seconds
    Build finished with ERROR

    Hi Sanghun,
    The problem is that the provider.xml is generated basing on .dcdef content. in this case you can assign weak refrences to libraries only due unknown for me reason.
    If you want to use hard reference to libraries do the folllowing:
    1. Create "server" folder in your project folder.
    2. copy the "provider.xml" file to this folder from generated sda(do not forget to rename invalid "strong" reference to weak in .dcdef before building)
    3. change the the "weak" to "hard" in the copied "provider.xml" file.
    4. Build the project and check that sda contains correct reference strengh.
    Best regards,
    Aliaksei

  • Deploy J2EE library failed

    I'm trying to create a J2EE Library DC that contains a few jar files that I want to deploy to the J2EE server for usage by a set of test classes.
    I created an external library DC, imported a jar file into the libraries folder, and added the jar file to a public part that has selected option "provides an API for Developing/compiling". I then built the DC Successfully.
    Then I created a J2EE Library DC, and added the external library DC as a used DC, with a build and run time dependancy, and I created an entity reference to the external library DC's public part.
    When I build the J2EE Library DC, the jar file are not included in the SDA file. Nothing I've tried can get the jar file to be placed in the SDA file for deployment.
    Why is the jar file not in the SDA? What am I doing wrong? I've spent the last while reading everything I can find on SDN about j2EE Library DCs, and it seems that I'm doing everything correctly - or am I?
    I'm running 7.00 SP9 . Can someone verify that a) my procedure above is correct, and b) that this does work under 7.00 SP9 ?

    Hi,
    Are you trying to depoy through SDM or visual admin?
    SDM can recognize only SCA,SDA and ear files.
    I think,you can do one thing,you can convert those jar files to <b>ear</b> format and deploy it through SDM or Visual admin.
    You can do it this way,
    Copy all those jar files into a folder .
    For ex: if you have copied all those jar files into "new folder" in C:,
    go to C:\newfolder in command prompt.
    then run  the command,
    <b>jar -cvf  *</b>
    or
    take each jar file and give command
    <b>jar -cvf  nameofexe.exe *</b>
    then all the jar files will be converted into ear format and you can deploy through SDM or visualadmin.
    reward points if helpful...........

  • Jars not included in J2EE Library DC SDA

    I'm trying to create a J2EE Library DC that contains a few jar files (JUnit and JUnitEE) that I want to upload to the J2EE server for usage by a set of test classes. 
    I created an external library DC, imported the two jar files into the libraries folder, and added both jar files to both a compilation and assembly public part.  I then built the DC.  Great, the jar files are copied into the hierarchy under gen/default/public/assembly and gen/default/public/compliation.  Everything seems to be in order.
    I then created a J2EE Library DC, and added the external library DC as a used DC, with a build and run time dependancy.
    When I build the J2EE Library DC, the two jar files are NOT included in the SDA file.  Nothing I've tried can get the two jar files to be placed in the SDA file for deployment.
    Why why WHY are the jar files not in the SDA?  What am I doing wrong?  I've spent the last while reading everything I can find on SDN about j2EE Library DCs, and it seems that I'm doing everything correctly - or am I?
    I'm running SP16.  Can someone verify that a) my procedure above is correct, and b) that this does work under SP16?
    FYI, I have done this before, but not with SP16 - this is my first attempt.  That said, I've always had problems getting the imported jar files to appear in the final SDA file....it's frustrating to say the least.  DCs are wonderful things, but man, when they don't work, it's a royal pain in the rear end trying to figure out what's wrong.

    Hmmm, perhaps this is part of the problem:  here is the defLib.pp file which is automatically generated when you create a J2EE Library DC:
    <?xml version="1.0" encoding="UTF-8"?>
    <public-part ....>
         <name>defLib</name>
         <purpose>compilation</purpose>
         <caption></caption>
         <description></description>
         <entities>
              <entity>
                   <name>sap.com~test~lib</name>
                   <entity-type>SERVER_COMPONENTS</entity-type>
              </entity>
         </entities>
    </public-part>
    I created a new Server Library DC and changed the purpose to assembly, and then was able to create an entity reference. However, now I get this error:
    createPublicParts:
      [pppacker] Packing assembly public part 'defLib'
      [pppacker] Packed   0 files for entity sap.com~zzz~lib (SERVER_COMPONENTS)
      [pppacker] Packing entity reference zzz/jars (sap.com), assembly:  ()
      [pppacker] ERROR: java.util.zip.ZipException: Access is denied
    (sigh)
    I'm not sure what SP you're running, but perhaps the later SP's understand the structure of External Libraries, and automatically propagate the references for you....at least, that must be what was happening with SP15, since it worked properly.
    I think I'll install SP15 again, and have close look at the generated public parts, and see if I can't detect a difference.

  • J2EE library path

    we can use method System.GetProperty() or similar to get J2SE library path.
    is there a Java method which can get J2EE library path?
    thx

    no one knows the Q?

  • J2ee library with webdynpro

    Hi
    I created and deployed a library on the server. There are some classes that are using api from webdynpro. What reference should i add to my library in order to be able to use this api. Now i'm getting classnotfound for
    com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing;
    com.sap.tc.webdynpro.progmodel.api.IWDAction;
    Florin

    Florin,
    This is done for certain reason: you may not refer WD application from anything but another WD application. Avoid using WD classes in regular J2EE libraries while these classes depends on WD container they are running in.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • [SOLVED] awesome vicious library missing

    There was an update to the vicious library for awesome to version 2.1.0-1 that was applied to my machine.
    Once I restarted awesome, it failed to load my config, looking at the error log output, it seems to have a problem using the vicious library:
    /home/phyrne/.config/awesome/rc.lua:118: attempt to index global 'vicious' (a nil value)
    Line 118 in my rc.lua is the start of registering my MPD widget.
    I've tried commenting out the MPD widget section, however, it just finds another instance of vicious in my config and complains about that also.
    I've looked in /usr/share/awesome/lib for vicious, where it usually resides, however it isn't there?
    I have confirmed that I do have the vicious package installed, I've also tried installing the vicious-git package, however this didn't work either.
    I've checked for a local copy of vicious in Pacman's chache to rollback to, however unfortunately there isn't an earlier tarball present.
    Does anybody have any idea how this could be fixed?
    Thanks in advance
    Last edited by Starfall (2012-08-27 00:02:13)

    projectdelphai wrote:
    In your rc.lua you now have to require vicious as
    vicious = require("vicious")
    . Someone noticed this earlier here. The vicious folder was moved to /usr/share/lua/5.1 (pacman -Ql vicious).
    That fixed it! Thanks so much for the swift response projectdelphai

Maybe you are looking for

  • Hiding organization data and partner block in IC_AGENT role

    Hello,    For  Business role : IC_AGENT and under  Work Center  : Interaction record ,we have a screen with three different blocks:    Overview  Organizational Data  Partner.    My requirement is to hide Organization Data and Partner block.    Please

  • Webdynpro application can't display a URL iView in a new External window

    Fellow developer: In my WD4A application, I called the method 'navigate_absolute' to display a URL iView in a new External window. The code is as follows: data lo_portal_manager type ref to if_wd_portal_integration. call method lo_portal_manager->nav

  • Prblem in readmorelink in news iview of xml form builder

    hi, i am getting portal runtime error when i click on readmore link in news iview i have taken std news i have not cahnged anything i searched in sdn the solution they have given is also not working can any body help me in this regard Portal Runtime

  • How to set primary file when check in

    I am trying to check in a document in java class, before i execute the CHECKIN_NEW_SUB service, how to set the primary file, i tried to use putlocal("primaryfile", 'C:/xxx.txt'), but i always got the error msg "Content item 'xxxxxx' was not successfu

  • IPhone 3G / Apple Component AV Cable / iTunes DRM Movies

    Hello. Can't seem to find a definite answer to this online. Would appreciate any assistance. I purchase movies from iTunes on my MacBook Pro. Which then syncs them to my iPhone 3G. I would like to watch them on my HDTV without purchasing an Apple TV.