cancel
Showing results for 
Search instead for 
Did you mean: 

No path when importing external java class for message mapping

Former Member
0 Kudos

Changed the existing java program externally and created the class using JAVAC. Class created with no errors. Added the class file in to a new zip file. While imprting the same in to Imported Archives for XLST mapping (PI 7.0), the path doesn't show up under Archive program segment.

The first line of the java program has the path name as follows

package com.luxottica.xi.utils;

This should show up in the path but doesn't. Any one can help what I should look for to correct this issue.

Thanks

Sam

Edited by: Narasimhan Sambamurthy on Jan 28, 2010 9:49 PM

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Create the folders and sub-folders in this below order and place the mapping file..

>com

>> luxottica

>>>xi

>>>>utils

>>>>>mapping file.

With the mapping file being placed in such folder order, zip the com folder and import it... you should be able to see the folder now in PI.

~SaNv...

Former Member
0 Kudos

Your suggestion to zip the file on the com folder solved the problem. Thanks for every one's suggestion and specially to u for solving the issue. All the answers were excellent.

Thanks Guys.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ,

Whats the purpose of java class , you are using java mapping or XSLT mapping

If java mapping create the .jar file and ZIP it and import it in the imported archive .

Regards,

Jude

former_member190389
Active Contributor
0 Kudos

Ok you are creating a java class then how is it that you are importing it in XSLT mapping?

select java mapping in interface mapping... then it will show up

former_member190389
Active Contributor
0 Kudos

Hi

you need to import a ".classpath" file as well . Make a jar of these files i.e " your.class .classpath"

The content will be something like e.g.

<?xml version="1.0" encoding="UTF-8"?>

<classpath>

<classpathentry kind="src" path=""/>

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

<classpathentry kind="lib" path="E:/Jars/Mapping/aii_map_api.jar"/>

<classpathentry kind="lib" path="E:/Jars/Mapping/aii_mt_rt.jar"/>

<classpathentry kind="lib" path="E:/Jars/Mapping/aii_util_xml.jar"/>

<classpathentry kind="lib" path="E:/Jars/Mapping/aii_utilxi_misc.jar"/>

<classpathentry kind="lib" path="E:/Jars/Mapping/sapxmltoolkit.jar"/>

<classpathentry kind="output" path=""/>

</classpath>

Former Member
0 Kudos

The "path" created by the package declaration in your class file has nothing to do with the archive path ! It refers to the "path" you'll see when selecting the corresponding JAVA classes in your intf mappings declaration, ie

com\mycompany\packages\myclass

Chris