Skip to Content
author's profile photo Former Member
Former Member

hard reference to heavy resource library does not work as suggested

Hi All

I've followed the directions of Goran Stoiljkovski in his explanation of how to use "heavy resources" to create a static library. Using telnet, I can see that my library was in fact loaded as a heavy resource. Here's the output:

>ll | grep ionline

[sap.com/ionline_library]

[sap.com/ionline_library-library-loader] <--- This is the proof

and here is the snippet in application-j2ee-engine.xml of my application referring to the library.

<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">
	<reference reference-type="hard">
	<reference-target provider-name="com.sap"
		target-type="application">ionline_library</reference-target>
	</reference>
	<provider-name>com.sap</provider-name>
	<fail-over-enable mode="disable" xsi:type="fail-over-enableType_disable"/>
	<start-up mode="always"/>
</application-j2ee-engine>

In spite of all this, I get the following error when trying to deploy my application:

snip

[ERROR CODE DPL.DS.5035] Application [sap.com/ionline] cannot be started. Reason: it has hard reference to resource [ionline_library] with type [application], which is not active on the server.

snip

The following telnet output shows that the library application IS active:

>add deploy

>list_app | grep ionline

sap.com/ionline IMPLICIT_STOPPED always 3754050

sap.com/ionline_library STARTED lazy 3754050

>

Please, does anyone have a clue as to what is wrong?

Regards

Johan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2009 at 02:32 PM

    Hi Johan

    I had not seen the Heavy Resource Reference PDF that you are trying to follow and so I had wondered why you are calling your library an application. But now I see it and am sure that you've used a wrong provider name.

    
    	<reference-target provider-name="com.sap"
    		target-type="application">ionline_library</reference-target>
    	</reference>
    

    You can confirm this by deploying after changing it to sap.com since your ionline_library is deployed under the vendor name sap.com, which is different to what Goran has deployed under (see pg 15/18 of his PDF: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257&overridelayout=true).

    Please inform if it was successful. The "Heavy Resource Reference" concept indeed looks interesting and I would try it as well.

    Regards

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2009 at 10:24 AM

    Hi Johan

    Could you please check whether you've deployed your library as a library or as a j2ee app? If you've deployed it as a library, please check the corresponding folder's presence in ..\j2ee\cluster\server0\bin\ext\ (AS Java 7.0 structure). What is the folder name over there? Is it <vendor_name>~<library_name>?

    Also, if it is deployed as a library, please use the "library" reference type and not "application" and make sure that the vendor name and library name in the applications's deployment descriptor are exactly as the folder name pattern, as mentioned above.

    Regards

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Varun

      Thank you for your reply. I found an ext folder under C:\usr\sap\CE1\J00\j2ee\cluster\bin\ext. I am running the 32-bit workplace that comes with SAP Netweaver CE 7.1 with EHP1. My library is not there. I followed the directions in [Developer guide|http://help.sap.com/saphelp_nwce711/helpdata/en/46/b902f8d0b22880e10000000a155369/content.htm] and if I use telnet, I see this:

      >ll | grep ionline
        [sap.com/ionline_library]
        [sap.com/ionline_library-library-loader]
      >llr sap.com/ionline_library-library-loader
        Loader name:
          [sap.com/ionline_library-library-loader]
        CSN component:
          []
        DC name:
          [sap.com/ionline_library]
        Direct parent loaders:
          [system:Frame]
          [library:javax~persistence~api]
          [library:javax~annotation~api]
          [library:servlet]
          [library:j2eeca]
          [library:activation_api_ri]
          [library:mail_api_ri]
          [library:saaj13_api]
          [library:jaxb20_api]
          [library:jaxws_api]
          [library:jws_api]
          [library:ec~java~jsf~api]
          [library:tc~je~deployment14_api]
          [library:jms_api]
          [library:tc~je~jacc~plb]
          [library:ejb_api]
          [library:tc~je~javax77]
          [library:jaxrpc_api]
          [library:jaxr_api]
        Direct child loaders:
          [sap.com/ionline_library]
        Resources:
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\hibernate-commons-annotations.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\commons-logging-1.1.1.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\izazi-commons.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\slf4j-api.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\log4j-properties.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\dom4j.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\log4j.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\engineapi.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\com.ibm.icu_4.0.1.v20090415.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\ejb3-persistence.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\hibernate-annotations.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\hibernate-core.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\dwr.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\picocontainer-1.2.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\slf4j-jdk14-1.5.2.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\coreapi.jar
          C:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\ionline_library\app_libraries_c
      ontainer\lib\jspbook.jar
      
      >

      What else do I need to do?

      Regards

      Johan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.