cancel
Showing results for 
Search instead for 
Did you mean: 

how to do java conjunction with XSLT Mapping...?

Former Member
0 Kudos

Hi,

I Got a doubt while doing the XSLT mapping......

I have created the

Data Types

Message Types

and

Message Interfaces

Now my doubt is where i have to write the XSLT and Java code and how to create Message Mapping and Interface Mappings...

Please help me...

Best Regards

Ravi Shankar B

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

Now my doubt is where i have to write the XSLT and Java code and how to create Message Mapping and Interface Mappings

>>>> your XSLT will embbed the JAVA code. in case of XSLT mapping no message mapping comes in the picture. You wil import ur XSLT mapping (XSL file) as a .zip file into your Imported Archives and ref. the same in your inter. mapping.

Ref : /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners

Former Member
0 Kudos

Hi

I have created a XSLT mapping with java conjunction... i have created a ZIP file and i have palced java class file, java file and xsl file in that ZIP file... I have imported this archive into imported archives... but when i am testing the application i got the follwoing exceptions

<b>Details

com.sap.engine.services.ejb.exceptions.BaseRemoteException:

Exception in method transform.

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:182)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)

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(Native

Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.lang.UnsupportedClassVersionError:

DATEandTIME/Date_Time (Unsupported major.minor version

49.0)

at java.lang.ClassLoader.defineClass0(Native

Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

at java.lang.ClassLoader.defineClass(ClassLoader.java:448)

at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)

at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)

at com.sap.engine.lib.xsl.xpath.functions.XFFunctionAvailable.execute(XFFunctionAvailable.java:24)

at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110)

at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54)

at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41)

at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49)

at com.sap.engine.lib.xsl.xslt.XSLIf.process(XSLIf.java:28)

at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)

at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)

at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)

at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)

at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)

at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)

at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:457)

at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:391)

at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392)

at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234)

at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150)

at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81)

at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80)

at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107)

at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127)

at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:131)

... 10 more

; nested exception is:

java.lang.UnsupportedClassVersionError:

DATEandTIME/Date_Time (Unsupported major.minor version

49.0)

com.sap.engine.services.ejb.exceptions.BaseRemoteException:

Exception in method transform.

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:182)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)

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(Native

Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.lang.UnsupportedClassVersionError:

DATEandTIME/Date_Time (Unsupported major.minor version

49.0)

at java.lang.ClassLoader.defineClass0(Native

Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

at java.lang.ClassLoader.defineClass(ClassLoader.java:448)

at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)

at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)

at com.sap.engine.lib.xsl.xpath.functions.XFFunctionAvailable.execute(XFFunctionAvailable.java:24)

at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110)

at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54)

at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41)

at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49)

at com.sap.engine.lib.xsl.xslt.XSLIf.process(XSLIf.java:28)

at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)

at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)

at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)

at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)

at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)

at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)

at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:457)

at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:391)

at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392)

at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234)

at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150)

at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81)

at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80)

at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107)

at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127)

at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40)

at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:131)

... 10 more

; nested exception is:

java.lang.UnsupportedClassVersionError:

DATEandTIME/Date_Time (Unsupported major.minor version

49.0)</b>

Please help me....

Best Regards

Ravi Shankar B

Message was edited by: RaviShankar B

Shabarish_Nair
Active Contributor
0 Kudos

If you are following the blog do as the following;

1. follow the source and target as per the blog.

2. create the java code in NDS and make a jar file for the same and import it in the 'imp. archives'

3. create the XSLT in a XML editor and zip the xsl file and import it in the 'imp. archives'

4. Use the XSLT zip file in your Int. mapping and test the scenario.

Former Member
0 Kudos

Hi

Still i am getting the same error....

Best Regards

Ravi Shankar B

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi Shankar,

For XSLT/ Java Mapping you donot have to create MessageMapping.

<b> For XSLT Mapping</b>:

Create your XSLT mapping in a XML Editor (Like XMLSpy) and make ZIP archive and import it in XI as Imported Archives.

<b> For Java Mapping</b>:

Create your Java mapping in a Eclipse/ SAP NWDS and make jar file and import it in XI as Imported Archives.

Then call the Imported Java class/XSLT mapping in your Interface Mapping of IR.

Regards,

Ananth

Former Member
0 Kudos

Hi ,

No need to create message mapping in XSLT mapping.You have to create interface mapping only...

Check these blogs

/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

Also see this blog on how to activate XSLT mapping in the Integration repository of XI

/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

Sekhar