Skip to Content

Not able to use external library DC in NW 7.0

Hi Experts,

I have a requirement wherein I need to provide the option to export the data in the Table UI to a PDF file. For this purpose I am using the iText-2.1.5.jar file in my External Library DC.

I am following the blog *How to use external JAR files in Web Dynpro development components * [http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12177] [original link is broken] [original link is broken]; to use the external library DC within my Web Dynpro Development component.

Below are the steps I am following:

Web Dynpro DC - pdftest

External Library DC - pdftestlib

J2EE ServerComponent/Library DC - pdfjeecomp

1. Create an external library DC and add the jar file in the libraries folder of this DC.

2. Create public part for compilation and for assembly for the jar file.

3. Create a development component of type J2EE ServerComponent/Library and use the public part for

assembly of the external library DC (with Dependency Type Build Time).

3. Use the public part for compilation in my web dynpro development component (with Dependency Type Build Time).

4. Build and deploy the J2EE Library DC

5. Define a Library Reference to the J2EE Server Component/Library development component in the project properties of my

web dynpro DC.

6. Build and deploy the web dynpro DC.

Deployment of the web dynpro DC finishes with the below warning:

-


Result

=> deployed with warning : file:/C:/DOCUME1/NETWEA1.HUL/LOCALS1/Temp/temp1845989722034077442com.hul.testpdftest.ear

Finished with warnings: development component 'pdftest'/'com.hul.test'/'local'/'20111214120043'/'0':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application com.hul.test/pdftest and wait. Reason: Clusterwide exception: server ID 2293150:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application com.hul.test/pdftest for startup. Reason=Clusterwide exception: Failed to start dependent library ''com.test~pdfjeecomp.sda'' of application ''com.hul.test/pdftest''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine? at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1507) at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223) at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171) at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342) at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4716) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4621) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4594) at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:330) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:219) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

Deployment exception : Got problems during deployment

-


And when I run the application I get the below error:

com.sap.tc.webdynpro.services.sal.core.DispatcherException: Failed to start deployable object com.hul.test/pdftest

I am following the exact steps from the above mentioned blog. Can anyone help me in pointing if I am missing something?

Regards,

Saurabh

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

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.