Java extensions to XSLT

Hi,
I'm just starting with the new features in the XML/XSLT parser.
I would like to use the Java extensions to do something like
this: I want to be able to insert an XML document at a certain
position based on user input. I have tried something like
<xsl:template match="page">
<xsl:variable name="myparser" select="parser:new()"/>
<xsl:value-of select="parser:parse
($myparser, 'file:/D:/Razvan/OracleXMLParser/sample/prefs.xml')"/
>
<xsl:variable name="mydocument" select="parser:getDocument
($myparser)"/>
This is the line ------V
<xsl:value-of select="$mydocument"/>
<xsl:apply-templates/>
</xsl:template>
and it doesn't work.
Any ideas?
Thanks,
Razvan
null

Dear Sateesh,
Declare xlst variables at start of xsl program like below
                         <xsl:output method="xml" indent="yes"/>
     <xsl:variable name="today_formatted" select="java:java.text.SimpleDateFormat.new('yyyyMMdd')"/>
     <xsl:variable name="time_formatted" select="java:java.text.SimpleDateFormat.new('HHmmss')"/>
      and use them in xsl mapping
<xsl:value-of select="substring(concat(java:format($today_formatted, $date),$blanks),1,8)"/>
<xsl:value-of select="substring(concat(java:format($time_formatted, $date),$blanks),1,6)"/>
thanks,
madhu

