Using native libraries in web application (weblogic on linux)

I have a problem with loading native libraries for use with my web application. Where do I have to put them in order for the server to see them? The same app on windows runs perfectly fine, because it has no problems finding the dll files.
          So far I have tried modifying the weblogic startup scripts, to include the library in LD_LIBRARY_PATH environment variable. I've also tried modifying the security policy just in case, but I don't think it's the case, because like I said, the app ran fine on windows without messing with the policies. So, any ideas, how I could load the libraries?
          The system is a WebLogic 8.1SP4 installed on Linux i386 using JRockit JVM, the native library in question is JAI 1.1.3-alpha native acceleration library.
          PS. if it's in the wrong group, please direct me to the correct one.

<p>Fukiku,</p>
          <p>Did you get this working?</p>
          <p>You can also try setting the environment variable java.library.path.</p>
          <p>Please post your stack trace to the forum as well.</p>
          <p>
          Hussein Badakhchani</br>
          </p>

Similar Messages

  • How to use Swing in a web Application

    Can you suggest me some good PDF/tutorial or some good site for reading about using SWING in a Web Application.
    In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like color coded assets and a graphical version of Outstanding Vs Available limit. We are wondering whether we should use SWING for these screens. Do you think this is a good idea or is there a better apprach to deal with this
    What are the disadvantages of using SWING VS JSP/Servlet in a Web environment. Is there a site or pdf where i can get information about this.

    I'd say the biggest disadvantage is that your client machines have to download and install the bloody java plug in.
    What you write about your UI ain't half vague. What the deuce is a "color coded asset"? Is it
    interactive? If not, could it be represented by an image? If so, even if it is a non-static image, it is a simple
    matter for your webapp to generate the image on the fly. Many web app tutorials demonstrate that.

  • How to use servlets in portal web application in Weblogic Portal 4.0

    We are developing a Portal Web application using Weblogic Portal 4.0 where in we
    have the following scenario. one JSP in webflow of a portlet calls the PipeLine
    which does some processing and calls the servlet which is having the typical download
    functionality. The servlet is supposed to read the data from the pipeline session
    and create a CSV String that is dumped to the client browser. The problem is even
    we are doing response.setContentType("application/save") in the servlet it is
    still displaying the content as html in the portlet. I guess since all our request
    are send to the webflow contolling servlet and it is setting the content type
    and hence our servlet is not working. How do I solve this problem? Thanks Yogesh

    Hi Renu
    Please go through the SAP Content Management here you find the documents related to Wab page Compoer and knowledge mangement. Also search for article / blog for more details.
    [http://www.sdn.sap.com/irj/sdn/nw-ecm|http://www.sdn.sap.com/irj/sdn/nw-ecm]
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • How do I get info from Active Directory and use it in my web-applications?

    I borrowed a nice piece of code for JNDI hits against Active Directory from this website: http://www.sbfsbo.com/mike/JndiTutorial/
    I have altered it and am trying to use it to retrieve info from our Active Directory Server.
    I altered it to point to my domain, and I want to retrieve a person's full name(CN), e-mail address and their work location.
    I've looked at lots of examples, I've tried lots of things, but I'm really missing something. I'm new to Java, new to JNDI, new to LDAP, new to AD and new to Tomcat. Any help would be so appreciated.
    Thanks,
    To show you the code, and the error message, I've changed the actual names I used for connection.
    What am I not coding right? I get an error message like this:
    javax.naming.NameNotFoundException[LDAP error code 32 - 0000208D: nameErr DSID:03101c9 problem 2001 (no Object), data 0,best match of DC=mycomp, DC=isd, remaining name dc=mycomp, dc=isd
    [code]
    import java.util.Hashtable;
    import java.util.Enumeration;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class JNDISearch2 {
    // initial context implementation
    public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
    public static String MY_HOST = "ldap://99.999.9.9:389/dc=mycomp,dc=isd";
    public static String MGR_DN = "CN=connectionID,OU=CO,dc=mycomp,dc=isd";
    public static String MGR_PW = "connectionPassword";
    public static String MY_SEARCHBASE = "dc=mycomp,dc=isd";
    public static String MY_FILTER =
    "(&(objectClass=user)(sAMAccountName=usersignonname))";
    // Specify which attributes we are looking for
    public static String MY_ATTRS[] =
    { "cn", "telephoneNumber", "postalAddress", "mail" };
    public static void main(String args[]) {
    try { //----------------------------------------------------------        
    // Binding
    // Hashtable for environmental information
    Hashtable env = new Hashtable();
    // Specify which class to use for our JNDI Provider
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    // Specify the host and port to use for directory service
    env.put(Context.PROVIDER_URL, MY_HOST);
    // Security Information
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, MGR_DN);
    env.put(Context.SECURITY_CREDENTIALS, MGR_PW);
    // Get a reference toa directory context
    DirContext ctx = new InitialDirContext(env);
    // Begin search
    // Specify the scope of the search
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the actual search
    // We give it a searchbase, a filter and the constraints
    // containing the scope of the search
    NamingEnumeration results = ctx.search(MY_SEARCHBASE, MY_FILTER, constraints);
    // Now step through the search results
    while (results != null && results.hasMore()) {
    SearchResult sr = (SearchResult) results.next();
    String dn = sr.getName() + ", " + MY_SEARCHBASE;
    System.out.println("Distinguished Name is " + dn);
    // Code for displaying attribute list
    Attributes ar = ctx.getAttributes(dn, MY_ATTRS);
    if (ar == null)
    // Has no attributes
    System.out.println("Entry " + dn);
    System.out.println(" has none of the specified attributes\n");
    else // Has some attributes
    // Determine the attributes in this record.
    for (int i = 0; i < MY_ATTRS.length; i++) {
    Attribute attr = ar.get(MY_ATTRS);
    if (attr != null) {
    System.out.println(MY_ATTRS[i] + ":");
    // Gather all values for the specified attribute.
    for (Enumeration vals = attr.getAll(); vals.hasMoreElements();) {
    System.out.println("\t" + vals.nextElement());
    // System.out.println ("\n");
    // End search
    } // end try
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    My JNDIRealm in Tomcat which actually does the initial authentication looks like this:(again, for security purposes, I've changed the access names and passwords, etc.)
    <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
    connectionURL="ldap://99.999.9.9:389"
    connectionName="CN=connectionId,OU=CO,dc=mycomp,dc=isd"
    connectionPassword="connectionPassword"
    referrals="follow"
    userBase="dc=mycomp,dc=isd"
    userSearch="(&(sAMAccountName={0})(objectClass=user))"
    userSubtree="true"
    roleBase="dc=mycomp, dc=isd"
    roleSearch="(uniqueMember={0})"
    rolename="cn"
    />
    I'd be so grateful for any help.
    Any suggestions about using the data from Active directory in web-application.
    Thanks.
    R.Vaughn

    By this time you probably have already solved this, but I think the problem is that the Search Base is relative to the attachment point specified with the PROVIDER_URL. Since you already specified "DC=mycomp,DC=isd" in that location, you merely want to set the search base to "". The error message is trying to tell you that it could only find half of the "DC=mycomp, DC=isd, DC=mycomp, DC=isd" that you specified for the search base.
    Hope that helps someone.
    Ken Gartner
    Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)

  • Using Designer to generate Web Applications

    I'm using Designer R1.3 to generate Web applications but example in a textfield i need make a validation how ca i do this using designer without make this using schema manager to correct by hands line by line

    You can certainly do this with JWS. You will have to request full access permissions to the user's machine because you will need to start the web server (& maybe DB server) from your JWS application. Do this with:
    <security>
    <all-permissions/>
    </security>
    That means you'll have to get a certificate for your server.
    In terms of resources - When you start resin, seems to me that all you should need to do is include all of the jars that resin needs in the command line classpath variable. To get access to this information, this code by Masahiro Takatsuka was very useful for me:
    http://forum.java.sun.com/thread.jsp?forum=38&thread=71208
    We did something similar to what you are doing - we ran Apache's Xindice XML DB from the JWS client. (We have since ditched Xindice because of performance issues, but launching it worked fine from JWS)
    good luck!
    catherine

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus!
    Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
    What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
    Thankful for advice
    Sari

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • Using external libraries in Web Dynpro DCs

    Hi,
    I've followed the example in the following blog for using external libraries in my Web Dynpro (WD) DCs:
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro and some other messages in the forums. However, it isn't working exactly as described in the blog. I have to twist it a bit to get it work. I were wondering if anyone has any better solution for this problem?
    The senario is like this:
    - External libraries: a.jar, b.jar
    - WD DCs: wd1, wd2 in that wd1 and wd2 are both using external libraries a.jar and b.jar; wd1 is a library DC that can be reused in wd2.
    According to the example in the blog, the following steps are carried out:
    - Step 1. Create an external library DC, add a.jar and b.jar to public part "ExternalLibs" as described in the blog.
    - Step 2: Create, build, deploy “J2EE Server / Library” DC. (Add reference to the public part of the external library DC as a used DC, with both Build-time and Run-time dependency).
    - Step 3: Create WD DC wd1, add used DCs and WD reference libraries as described in the blog. Add WD components as public part. Build and deploy WD DC wd1.
    All are ok so far!
    - Step 4: Create WD DC wd2, add used DCs and WD reference libraries as before. Try to build and FAIL!
    The error occurs here because wd2 cannot access to the classes in the external libraries, similar to the problems described in thread Re: Problems with deploying a JAR file.
    I've found a workaround, although quite tedious and cumbersom, but it works. My solution so far is:
    - Round 1: Perform those 4 steps above, but in step 1, after adding the jars to the public part "ExternalLibs", set the property of the public part "purpose" to "compilation", then build and deploy all other DCs accordingly.
    - Round 2: Change the public part "ExternalLibs" property to "assembly", then bulid and deploy all other DCs again.
    And now I can reuse the external libraries in my WD DCs as well as WD DCs as library in other WD DCs.
    I know it's not an elegant solution. So I were wondering if the experts out there can help me with better solutions?
    Many thanks in advance for your help.
    Regards,
    Van
    Edited by: Van Hai Ho on Dec 18, 2007 3:30 PM
    Edited by: Van Hai Ho on Dec 18, 2007 3:31 PM

    Hi Pascal,
    Thank you so much for your help. Your suggestion has helped to make my life a lot easier.
    Regards,
    Van

  • Using native events in specific application with J2ME

    I can capture native events of a cellular phone using J2ME (button of beginning and end of calls, description of effected calls) to use them in a specific application?
    I can use resumeRequest() method of the MDIlet class to capture the events of the start and the end of a phone calls or services used in an J2ME application? When, as and where I can use such class?How I can pass to my application effected phone calls , sent messages SMS and the accesses the InterNet? That methods and class I must use? How I must make to develop a class that executes this type of function with JAVA? Where I can find codes of aid or sample, tutorial, tips, etc to create such functions?

    <p>Fukiku,</p>
              <p>Did you get this working?</p>
              <p>You can also try setting the environment variable java.library.path.</p>
              <p>Please post your stack trace to the forum as well.</p>
              <p>
              Hussein Badakhchani</br>
              </p>

  • Using Applets in ADF Web Application

    Hi,
    I'm building an ADF web application using JDeveloper 11. I would have to use applets which have to "communicate" with database (insert, update).
    What would be considered as "the best practice" for that "JDBC flavored applet"? Is it possible to reuse a database connection?
    Any suggestion would be appreciated.
    Thanks.

    Boris,
    You could still use ADF Business Components and access them remotely (from the applet).
    John

  • Using Struts to develop web application

    Hi, pls help to clear my doubt...
    Struts is open source. If i use it to develop my commersial software(web application), can I:
    -sell the software to client but not allow the client to re-sell it?
    -Distribute the source code of struts but not to distribute the source code of my web application, back end processing like state machine, flow control, business logic and DAO?
    Thanks in advance.

    The answer is yes,
    but please check this also.
    http://www.apache.org/foundation/licence-FAQ.html
    Struts is open source. If i use it to develop my
    commersial software(web application), can I:
    -sell the software to client but not allow the client
    to re-sell it?
    -Distribute the source code of struts but not to
    distribute the source code of my web application, back
    end processing like state machine, flow control,
    business logic and DAO?
    Thanks in advance.

  • Prevent values being passed using Link Item on Web Application Designer

    Hello all,
    I have a question regarding 7.0 Web Application Designer. I am using the web item Link Item and using the command OPEN_TEMPLATE_DIALOG to open a new WAD Template BUT I do not want to pass the values from the original WAD template to the new one. Is there a way to restrict passing any values to the new template? Am I using the correct command OPEN_TEMPLATE_DIALOG?
    To better describe what is happening, my characteristics and key figures are being passed from my original WAD template to my new WAD template when using the OPEN_TEMPLATE_DIALOG. I do not the values to be passed, only to open up the new WAD Template with its own reports.
    Thank you.

    Sorry maybe I mistated the problem. I do not have an issue with the variable screen when transitioning to the second WAD template screen, I have a problem due to the values from the first WAD template being passed to the second WAD template.
    My first WAD template using the Link Item is only for the ability to click on the text to open up a second WAD template which I do not want the values to be passed from the First template.
    I hope this clears up the confusion.
    Thanks

  • Use external libraries in web dynpro java

    Dear Experts,
    I need to add an external library to my project.
    Anyway, I do not know how to do it because it gives me many problems.
    I tried modifying the classpath and placing it in the lib folder of the project from "Navigator".
    Also project properties, add. jar outside, and throws me the following error:
    [javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes
         [javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\MainView.java:34: package com.estaf does not exist
         [javac] ERROR: import com.estaf.jpay;
         [javac] ERROR:             
    Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
    I read the following link:
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.
    A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.
    I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.
    Infinitely appreciate any help. Thank you very much.
    Rasim
    Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM
    Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

    Hi,
    please find below path for adding External Jar files.
    right click on the webdynpro dc and select the properties .
    then clcik on Java Build path->select libraries->select External External Jars.
    after that just rebuild your project (not Build).
    Regards,
    Govindu
    Edited by: Govindu Nagotla on Apr 12, 2011 2:28 PM

  • Using Native SQL in Web Dynpro for ABAP

    Hi folks,
    I am trying to access an oracle database in web dynpro for ABAP via Native SQL.
    I am able to read row by row from the database into a work area, but I am unable to read the whole table from the database into an internal table.
    Please advise as to how I can do this, and thanks for reading.
    PS: Thomas, I wasn't off-topic on the previous thread; I forgot to mention that I was trying to do this under Web Dynpro for ABAP.

    Hello,
    it doesn't matter if you try this with Web Dynpro ABAP, BSP or any other framework, this is a general ABAP question and not related to this forum.
    Regards,
    Rainer

  • Beginner confusion:  what technologies to use for a new web application ?

    Hello,
    Being a beginner to JDeveloper , I am very confused because it looks like
    there are so many alternatives : JSF vs ADF faces vs Swing,
    EJB vs Toplink vs ADF business components.
    I am having trouble with determining which of these alternative technologies
    would be the most productive (in terms speed of development).
    Which of those technologies are recommended for a small web-based application?
    Thanks,
    Adrian Maier

    For my projects, the technology is chosen (from JDeveloper's available technologies) that best suits the requirements for the project. In my experience ADF Business Components are awesome if there are lots of database tables involved, but you need to have the patience to sit down and learn the technology intimately if you wish to perform complex tasks with them.
    As for JSF vs. ADF Faces vs. Swing...
    ADF Faces is like a framework built on top of Java Server Faces to supply a more rapid development process than just solo JSP/JSF. Consequentially, I find that ADF Faces sort of limits my desire for certain power over the application front end though...
    In the end, what you start with depends also on what you know. If you are new to JSF/JSP then I would start there. ADF Faces became much more intuitive to me once I became educated on the base technology that it works with.

  • Just bought a MacBook Pro - use native apps or web based?

    I just got my Mac Book Pro and am setting it up.
    I have an iphone and use the native apps on there with google apps synced via microsoft exchange, but on my previous (PC) laptop I accessed all these via the Chrome browser and got my notifications that way.
    I cant decide how to set it up, use all the native apps, mail, calendar and contact and sync it (which will use space on my laptop) or leave it all in the cloud and use Chrome again?
    What is best practice and are there advantages and disadvantages of either/both options?
    Mike

    I would suggest using the native apps - they work perfectly well with google apps. Integration!

Maybe you are looking for

  • Error while taking Full DB Backup

    Hi, We had Multiplexed the Archive Log File to default location(Flash Recovery Area) and log_archive_dest_1=/u02/app/oracle/oradata/orcl/archive As too much of archive log's are generated we had removed the log_archive_dest_1. We had scheduled full D

  • Wildcard in interface determination condition

    Hi Folks, I tried the following condition in setting up the condition in Interface Determination, but it is not working: Condition: /Document/Type = addLoad* The source field has this sample [email protected] I only need the "addLoad" and the other d

  • Unable to play songs Downloaded from Nokia Ovi Sto...

    Hi, I bought Nokia N8 when it was launched. I was using another laptop and music download and playback were working fine there. Recently i have changed my laptop and Have registered it for Music download through Nokia Ovi Suite and Music player. I am

  • J2se installation - failed to extract file 'Dll_.ini' ..

    Hello, i've got following message during installing j2se 1.4.2_04 on windows server 2003: "Failed to extract file 'Dll_.ini' from the binary table." i've installed java based on the same file on my local system (windows 2000) - works fine! thanks ahe

  • Audigy 2 ZS Gamer and Plantronics DSP

    After installing my Audigy 2 ZS Gamer card my Plantronics DSP 400 headset (USB) does not work properly. The sound through the Harmon Kardon analog speakers is fine, but when I switch to the headset I am unable to adjust the volume and one channel is