HPCCommunity.org
 
Register

Go Back   HPC Community - High Performance Computing (HPC) Community > Symphony Developer Edition (DE) > Symphony DE Articles and Helpful Tips > Development and Debugging Tips

Development and Debugging Tips Share development and debugging tips for Symphony DE.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 11th, 2008, 06:57 AM
Young's Avatar
Junior Member
 
Join Date: March 5th, 2008
Location: Toronto, Canada
Posts: 58
Blog Entries: 1
Send a message via Skype™ to Young
Default How to set up the Symphony DE environment in Weblogic

This tip is provided by one of our Symphony developers, Qiang Xu.

Scenario
You need to write some java servlet code to integrate the Symphony API with your Java EE project. But you encounter the following problem;

Error 500--Internal Server Error
java.lang.UnsatisfiedLinkError: no jnativesoamapi_3.1.0_64 in java.library.

Getting this error on 32-bit Symphony package clearly indicates that something is wrong with the configuration of your environment.

Steps

First make sure that the shell which you used to start the weblogic server has the PATH set correctly as follows;

export PATH=$SOAM_HOME/${SOAM version}/${OS type}/lib:$PATH

If the error persists, there is another solution. Copy the java native library and the soambase library to the Weblogic bin folder. Then restart Weblogic and re-deploy your application that includes the new logic of verifying your settings as described below.
There is an online BEA article that explains the way to solve a similar problem.

Verify your Setting
To verify your setting, you can use the following code.
If successful, your Initialize API will return successfully

Code:
public class InitializeAPIServlet extends HttpServlet { 
   public void service(HttpServletRequest request,
        HttpServletResponse response)
   throws ServletException,IOException{   
   response.setContentType("text/html;"); 
   PrintWriter out = response.getWriter();
   out.println("<html>");
   out.println("Start to initialize API!");
   try {
      SoamFactory.initialize();
      out.println("API initialization was successful.");
      out.println("</html>");
   }catch(Exception e){
      out.println("API initialization failed!");
      e.printStackTrace();
      out.println("</html>");      
   }    
  }
}
References
BEA WebLogic Integration
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 09:29 PM.


Powered by vBulletin® Version 3.8.0 Release Candidate 1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.