Error IFS-20010 connecting to IFS from java class

Hello,
I try to connect to IFS from java program with sentences:
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential("user", "password");
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setServiceName("ifsDefault");
connectOpts.setServicePassword("ifspassword");
LibrarySession ifsSession = ifsService.connect(me,connectOpts);
the class compile but not run because the error:
IFS-20010: Failed to get PropertiesResourceBundler ifsDefault.
The message errors documentation said:
This error occurs when attempting to start an Oracle iFS process by specifying a service properties file name that cannot be located by the Oracle iFS repository. The
parameter specified in the error is the name of the specified service properties file. The specified service properties file
must exist in the oracle.ifs.server.properties package
descending from one of the directories included in the
CLASSPATH setting for the process.
I don't understand what mean this, somebody yes?
Please give me any idea.
What can i do to solve this problem?
Thanks.
FABIAN

Hi,
Make sure you have $ORACLE_HOME/ifs/settings in your classpath.
Good luck.

Similar Messages

  • Parse errors while creating a Web service from Java class!

    Can anybody tell me please, is it possible to create a Web Service from java class where the input from user is required ?
    I have the following program, which is successfully compiled, but when I'm trying to make a web service in JDeveloper, the following error occurs:
    "Validation failed.
    The implementation class primePackage.isPrime ofport type MyWebService contains parse errors."
    import java.io.*;
    import java.util.*;
    class isPrime
    public static void main (String args[])
    Scanner reader = new Scanner(System.in);
    int n;
    System.out.println ("Enter a number you want to know is it prime or not");
    n=reader.nextInt();
    if (isPrime(n))
    System.out.println ("True");
    else
    System.out.println ("False");
    static boolean isPrime (int n)
    int i=2;
    while (i<=n-1)
    if (n%i==0)
    return false;
    i++;
    return true;
    }

    Hi,
    Can anybody tell me please, is it possible to create
    a Web Service from java class where the input from
    user is required ?Yes, the parameters of your method will be mapped in WSDL.
    But i've some considerations about your code.
    I suggest you change the name of isPrime do Prime, its a good code convention to put the name of class starting with Upper case. and isn't good the name of class equals to name of method.
    I suggest you to change the "static boolean isPrime (int n)" to "public boolean isPrime(int n)" to publish a method as a WebService method it's must be public and not static. After this change try to generate your Web Service.
    Regards.

  • Unable to connect to Tomcat from Java Class

    Hello,
    This is going to be long, so please bare with me.
    I have a Tomcat 5.5 on my Windows 7 machine.
    I run the Tomcat by executing the startup.bat under the bin folder. After the Tomcat is up, I am able to access the Tomcat's home page by browsing to: http://localhost:8080.
    My problem is this:
    I wrote a short Java application that tries to access the same address (http://localhost:8080) using a URL. The code listed below:
    try {
         URL url = new URL("http://localhost:8080");
         BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null) {
              // Process each line.
              System.out.println(inputLine);
         in.close();
    } catch (MalformedURLException me) {
         me.printStackTrace();
    } catch (IOException ioe) {
         ioe.printStackTrace();
    When I run the program I get the following exception:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.Socket.connect(Socket.java:520)
         at java.net.Socket.connect(Socket.java:470)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:387)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:522)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
         at sun.net.www.http.HttpClient.New(HttpClient.java:304)
         at sun.net.www.http.HttpClient.New(HttpClient.java:321)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
         at java.net.URL.openStream(URL.java:1007)
         at test.xpolog.URLTest.main(URLTest.java:14)
    What I've come up with until now is the following:
    1) If I replace localhost with any other external host (such as www.cnn.com), the code works (I see the HTML printed out).
    2) If I replace localhost with [::1], the code works. * Comment about this item follows the list of items.
    3) If I run the same code on a Windows XP machine running the same Tomcat, the code works.
    4) If I run the same code on a Windows XP machine, with only replacing localhost with the address of the Windows 7 machine running the same Tomcat, the code works.
    * Comment about item #2 (I'm not sure this has something to do with the problem):
    When I run netstat -ao on the Windows 7 machine, I see the following lines regarding the Tomcat port (8080):
    Proto Local Address Foreign Address State PID
    TCP [::]:8080 [::]:0 LISTENING 5204
    TCP [::1]:8080 [::1]:60821 TIME_WAIT 0
    My thoughts:
    1) Is this related to Windows 7?
    2) Is this related to the Tomcat configuration?
    3) Is this related to some component (not the Firewall, I have it disabled) blocking the connection?
    Any help regarding this strange problem would be appreciated.
    Thanks,
    Ziv

    > Thank you so much for your patience. It makes more sense now.
    Cool! You can think of it like this: JNI is roughly equivalent to the reflection API in the Java language:
    - jobject is a reference to a java.lang.Object;
    - jclass is a reference to a java.lang.Class;
    - methodID is like java.lang.reflect.Method or java.lang.reflect.Constructor;
    - fieldID is like java.lang.reflect.Field;
    - GetObjectClass () is like Object.getClass ();
    - FindClass () is like Class.forName ();
    - GetMethodID () and GetStaticMethodID () are like Class.getMethod ();
    - GetFieldID () and GetStaticFieldID () are like Class.getField ();
    - Call<Type>Method () and CallStatic<Type>Method () are like Method.invoke ();
    - NewObject () is like Constructor.newInstance ();
    - Get<Type>Field () and GetStatic<Type>Field () are like Field.get ();
    - Set<Type>Field () and SetStatic<Type>Field () are like Field.set ();
    So if you are familiar with reflection, just think in terms of how you would perform operations in the Java language using reflection, and then translate to the equivalent in JNI.
    > Which technique is better to use? GetFieldID/GetObjectField or GetMethodID/CallObjectMethod?
    I suggest design it as if coding in pure Java. Usually this means using getter methods rather than accessing fields directly, for all the usual OO benefits of encapsulation and polymorphism.
    -slj-

  • [b]How connect to EJB from java webstart[/b] ?

    Hi,
    I'm a newcomer to J2EE, I'd like to build J2EEE app
    first of all,I've developed simple EJB components and jSwing client to call method from EJB. All in the same project.
    Client programe has method
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "ormi://10.145.100.2:23891/current-workspace-app");
    return new InitialContext(env);
    When I run client app it work well, I follow in Jdev905 to deploy to java webstart
    1. Create .jar file (Item JAR file - Simple archive)
    2. Create Java web start(JNLP) files
    after that, I have .jar,.html,.jnlp file
    3. running project(use embedded OC4J server)
    4. running .html file
    first, java webstart download code then run but nothing
    happen. I think that It may be some wrong in JNDI look up.
    I try my best, It's taken me a week but I still do'nt understand.
    ! Please help show how to go through that or how to deploy using java web start. We intend to develop rich client.
    thanks a lots!
    Kien
    (Sorry for my bad English)

    This might be of help http://developer.novell.com/wiki/ind...asses_for_Java
    >>> dikshaneel<[email protected]> 12/8/2009 3:16 AM >>>
    Can someone please tell me how should I connect to LDAP from Java?
    Thanks in advance-- dikshaneel------------------------------------------------------------------------dikshaneel's Profile: http://forums.novell.com/member.php?userid=72973View this thread: http://forums.novell.com/showthread.php?t=395162

  • WEB SERVICE FROM JAVA CLASS

    Hi,
    I'm new to BPEL and I've a problem: i need to create a WEBSERVICE from Java class.
    This Java class contain functions to call other functions in other packages.
    These last function contain sql query: it's an java "interface" application between BPEL and an EXTERNAL Oracle database 10g.
    I want to create one WEB SERVICE from this application and i followed the steps (right click, menù, create j2ee webservice, etc) i obtain error:
    VALIDATION FAILED --- Files at the following URLs cannot be modified:
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/MyWebService1.webservice
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/IMyWebService.wsdl
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/MyWebService1.dd
    Show the java class "interface":
    package controller;
    import java.util.*;
    import java.sql.*;
    import domain.*;
    import dao.*;
    import utility.*;
    public class Request_Incoming_Controller {
    public Request_Incoming_Controller() {}
    /* Update StatoTurismo */
    public static String aggiornaStTurismo(int numIncoming, String tur) {
    GregorianCalendar dp = FormatoData.dataDaDate1("00/00/0000");
    Request_Incoming ric = new Request_Incoming(numIncoming,"","",dp,dp,"","","",0,"",tur,"");
    // try {
    if(ric.aggiornaTurismo()<0)return "NO";
    return "OK";
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    /* Update StatoCassa */
    public static String aggiornaStCassa(int numIncoming,String cash) {
    GregorianCalendar dp = FormatoData.dataDaDate1("00/00/0000");
    Request_Incoming ric = new Request_Incoming(numIncoming,"","",dp,dp,"","","",0,"","",cash);
    // try {
    if(ric.aggiornaCassa()<0) return "NO";
    return "OK";
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    /* Lettura del NumIncoming assegnato dal sistema dopo il caricamento della
    * richiesta in base alla matricola del Dipendente
    public static int caricaNumDaDip(String dipendente){
    Request_Incoming ric = new Request_Incoming(0,dipendente);
    // try {
    ric.trovaNumIncoming();
    return ric.getNumIncoming();
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    Can Anyone help?
    Is urgently.........thanks
    Daniele

    You should try to post it there:
    http://forums.oracle.com/forums/forum.jspa?forumID=97
    But if I look at the error, it looks like some files are Read-Only. Maybe you should check if they are or if you have the appropriate rights on the folder.
    Good luck

  • Web Service From Java class, serialization problem

    Hi,
    I want to create Web Service from Java class, I made java project, generated web service from it, create web service archive project and deployed it to WAS 6.40.
    My class have 2 methods,
    public int add(int a, int b);
    public MyResponse doSomthing(MyRequest req);
    I can succesfully call add method from Web Service Navigator, it works fine but when I call doSomthing methods I get the following error:
    <b>
    Deserializing fails. Nested message: XML Deserialization Error. Result class [com.mycomp.sap_tech.ws.MyRequest] does not have property [Amount] of type [java.lang.String]. It is required to load XML..
    </b>
    Any ideas how to resolve it?
    P.S. MyRequest class is exposed throw VI, has default constractor and public getters and setters for all properties. It implements Serializable as well. Any guesses?
    Thanks in advance,
    Victor.

    Hi Bhavik, thanks for response.
    as I already mentioned it implements Serializable, so it is not the problem.
    Thanks Avi but it didn't helps iether
    Victor

  • Calling Servlet from Java Class in eclipse

    Hi ,
    I am calling a Servlet from JAVA Class as I am using IDE: Eclipse. The Problem is below
    URL url = new URL(ServletPath);
    URLConnection connet = url.openConnection();
    I am using the above code in JAVA to Connect to Servlet I have given Print statement in Servlet such that whenever it calls it prints on Console but when I try to run the code the Statement is not printed in the Console of eclipse I think URL connection is not able to establish any connection ..... if any has solution for this please reply
    Thanks & Regards,
    Arvind

    I am calling a Servlet from JAVA Class as I am using IDE: Eclipse. The Problem is below
    URL url = new URL(ServletPath);
    URLConnection connet = url.openConnection();Why should the Servlet running in different Runtime print on your Eclipse Runtime. Please be more clear about the question.

  • Calling OAM WLST Commands from java class

    Hi all,
    is there any idea how to call OAM related WLST commands from java class ?.
    what are the required jar files ?
    thanks

    Hi,
    As per my understanding in OAM you will have only two major .py file startscript.py and stopscript.py file which will start nodemanger connect and start Admin and managed server similarly in stop it will stop managed server Admin server and then last nodemanager.
    these all done through wlst command using nmConnect(), nmStart (), nmKill() and shutdown etc.
    What exactly you are looking to get from java code.
    Regards,
    kal

  • How can i open the popup from java class

    Hi,
    Please tell me how can i open the popup from java class.
    I am using jdev 11.1.1.7.0
    I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
    Please tell me some way to do this in all jdev versions.
    Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
    Code for hide pop-up
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = obj.getPopUpBind().getClientId()
    ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
    ExtendedRenderKitService.class);
    String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
    "'); popupObj.hide();";
    service.addScript(FacesContext.getCurrentInstance(), hidePopup);
    Code to Show pop-up
    StringBuffer showPopup = new StringBuffer();
    showPopup.append("var hints = new Object();");
    showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
    obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
    service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
    Code need to be added in jsff pop tag
    binding="#{pageFlowScope.bean.popUpBind}
    Variable need to be added in Bean.java
    private RichPopup popUpBind;

    Hari,
    Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
    John

  • How to set classpath from java class ??

    I have tried to use System.setProperty("java.class.path", "my class path string ") to set classpath dynamically. But it is not working. How to set it dynamically from java class ?? Thanks , gary

    Look into the java.net.URLClassLoader. You can't set the classpath after the fact but you can specify URL's that will checked when you try to load a class with that loader.

  • JCX access from java class

    Is it possible to access jcx from java class ?
    from jpf i am calling java class which inturn calls jcx and
    i am getting nullpointer exception at jcx call in java class
    waiting for solution...
    thanks,
    sridhar

    Shrishar,
    Unfortunately in the current release controls cannot be accessed from stand
    alone java classes. You can create a custom control which can invoke the jcx
    and be invoked from within the jpf.
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "sridhar" <[email protected]> wrote in message
    news:4083d449$[email protected]..
    >
    Is it possible to access jcx from java class ?
    from jpf i am calling java class which inturn calls jcx and
    i am getting nullpointer exception at jcx call in java class
    waiting for solution...
    thanks,
    sridhar

  • AR60RUN from Java class

    Can we run a oracle report 6i from java class ? Is there a JAVA API available for this ? I tried using "ar60run" thro getRuntime().exec java API, but its giving a core dump.. any suggestions ?

    You don't need to extend from Frame if you're creating an Applet. The Applet Class is a Container so you can anything you can add to a Frame to an Applet. With an Applet you must call either init(), start() or paint(Graphics g). There is a really good description of how to create your first Applet in the Java Tutorial. It also give a demo of how to set up a web page to contain your applet and how to use the appletviewer.
    http://java.sun.com/docs/books/tutorial/getStarted/applet/index.html
    Basically what you need to do is:
    import java.applet.Applet;
    import java.awt.*;
    public class MyApplet extends Applet {
    public void init() {
    setSize(500,500);
    // Add Components, Listeners, etc...
    Button b = new Button("MyButton");
    add(b);

  • How To Change Resource Bundle file's data from Java Class

    Hi
    i have used below code for accessing Resource Bndle from Java Class but here i also want to make change in a particular key and its value.
    please let me know the code i should use to make changes in Resource Bundle file's key and value and saving the same in the file.
    package test;  import java.util.Enumeration;
    import java.util.ResourceBundle;
    public class ResourceBundleTest {
    public static void main(String[] args) {
    ResourceBundle rb = ResourceBundle.getBundle("test.bundletest.mybundle");
    Enumeration <String> keys = rb.getKeys();
    while (keys.hasMoreElements()) {
    String key = keys.nextElement();
    String value = rb.getString(key);
    System.out.println(key + ": " + value);
    Thanks

    With further debugging, I noticed the following line only works in integrated WLS but not in standalone WLS
    resourceBundle = ResourceBundle.getBundle("com.myapp.MyMappings");
    I confirmed the corresponding properties file was included properly in the EAR file but the standalone WLS failed to find the properties file at runtime.
    Why did the standalone WLS class loader (must be the same as the integrated WLS) failed to find the properties file deployed under the WEB-INF/classes path in the EAR file?
    The above line was in a POJO class which has the same classpath as the properties file ie. com.myapp.MappingManager.class.
    It was strange that the class loader could load the POJO class but unable to find the com.myapp.MyMappings.properties in the same classpath!!!
    Is this a bug in standalone WLS?
    Edited by: Pricilla on May 26, 2010 8:52 AM
    Edited by: Pricilla on May 26, 2010 9:01 AM

  • Generate XML Schema from Java classes?

    Hi,
    Considering an XML Mapping, i would like to generate a default XML Schema from my Java class.
    Is there a tool in toplink (10.1.3) to do that or does anyone have an easy way to generate this XML schema?
    Thanks,
    Ludovic

    Hi Ludovic,
    We don't have support for schema generation from Java classes in TopLink 10.1.3. It's required for JAXB 2.0 so it will be available in a future release.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                           

  • Error in connecting Oracle Database from JAVA application!!!

    Hi,
    I am trying to connect to the Oracle11g database server from the client machine using JAVA eclipse. I have installed the oracle client in the client machine. Once i try to execute the below code it was throwing below error:
    public class Dbconnect {
    public static void main (String[] args)throws Exception {
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    String connectString = "jdbc:oracle:thin:@<IP Address>:1521:orcl";
    OracleDriver drivers = new OracleDriver();
    System.out.println(drivers);
    Connection connection = null;
    connection = (OracleConnection)DriverManager.getConnection(connectString,"ADMIN", "admin");
    System.out.println(connection);
    System.out.println("Connected to the database");
    Error:
    java.sql.SQLException: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at DBConnect.main(DBConnect.java:15)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:359)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:672)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:237)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
         ... 7 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:141)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:123)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:337)
         ... 12 more
    I am unable to connect using sqlplus as well ORA-12560: TNS:protocol adapter error
    Please advise me on how to resolve this issue..
    Thanks

    Prabhu wrote:
    We are not able to connect from SQLplus as we.. If i issue this command in Sqlplus from client machine 'sqlplus admin/admin@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<Ip Adddress>)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'' it was throwing the below error.
    Error: ORA-12541: TNS:no listener
    Do i need add get any config details in the client machine..
    Could please tell me what is the general procedure to access the DB server from client machine..on DB Server issue following OS commands
    lsnrctl start
    lsnrctl status
    lsnrctl service
    COPT commands & results, then PASTE all back here

Maybe you are looking for

  • My itunes wont sync songs from a differenet apple id

    My friend put some songs and games on my sons ipod and now when I try to back them up on his itunes, they dont show up.  I assume this is because they are from her itunes account.  She gave me her login/password to use on the itunes to see if that wo

  • In IOS5, Photo Albums are no longer sorted by Album name?

    Ouch!   I have been using photos on my iPhone (now the 4s) for years, and always synched with my PC where I use Photoshop Elements.   I carefully organize  my photos, put them in albums, and then sync to my iPhone.   My album names are titles like "V

  • Adobe Reader XI hangs on "receiving data" after submitting to php

    I am submitting PDF fillable form to php, then pdf is save & email to destination. It works, I receive the pdf filled file via email; However, in Safari works perfect redirects, etc. When using FireFox, Chrome, then Adobe Reader opens. Then when subm

  • Time Capsule Impacting email????

    I am having this problem with my iMac, an old iBook, and a MacBook Pro...started a few weeks ago. I have three different email accounts in the house (2 comcast and .me). The iMac and the iBook use Entourage and the MacBook uses MAIL. We had no proble

  • How do you fix the error -1202

    I am not being allowed to redeem a gift card, it comes up with the error notice -1202 please can anyone help?