cancel
Showing results for 
Search instead for 
Did you mean: 

PDF Action Blocks in SAP MII 12.1.8

Former Member
0 Kudos

Hi Guys,


I am currently working on the PDF custom action block part. I use MII 12.1.8 version.


1. I have deployed all the dependency jars like PDFActions.Jar, iText.Jar (olderversion) and iTextAsian.jar. PDF Action blocks are generated properly in the server but not in the client.   


2. In the client i tried creating the zip file named CustomActionJar and the zip file has all the dependencies which is mentioned in my 1st point. but it is not getting deployed. It shows the error message like "Assembly File Catalog.xml" is missing. Once i got this error i got the xml content of Catalog.xml from google and so i put that xml content in the notepad, saved it as "Catalog.xml". But still the custom jars are not getting deployed. Now the error changed to Assembly File "PDFActions.jar" is missing.


Could anyone please suggest what is missing??


Thanks

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Praveen,

For deploying PDF Custom action block, cross verify with below steps

Note* its after SAP MII 12.1 SP01 Patch 2

1. Download and unzip the attached pdfactions.zip file to your local machine.

2. Obtain version 1.4.5. of the third-party iText.jar and iTextAsian.jar, from

http://www.lowagie.com/iText/download.html and save to your local machine.

3.  Rename the files iText.jar and iTextAsian.jar making sure to match the noted case.

4. Open a browser window and navigate to the SAP xMII Administration

Menu at http://<server>:<port>/XMII/Menu.jsp.

5. On the SAP xMII Administration Menu, choose System Management -> Custom Actions.The

Custom Actions screen appears.

6. To upload the .jar files to SAP xMII, click Upload. PDFActions.jar is the assembly .jar file, and iText.jar and/or iTextAsian.jar are the dependency .jar files. For more information on uploading and deploying the files, click Help.

And as you said, its successfully deployed in Server but not in client system.

1. Validate Java Version in both system

2. cross verify File Paths of folders


Go through below posts:

Can you explain more about your client system


Regards,

Praveen Reddy

Former Member
0 Kudos

My Suggestion,

1. Remove all deployed .jar files

2. Restart SAP MII server if possible

3. Clear the Java Console, browser history in client system

4. Restart client system.

5. Again deploy freshly as per above steps

hope it will work. And if you face any issue or popup error, or Java console error while deploying, let us know.

Go through this post as well

Regards,

Praveen Reddy

Former Member
0 Kudos

Praveen Reddy,

we hav tried all your suggestions and also the link suggested by you where they have asked everyone to zip the jar files before the deployment. we did it by zipping and also by unzipping it to a separate ones but doesn't help. we did not get any console error as well.

This time we restarted our server also but same issues..

Please let me know if anyother steps u wanna suggest.

Thanks

Praveen

Former Member
0 Kudos

Hi Praveen,

Please goto Java console and enable the debugger and save it. Then close all the browser after clearing cache and then  try to open workbench in a new browser. Please give it a try.

Former Member
0 Kudos

Hi Mahesh,

Here is my console

Java Web Start 1.5.0_22

Using JRE version 1.5.0_22 Java HotSpot(TM) Client VM

User home directory = C:\Users\chukkam

-------------------------------------

  --------------------------------------------------

 

ConsoleLogger::Creating NEW instance...

ConsoleLogger::Debug is false

WARN - Could Not Load Muffins, Using Defaults:
C:\Users\chukkam\AppData\LocalLow\Sun\Java\Deployment\cache\javaws\muffins\http\D10.100.133.83\P50000\DMXMII\DMCMSLogicEditor\PULookAndFeel
(The system cannot find the file specified)

<<< frog.jar: version 7.20.7 10/31/07 sap.theme:
Tradeshow >>>

ERROR - error Creating Component :
PDFDocument/com.sap.mii.actions.pdf.PDFActions : com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFTable/com.sap.mii.actions.pdf.PDFActions :
com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFImage/com.sap.mii.actions.pdf.PDFActions : com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFBarcode/com.sap.mii.actions.pdf.PDFActions :
com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFHorizontalLine/com.sap.mii.actions.pdf.PDFActions :
com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFText/com.sap.mii.actions.pdf.PDFActions : com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFPage/com.sap.mii.actions.pdf.PDFActions : com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component : PDFDocument/com.sap.mii.actions.pdf.PDFActions
: com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFTable/com.sap.mii.actions.pdf.PDFActions :
com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component : PDFImage/com.sap.mii.actions.pdf.PDFActions
: com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFBarcode/com.sap.mii.actions.pdf.PDFActions :
com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFHorizontalLine/com.sap.mii.actions.pdf.PDFActions :
com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFText/com.sap.mii.actions.pdf.PDFActions : com.sap.mii.actions.pdf.PDFActions

ERROR - error Creating Component :
PDFPage/com.sap.mii.actions.pdf.PDFActions : com.sap.mii.actions.pdf.PDFActions

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Praveen,

Please attach your catalog.xml file here.

Regards,

Anushree

Former Member
0 Kudos

Hi Anushree,

Here is my xml.

<ComponentCatalog>

<Category Name="PDF" Description="PDF">

<Component Type="Action" Name="PDFDocument" Description="" Label="PDF Document" ClassName="com.sap.mii.actions.pdf.PDFActions" AssemblyName="PDFActions.jar" Dependencies="iText.jar,iTextAsian.jar" HelpFileName="PDF_Document_Action.htm" />

</Category>

</ComponentCatalog>

Please suggest me if anything is wrong

Thanks

Praveen

Former Member
0 Kudos

Hi Praveen,

In case you are on MII 12.1 you should upload the dependency jars and PDFActions jar separately rather than as a single zip file.

What error do you see when you open the workbench? If you open java console you will see the error causing the issue at client end.

Regards,

Anushree

Former Member
0 Kudos

Anushree,

Actually it displays the action blocks but the drag and drop is not working. couldn't generate the PDF document also. As you suggested we have installled the jar files separately but it doesn't help. Validated the versions of Java in both server and client.

Is there anythng else i am missing?

Thanks

Praveen

Former Member
0 Kudos

Hi Praveen,

If drag and drop is not working you will see an error on java console which will tell you more about the issue at client end. Also, you could add the action block by double click.

When you say PDF documents are not generated, what do you mean? Does the transaction throw an error? What error do you see if you debug the transaction and in the logs?

Regards,

Anushree

Former Member
0 Kudos

Hi Anushree,

Checked the java console but no error are shown in console after drag and drop.

Actually, The action blocks are getting displayed with the action block names but not wiith the suited icons. So something is missing. we deleted cache and checked. Restarted the server but still the same issue.

Any thng missing from our side?

Thanks

Praveen

Former Member
0 Kudos

Hi Praveen,

This simply means that the custom action is not deployed properly. The classloader is not able to find the implementation classes . When you open the workbench you should see some errors in the java console. Have you deployed the custom action after upload?

Please clear the cache before starting workbench. Also, please press 5 when console comes up and post the output here.

Regards,

Anushree

Former Member
0 Kudos

Anushree,

We deployed out custom actions properly. but you might be right as you wer saying the class loader is unable to find the implementation classes. If i open the workbench i cannot see any errors in java console b'coz we deployed our custom action only after upload.

Anything missing ??

Thanks

Praveen

Former Member
0 Kudos

Hi Praveen,

Please check Netweaver logs if there are any errors reported. If you have already done a server re-start, it should have re-set the classloader.

Regards,

Anushree