<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Java App from SAP Portal - SSO2Ticket call - java.lang.UnsatisfiedLinkError in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743990#M1582050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem in trying to call a java application from SAP portal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;*Cause:&lt;/U&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This java application is built on Unix (AIX) server. Previously it was running fine. Then there is a Tech Upgrade on SAP side in our company. After that I have been told to test whether the Java Application is getting called correctly or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.UnsatisfiedLinkError: com/mysap/sso/SSO2Ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when I am checking the log entry all I am able to see, there is error in SSO2Ticket.verify() method and the error is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error during initialization of SSO2TICKET;       com/mysap/sso/SSO2Ticket.init(Ljava/lang/String;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Effort:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked all possible aspects what ever came to my mind and found in this forum so far. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. com/mysap/sso this package is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SSO2TICKET class defined in that package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The JAVA_HOME and CLASSPATH are defined correctly ( I guess so)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Even the "libsapsecu.o" file is present&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why still this error is coming. Am I missing something here? Or what ever I have mentioned above 1-4 I am not getting them correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this kind of native call technology. Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My concerns are :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is the package com/mysap/sso should be in a specific location, which I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Do I need to revisit my CLASSPATH set up for JAVA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Is any change required to the libsapsecu.o file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Most of all what on earth can I do to overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. After Tech upgrade do they need to do some sort of thing to make the Java native call available, which they might have missed? Does any one aware of any such thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the answer asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santanu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also attaching the code snippet from JAVA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class SSO2Ticket {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static {		&lt;/P&gt;&lt;P&gt;		if (System.getProperty("os.name").startsWith("Win")) {&lt;/P&gt;&lt;P&gt;			SECLIBRARY = "sapsecu.dll";&lt;/P&gt;&lt;P&gt;		} else {&lt;/P&gt;&lt;P&gt;			SECLIBRARY = "libsapsecu.o";&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		try {&lt;/P&gt;&lt;P&gt;			logger.debug("java.library.path - "+System.getProperty("java.library.path"));&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			System.loadLibrary(SSO2TICKETLIBRARY);&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			 logger.debug("SAPSSOEXT loaded.");&lt;/P&gt;&lt;P&gt;		} catch (Throwable e) {&lt;/P&gt;&lt;P&gt;			System.out.println("Error during initialization of SSO2TICKET:\n"+ e.getMessage());&lt;/P&gt;&lt;P&gt;			logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public static synchronized String[] verify(String ticket, String pathToPSE) throws LogonTicketException&lt;/P&gt;&lt;P&gt;	{&lt;/P&gt;&lt;P&gt;		//System.out.println("Ticket: "+ticket);&lt;/P&gt;&lt;P&gt;		//System.out.println("PSE: "+pathToPSE);&lt;/P&gt;&lt;P&gt;		  logger.debug("Ticket: "+ticket);&lt;/P&gt;&lt;P&gt;		  logger.debug("PSE: "+pathToPSE);&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		String[] ticketContent = null;&lt;/P&gt;&lt;P&gt;		logger.debug("The value for initialized is -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;"+initialized);&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;			try {&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;				init(SECLIBRARY); &lt;/P&gt;&lt;P&gt;							&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;			} catch (Throwable e) {&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;				  logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2011 01:25:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-18T01:25:51Z</dc:date>
    <item>
      <title>Java App from SAP Portal - SSO2Ticket call - java.lang.UnsatisfiedLinkError</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743990#M1582050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem in trying to call a java application from SAP portal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;*Cause:&lt;/U&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This java application is built on Unix (AIX) server. Previously it was running fine. Then there is a Tech Upgrade on SAP side in our company. After that I have been told to test whether the Java Application is getting called correctly or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.UnsatisfiedLinkError: com/mysap/sso/SSO2Ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when I am checking the log entry all I am able to see, there is error in SSO2Ticket.verify() method and the error is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error during initialization of SSO2TICKET;       com/mysap/sso/SSO2Ticket.init(Ljava/lang/String;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Effort:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked all possible aspects what ever came to my mind and found in this forum so far. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. com/mysap/sso this package is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SSO2TICKET class defined in that package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The JAVA_HOME and CLASSPATH are defined correctly ( I guess so)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Even the "libsapsecu.o" file is present&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why still this error is coming. Am I missing something here? Or what ever I have mentioned above 1-4 I am not getting them correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this kind of native call technology. Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My concerns are :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is the package com/mysap/sso should be in a specific location, which I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Do I need to revisit my CLASSPATH set up for JAVA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Is any change required to the libsapsecu.o file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Most of all what on earth can I do to overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. After Tech upgrade do they need to do some sort of thing to make the Java native call available, which they might have missed? Does any one aware of any such thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the answer asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santanu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also attaching the code snippet from JAVA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class SSO2Ticket {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static {		&lt;/P&gt;&lt;P&gt;		if (System.getProperty("os.name").startsWith("Win")) {&lt;/P&gt;&lt;P&gt;			SECLIBRARY = "sapsecu.dll";&lt;/P&gt;&lt;P&gt;		} else {&lt;/P&gt;&lt;P&gt;			SECLIBRARY = "libsapsecu.o";&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		try {&lt;/P&gt;&lt;P&gt;			logger.debug("java.library.path - "+System.getProperty("java.library.path"));&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			System.loadLibrary(SSO2TICKETLIBRARY);&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			 logger.debug("SAPSSOEXT loaded.");&lt;/P&gt;&lt;P&gt;		} catch (Throwable e) {&lt;/P&gt;&lt;P&gt;			System.out.println("Error during initialization of SSO2TICKET:\n"+ e.getMessage());&lt;/P&gt;&lt;P&gt;			logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public static synchronized String[] verify(String ticket, String pathToPSE) throws LogonTicketException&lt;/P&gt;&lt;P&gt;	{&lt;/P&gt;&lt;P&gt;		//System.out.println("Ticket: "+ticket);&lt;/P&gt;&lt;P&gt;		//System.out.println("PSE: "+pathToPSE);&lt;/P&gt;&lt;P&gt;		  logger.debug("Ticket: "+ticket);&lt;/P&gt;&lt;P&gt;		  logger.debug("PSE: "+pathToPSE);&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		String[] ticketContent = null;&lt;/P&gt;&lt;P&gt;		logger.debug("The value for initialized is -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;"+initialized);&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;			try {&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;				init(SECLIBRARY); &lt;/P&gt;&lt;P&gt;							&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;			} catch (Throwable e) {&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;				  logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 01:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743990#M1582050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-18T01:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Java App from SAP Portal - SSO2Ticket call - java.lang.UnsatisfiedLinkError</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743991#M1582051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 &lt;B&gt;[original link is broken]&lt;/B&gt;;. There is more threads. They may help you to solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2011 00:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743991#M1582051</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-03-20T00:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java App from SAP Portal - SSO2Ticket call - java.lang.UnsatisfiedLinkError</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743992#M1582052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip on libssoext.o file. Finally I figured what was wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 20:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/java-app-from-sap-portal-sso2ticket-call-java-lang-unsatisfiedlinkerror/m-p/7743992#M1582052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T20:42:32Z</dc:date>
    </item>
  </channel>
</rss>