Similar Messages

  • Overloaded Java methods in XSLT extensions?

    Hello,
    when using Java classes as XSLT extensions, is it possible to use overloaded methods at all? I get "XSL-1042: Extension function error: Overloaded method 'format'" when doing that.
    I studied Steve Muench's book, pages 607-611, and came up with the following:
    Declared namespaces: "Date" for java.util.Date, "DateFormat" for java.text.DateFormat.
    Declared XSL variables: "now" as "Date:new()", "datefmt" as "DateFormat:getDateInstance()".
    Value of "Date:toString($now)" works fine. However, value of "DateFormat:format($datefmt, $now)" causes the XSL-1042 error.
    Is there any way around this?
    --Jere
    null

    The way around it is to create a wrapper function yourself that doesn't depend on overloading, and then exploit the overloading within your wrapper function call.

  • Calling JAVA Functions from XSLT

    Hi,
    I am trying to invoke a Java Extension Function from a XSLT. I added both the class file and the XSLT file to a folder, then zipped the entire folder and uploaded into the Archive for my Interface MApping.
    The CLASS gets loaded but the runtime engine gives an error when calling the JAVA Function.
    Here is what it says:
    Creating mapping sequence with 2 steps. --- Creating Java mapping Deliveries/stringHandler --- Creating mapping sequence with 2 steps. --- Creating XSLT mapping Deliveries/test1 --- Using MappingResolver with context URL /sapmnt/XD1/global/xi/mapping/http%3A%2F%2Fwolterskluwer%2Ecom%2Fxi%2F wk_midas_deliveries%2Ftest/cd2e6820267511d9cb52c3c5143c3524/ --- Loaded class Deliveries.stringHandler --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND(MappingRuntimeException.java:91) at com.sap.aii.ibrun.server.map.RUMappingJava.instantiate(RUMappingJava.java:168) at com.sap.aii.ibrun.server.map.RUMappingJava.execute(RUMappingJava.java:41) at com.sap.aii.ibrun.server.map.RUSequence.execute(RUSequence.java:50) at com.sap.aii.ibrun.server.map.RURunner.run(RURunner.java:58) at com.sap.aii.ibrun.server.map.RUManager.run(RUManager.java:66) at com.sap.aii.ibrun.sbeans.map.MappingRequestHandler.handleRequest(MappingRequestHandler.java:67) at com.sap.aii.ibrun.sbeans.map.MappingServiceImpl.processFunction(MappingServiceImpl.java:83) at com.sap.aii.ibrun.sbeans.map.XMappingServiceObjectImpl0.processFunction(XMappingServiceObjectImpl0.java:24) at com.sap.aii.ibrun.sbeans.map.MappingServiceKey.processFunction(MappingServiceKey.java:10) at java.lang.reflect.Method.invoke(Native Method) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.invokeBean(RFCDefaultRequestHandler.java:83) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:50) at com.inqmy.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:69) at com.sap.mw.jco.JCO$Server.dispatchRequest(Unknown Source) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.run(Unknown Source) at java.lang.Thread.run(Thread.java:513) --
    Any help or suggestions to solve this problem would be greatly appreciated.
    Thanks
    A

    Hi,
    Thanks for looking into this.
    1. I have verified that the path in the zip file is correct i.e com/sap/test/stringHandler.class
    2. test1.xsl is in the root folder i.e No path.
    3. I see the Message in the stacktrace saying "Loaded Class com/sap/test/stringHandler.class " but after that I get a runtime MApping Error and it says "CLASS_NOT_FOUND".
    Can you please tell me why is this happening?
    Thanks
    A

  • Java extension functions

    I am trying to execute XSL transformation of XML document in Oracle 9i database
    and I am using java extension function in XSL stylesheet.
    The XSL stylesheet namespace for the extension function is defined as follows:
    xmlns:distance="http://www.oracle.com/XSL/Transform/java/Helper
    Apparently the Oracle XSLT processor can not resolve this reference.
    However, the error message is somewhat misleading:
    ORA-03113: end-of-file on communication channel
    I tried to load the java helper function in the database but this does not help.
    I would appreciate if you could give me some info how to resolve the reference to a java extension function in Oracle 9i database.
    Thanks in advance.

    We are trying to run java extension functions in Oracle 8i (8.1.7), using the 9.2.0.2 XDK and running into a similar problem.
    For testing, the following xsl was used :
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" exclude-result-prefixes="math"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://www.oracle.com/XSL/Transform/java/java.lang.Math">
    <xsl:template match="/">
    <xsl:value-of select="math:ceil(12.34)"/>
    </xsl:template>
    </xsl:stylesheet>
    A stack trace yields the following:
    java.lang.NullPointerException
    at oracle.xml.parser.v2.XSLExtFunctions.getClass(XSLExtFunctions.java:351)
    at oracle.xml.parser.v2.XSLExtFunctions.getMethod(XSLExtFunctions.java:229)
    at oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:178)
    at oracle.xml.parser.v2.XPathExtFunction.getValue(XPathExtFunction.java:137)
    at oracle.xml.parser.v2.XSLExprBase.getStringValue(XSLExprBase.java:369)
    at oracle.xml.parser.v2.XSLValueOf.processAction(XSLValueOf.java:99)
    at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:369)
    at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:200)
    at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:473)
    at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:450)
    at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:248)
    at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:138)
    at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:210)
    Seems like the classloader cannot find the java class files or having some access-related problems.
    Any help is appreciated.
    Thanks,
    Atul

  • Java ,abap and XSLT mapping

    Hi all,
               can any one provide some material on java ,ABA and XSLT mapping(as i got requirement on my current project)..
    thanks in advance.
    regards
    krish..

    Hi
       All mapping related links
    There is no hard and fast rule for using the mapping techniques.
    Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.
    Java and XSLT mapping are used when graphical mapping cannot help you and you have multilevel hierarchy structure data.
    When the choice is between Java and XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perform something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.
    Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but, DOM is very processor intensive.
    SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exactly easy to develop either.
    To know more about each of them please go thru the following links. And if you ask me your which is better, it depends basically on the scenario you implementing and the complexity involved. Anyways please go thru the following links:
    Graphical mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/bhanu.thirumala/blog/2006/02/02/graphical-message-mapping-150-text-preview
    http://www.sapgenie.com/netweaver/xi/mapping1.htm
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    XSLT mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    http://www.w3.org/TR/xslt20/
    JAVA mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    ABAP mapping
    /people/r.eijpe/blog
    To know more about the value mapping tools for the SAP Exchange Infrastructure (XI), please go thru the following link:
    http://www.applicon.dk/fileadmin/filer/XI_Tools/ValueMappingTool.pdf
    To get an idea as to what value mapping is, please go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/dfae3d47afd652e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    most of the links that I have provided also helps you get the step by step procedure of doing the same. And also involves the procedure to implement certain advanced features.
    And please go through this link which clearly explains the 3 types of mappings.
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    regards
    Prasad

  • How to call external java functions in XSLT Mapping Programs

    Hi All,
    I am unable to call java programs in XSLT MAPPING.
    I tried by following the blog...but getting error :
    XSLT Mapping With JAVA Enhancement ( For Beginners)
    I need some input from you all.
    Waiting For quick reply.
    Rgds Somu.

    i wrote the code...
    and getting error in interface mapping..
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:MyLib="java:datetime.DateandTime">
         <xsl:template match="/">
              <Order DocType="OrderCreate" Version="2.0.2">
                   <Header>
                        <RequestingDocumentIdentifier>
                             <DocumentIdentifier>
                                  <xsl:value-of select="concat('IDOC',//EDI_DC40/DOCNUM)"/>
                             </DocumentIdentifier>
                        </RequestingDocumentIdentifier>
                        <RequestingDocumentDateTime>
                             <DateTime DateTimeQualifier="On">
                                            <xsl:if test="function-available('MyLib:getDateValue')">
                       <xsl:value-of select="MyLib:getDateValue()"/>                   
      </xsl:if>
                                        </DateTime>
                        </RequestingDocumentDateTime>
                        <From>
                             <PartnerInformation>
                                   <PartnerName>BASF SA</PartnerName>
                                    <PartnerIdentifier Agency="AssignedByBASF">
                                     <xsl:value-of select="//E1EDK14[QUALF='014']/ORGID"/>
                                    </PartnerIdentifier>
                             </PartnerInformation>
                        </From>
                        <To>
                        <PartnerInformation>
                             <PartnerName>BASF CORP CHEM DIV</PartnerName>
                             <PartnerIdentifier Agency="D-U-N-S">001307032</PartnerIdentifier>
                        </PartnerInformation>
                   </To>
                   </Header>
              </Order>
         </xsl:template>
    </xsl:stylesheet>

  • Java enhancement in XSLT mapping in PI 7.1 and JDK5 XML processing

    Hi,
    I am implementing an XSLT mapping and I need to use java enhancements. I got those working but only if I check "Use SAP XML Toolkit" from Operation Mapping. I would like to use JDK5 XML processing.
    I also got this message to trace:
    Resource not found: META-INF/services/javax.xml.parsers.SAXParserFactory
    Thrown:
    com.sap.aii.ib.server.mapping.execution.MappingClassNotFoundException: META-INF/services/javax.xml.parsers.saxparserfactory
    I tried to use com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl but still couldn't get java enhancement working.
    Is there a way to get JDK5 XML processing working with java enhancements?

    > Is there a way to get JDK5 XML processing working with java enhancements?
    No. Java processing inside XSLT is no standard. So it works only with SAP lib.
    Regards
    Stefan

  • Calling Java class in XSLT mapping

    Hi,
    how can we call a java class in XSLT mapping..
    thanks
    guna

    This is a good one too:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    Found this one helpfull too
    http://www.cafeconleche.org/books/xmljava/chapters/ch17s03.html
    Christof

  • How to call Java Map in XSLT map

    Hello,
    Can anyone tell me how to call Java Map in XSLT map.
    Thanks and Regards
    Hemant

    Hello, Vijay,
    Can you help in understanding how can we pass whole payload in the parameter in XSLT map.....
    for eg
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:DATEandTIME.Date_Time">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <MT_TARGET>
              <date>
                   <xsl:if test="function-available('javamap:getDateValue')">
                       <xsl:value-of select="javamap:getDateValue($inputparam)"/>                    </xsl:if>
              </date>
              <time>
              <xsl:if test="function-available('javamap:getTimeValue')">
                       <xsl:value-of select="javamap:getTimeValue($inputparam)"/>                       <xsl:value-of select="$test"/>
              </xsl:if>
              </time>
              <project>
                        <xsl:value-of select= "//project"/>
              </project>
         </MT_TARGET>
         </xsl:template>
    </xsl:stylesheet>
    here we are passing static value in parameter.....
    Java code is:
                private static AbstractTrace trace = null;
                public static String getDateValue(Map inputparam)
                        trace = (AbstractTrace)inputparam.get(
                                 StreamTransformationConstants.MAPPING_TRACE );
                        Date now1 = new Date();
                        SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMd");
                        String dateString = formatter.format(now1);
                        return dateString;
                public static String getTimeValue(Map inputparam)
                            trace = (AbstractTrace)inputparam.get(
                                    StreamTransformationConstants.MAPPING_TRACE );
                            Date now1 = new Date();
                            SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
                            String dateString1 = formatter.format(now1);
                            return dateString1;
    I want to pass whole payload so how can i pass it.

  • SQL extension for XSLT

    Hi,
    I am working on SQL extensions on XSLT using xalan SQL Library. My requirement is to insert some data which comes in the form of XML to one of our tables. I tried to write a sample XSLT to retrieve the data from the database (thought I can change it to insert once I succeed retrieving data). The XSLT is not working. I think I am able to connect to database successfully but not able to retrieve any results. Any help would be greatly appreciated.
    Thanks in advance,
    Latha
    Here is my sample XSLT.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0"
    xmlns:sql="org.apache.xalan.lib.sql.XConnection"
    extension-element-prefixes="sql"
    xmlns:xalan="http://xml.apache.org/xalan"
    exclude-result-prefixes="xalan"
    >
    <xsl:param name="queryString" select="'SELECT * FROM FASTATUS'"></xsl:param>
    <xsl:output method="html" indent="yes"/>
    <xsl:template match="/">
    <xsl:variable name="dbObj" select="sql:new()"></xsl:variable>
    <!-- Connect to the database with minimal error detection -->
    <xsl:if test="not(sql:connect($dbObj, 'extpool'))" >
    <xsl:message>Error Connecting to the Database</xsl:message>
    <xsl:copy-of select="sql:getError($dbObj)/ext-error" />
    </xsl:if>
    <xsl:message>Database Coneection successful</xsl:message>
    <HTML>
    <HEAD>
    <TITLE>List of Values</TITLE>
    </HEAD>
    <BODY>
    <!--
    Let's include Error Checking, the error is actually stored
    in the connection since $table will be either data or null
    -->
    <xsl:variable name="table">
    <xsl:copy-of select="sql:query($dbObj, $queryString)"/>
    </xsl:variable>
    <xsl:if test="not($table)" >
    <xsl:message>Error in Query</xsl:message>
    <xsl:copy-of select="sql:getError($dbObj)/ext-error" />
    </xsl:if>
    <xsl:message>Query execution successful</xsl:message>
    <TR>
    <!-- Get column-label attribute from each column-header-->
    <xsl:for-each select="$table/sql/metadata/column-header">
    <TH>
    <xsl:value-of select="@column-label"/>
    </TH>
    </xsl:for-each>
    </TR>
    <xsl:apply-templates select="$table/sql/row-set/row"/>
    <xsl:text>&#10;</xsl:text>
    </BODY>
    </HTML>
    <xsl:value-of select="sql:close($dbObj)"/>
    </xsl:template>
    <xsl:template match="row">
    <TR><xsl:apply-templates select="col"/></TR>
    </xsl:template>
    <xsl:template match="col">
    <TD><xsl:value-of select="text()"/></TD>
    </xsl:template>
    </xsl:stylesheet>

    No idea. You didn't mention pquery in your original post, and I don't even know what that is (even after googling it).
    Anyway, your problem is the same as in your first post. You haven't done your research. All you know is it's "not working". Find out in what way it is not working and then post a detailed question.

  • Problem in deploying Java Extension to ORacle SQL Developer

    Hi all,
    I have developed a simple Java extension using Oracle Jdeveloper. This extension creates a preference in Tools->Preferences.
    I have deployed it on Jdeveloper and it works fine. But when I deploy it on Oracle SQL Developer its functionality does not work
    I am using JDeveloper 11.1.1.4
    and Oracle SQL Developer 3.2.20.09 (Latest Version).

    Hello,
    You are giving few informations. Is the extension listed in the extensions tab in the 'About' tab? Are you able to deploy any extension to SQLD?
    Joop

  • Java extension for SQL Developer 2.1 (SqlEditor)

    Hello,
    we are developing a java extension for SQL Developer. It was working fine in version 1.5.5 but it seems that some of the java classes were changed in version 2.1 so it does not any more. In the SQL editor, we want to have a context menu action that gets the selected SQL statement and calls a database function with it as an argument. Our code looks like
    @RegisteredByExtension("our.developer.extension")
    public final class OurCommand extends Command {
    public int doit() {
    SqlEditor sqlEditor = (SqlEditor)getContext().getView();
    String query = sqlEditor.getView().getSqlStatement();
    sqlEditor.executeSql(query, "");
    //or
    //sqlEditor.getView().scriptRunner(query);
    Unforunately, in SQL Developer 2.1 the class oracle.dbtools.sqlworksheet.sqlview.SqlEditor does not exist. Does anybody know how to write this example for version 2.1? Is there an API documentation (alas, [http://wiki.oracle.com/page/SDK+2.0] is an empty article)?
    BTW, does anybody know how to open the dialog for connecting to a database when sqlEditor.getConnection() is null?

    I got it to work using a BASIC call instead of my normal TNS call.
    We use MS SMS to package the Oracle client and SQL Developer and push it out to users so we don't have people visiting desktops. Also, we use OID to store the entries instead of a tnsnames file so that we don't have to maintain a TNSNAMES file.
    I am testing 2.1 as we would eventually upgrade when it goes GA.
    2.1 seems to be built on Oracle 11g. Issue will be that since 99% of our databases are 10gr2 as well as 100% of our client population will be be forced to upgrade the Oracle client to use 2.1 as we do today without lots of changes for the end user?
    We don't broadcast the information the average user requires for a BASIC connection so that is out for non technical users..
    We have SQL Developer 1.5.5 right now and this is not and issue.
    Hopefully, this will be resolved during EAI for 2.1.

  • How to call Java method from XSLT??

    Hi All,
    Jdev 11.1.1.3.0
    I have a requirement to implement that, I have to call Java method from XSLT. Could anyone please suggest to implement that??
    Thanks,
    Santosh M E

    As pointed by others, you must expose your method as a custom function, registering with JDeveloper (for development time) as well as with SOA Suite (for runtime).
    In the link below you will find a simple step by step example:
    https://blogs.oracle.com/reynolds/entry/building_your_own_path
    Regards,
    Luis F. Heckler

  • Pls need help with Java Extension

    hi guys
    i have created a class let say it "RectangleArea" and i created a jar file " myjar.jar" containing class "RectangleArea" so i put the jar in the ext folder to use the java extension .then i create class "AreaApp" inside "AreaApp" i instantiate "RectangleArea" .and when compiling "AreaApp" it compile good.but the problem is when runing it through an exception:-
    Exception in thread "main" java.lang.NoClassDefFoundError: RectangleArea at AreaApp.main(AreaApp.java:9)
    so i wonder how to slove this problem?

    It may be due to the following reasons
    1)myjar.jar may not be included in the classpath
    2)RectangleArea.class may be inside wrong package
    Just correct it and try again.
    Cheers,
    Pushparaj.

  • Deploying Java extensions by Java installers

    Hi!
    I've developed an Applet that needs a couple of Java extensions (Java Advanced Imaging + Image I/O Tools for JAI) in order to correctly run. I've put an appropriate MANIFEST file into my applet's JAR and signed my applet with a valid certificate.
    Java Advanced Imaging is shipped with an appropriate native installer by Sun: so I put appropriate entries in my Applet MANIFEST file, which cause the native installer to be executed the first time my Applet gets loaded by a client:
    jai-Extension-Name: javax.media.jai
    jai-Specification-Version: 1.1-mr
    jai-Implementation-Version: 1.1.2
    jai-Implementation-Vendor-Id: com.sun
    jai-Implementation-URL: http://myserver/myAppletDir/jai_windows-i586.jar
    One first question is: the "Implementation-URL" manifest parameter has to be an ABSOLUTE http URL? I've tried to specify relative URLs, but I got errors. It would be extremely useful to be able to specify the extension implementation URL as a relative URL, with respect to the applet Code Base...
    In any case, if you specify an absolute URL, this extension is regularly installed on the client the first time my Applet is loaded into the client's browser.
    I have some problems with the installation of the other extension (Image I/O Tools for JAI): this extension is shipped by Sun as a set of JAR and DLL native files (for Windows), with no automatic installer. The JAR files have to be copied into %JRE_HOME%/lib/ext, while the DLL files have to be copied into %JRE_HOME%/bin.
    I am trying to develop a Java application that would act as a Java installer to be listed among the Java extensions required by my applet. This application would take care of copying the required files into the required directories. I added the following lines to my Applet's MANIFEST:
    jiio-Extension-Name: jiio
    jiio-Specification-Version: 1.0
    jiio-Implementation-Version: 1.0
    jiio-Implementation-Vendor-Id: com.sun
    jiio-Implementation-URL: http://myServer/myAppletDir/MyJavaInst.jar
    Also, I packed my Java application into a JAR file, with appropriate manifest, and signed it.
    This Java application is actually executed when my Applet loads, and correctly executes its code.
    The problem is that this Java application/installer gets executed EVERY time I load my Applet, not just the first time. How can I avoid this behavior? How could I say to the Java Plug-in that this extension has already been installed?
    Thanks a lot for any help / suggestion.
    Best regards,
    Marco.

    I solved the problem of multiple installations of the Image I/O extension, by modifying the manifest of my JAR archive as follows:
    jiio-Extension-Name: com.sun.media.imageio
    jiio-Specification-Version: 1.0-rc
    jiio-Implementation-Version: 1.0-rc
    jiio-Implementation-Vendor-Id: com.sun
    jiio-Implementation-URL: http://myServer/myAppletDir/MyJavaInst.jar
    Since one of the extensions installed by my Java installer is a signed extension having "com.sun.media.imageio" as Extension-Name and the versions as specified, my Java Installer is run only the first time the Applet is loaded on the client.
    But I still have the problem of the "Implementation-URL" parameter: is it possible to specify this URL as a RELATIVE URL (with respect to my Applet's codebase) instead of as an ABSOLUTE URL?
    Any help / hint would be greatly appreciated.
    Thank you,
    Marco.

Maybe you are looking for

  • How do I transfer songs from one account to another?

    When I purchased the Ipod for my daughter, she was under 18, so I used my name and AOL login. Now that she is older, the IPOD is still connected to me and not her. Some songs are listed as hers, others as mine. How do I give all of "my songs" to her?

  • I have Win 7 64bit and the computer "not responding" often.

    The event logs show that Bonjour is the biggest problem in system failures and the computer Not Responding.  Is there a fix for Bonjour or is there a way to run itunes without it? If itunes is not compatible for windows 7 Does apple have something el

  • ITunes displays error message -69 when syncing iPhone

    hi, iTunes displays error message -69 when i sync my iPhone 3GS, this is just for syncing music to my iPhone. apps syncing is ok. can anyone help please? thanks

  • New GL, profit center update

    New GL is working for this GL entry Credit cash A/C 900100 1000 Debit expense 500100 1000 CTR A PTR A After document splitting, system is showing Credit cash A/C 900100 1000 CTR A PTR A Debit expense 500100 1000 CTR A PTR A GL Entry Credit cash A/C 9

  • Why are some of my pages blank when I export to PDF from InDesign?

    I have a fairly large InDesign book that I've been trying to export to PDF unsuccessfully. There are lots of images and te xt in the book and half export fine and the other half don't. When I export the files individually, they export fine. Any advic