Environment Class

Hi,
when I call
env=Environment::createEnvironment (Environment::DEFAULT);
I get the message:
error LNK2019: Not resolved extern Symbol '"public: static class oracle::occi::Environment *
The usual #includes are made:
#include "stdafx.h"
#include <iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
I am working on Visual C++ Net, Windows XP.
In which library or header file the Environment class is defined?
Thanks a lot for your help!
Felix H.

VC++ 7.0 (.NET 2002) is supported in the 9.2.0.5 patchset, VC++ 7.1 (.NET 2003) is supported with the 10gR1 release. The application should be linked with oraocci9.lib/oraocci10.lib present under %ORACLE_HOME%\rdbms\lib\vc7 or %ORACLE_HOME%\rdbms\lib\vc71. The appropriate oraocci.dll should be first in the PATH when running the application.
Regards,
Shankar

Similar Messages

  • Deprecated method in Environment class

    Weblogic recommends the following method calls to open a secure connection to a
    server, however the setSSLClientCertificateFromServer method has been removed
    since 4.5. What is the replacement, and if there is none, what is the work around?
    thanks,
    Bob
    Environment e = new Environment();
    e.setProviderUrl("t3s://server2.weblogic.com:443");
    e.setSSLClientCertificateFromServer();
    e.setSSLServerName("server2.weblogic.com");
    e.setSSLRootCAFingerprints("ac45e2d1ce492252acc27ee5c345ef26");
    e.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
    Context ctx = new InitialContext(e.getProperties())

    Did you try whacking your subject into google? You should. The thrid result was:
    http://java.sun.com/j2se/1.5.0/docs/api/deprecated-list.html

  • Berkeley  DB JE is getting hanged while calling environment sync method.

    Hi,
    I am developing an application in Java and I am using JE edition of Berkeley. I am facing an issue, during shutdown operation I am calling syn method of EntityStore class and Environment class.
    The EntityStore.sync() is getting completed but during executing of Environment.sync() the control is not coming out of this statement. Below is the code that I am using to perform sync operation.
    if (myEnv != null) {
    try {
    entityStore.sync(); //Calling sync method of Entity Store Class.
    log.error("Finished Syncing of Entity Store");
    myEnv.sync(); // Calling Sync method of Environment Class. Control is not coming out of this sync call.
    log.error("Finished Syncing of Environment");
    } catch (DatabaseException dbe) {
    log.error("DataBase exception duing close operation ",dbe);
    } catch (IllegalStateException ie) {
    logger.fatal("Cursor not closed: ", ie);
    During my unit testing I was changing system date and perfoming some db operation. While I during down the application the the above code gets executed but the system is getting hanged and control is not coming out of Environment sync method call. Can some one tell why the sync is causing the system to hang.
    Thanks in advance.

    Hello,
    You did not mention the version of BDB JE. In any case for BDB JE questions the correct forum is at:
    Berkeley DB Java Edition
    Thanks,
    Sandra

  • Material Class Hierarchy

    Hi guys, does anyone know the SAP table for transaction CL22N - Assign Class to Superior Class?
    Thanks in advance.

    Hello,
    This function enables you to set up your class hierarchy as a class network by assigning a class to several superior classes.
    Procedure:
    To maintain one or more superior classes for a class within a hierarchy, proceed as follows:
    1.Choose in the Classification menu Assignment , Assign class to superior classes.
    2.Enter the name and class type of the class you want to include in the hierarchy. Use the pushbutton  Last processed classes to choose on of the last ten classes you have worked. These can also be classes that were processed with different applications.
    If the class you enter is part of a class hierarchy, you can choose Environment  Class hierarchy to see the other classes in the hierarchy in tree form.
    Confirm your entries.
    3.Enter one or more superior classes.
    When you assign classes to a class, you can restrict the allowed values of the characteristics. This means that only values from the restricted allowed values are allowed when you classify objects in these classes.
    4.If you want to assign values to characteristics and at the same time set restrictions for the values you must first position the cursor on a class. Double-click on the class or select  Values.
    You see a list of the characteristics of all the classes to which an object is assigned. This list is based on the user settings you made in Extras  User settings, tab page Value assignment.
    5.Save your assignment.
    Hope the information is useful
    Regards

  • ALE Material Class Hierarchy

    Hi,
    We have created Material Classes / chararacters and have ALEd to the respective systems.
    We have defined Hierachies using CL22N.
    But when we ALE Classes using BD92, the Hierachy data or the links between classes does not get sent.
    Therefore in the receiving system we do not find the inherited charatcers.
    Can any if of you convey me if there is any transaction to ALE the Class Hierarchy?
    Thanks,
    Midhun.

    Hello,
    This function enables you to set up your class hierarchy as a class network by assigning a class to several superior classes.
    Procedure:
    To maintain one or more superior classes for a class within a hierarchy, proceed as follows:
    1.Choose in the Classification menu Assignment , Assign class to superior classes.
    2.Enter the name and class type of the class you want to include in the hierarchy. Use the pushbutton  Last processed classes to choose on of the last ten classes you have worked. These can also be classes that were processed with different applications.
    If the class you enter is part of a class hierarchy, you can choose Environment  Class hierarchy to see the other classes in the hierarchy in tree form.
    Confirm your entries.
    3.Enter one or more superior classes.
    When you assign classes to a class, you can restrict the allowed values of the characteristics. This means that only values from the restricted allowed values are allowed when you classify objects in these classes.
    4.If you want to assign values to characteristics and at the same time set restrictions for the values you must first position the cursor on a class. Double-click on the class or select  Values.
    You see a list of the characteristics of all the classes to which an object is assigned. This list is based on the user settings you made in Extras  User settings, tab page Value assignment.
    5.Save your assignment.
    Hope the information is useful
    Regards

  • Class & Characterstic

    Dear Experts,
    Please help me to solve this problem
    I want the list of All the class available in the system with characteristic assigned.
    Suppose there are Class Motor_01  & Pump_01 and many more I want a report which give the list characteristic assigned against all the classes.No matter whether characteristic value is there or assigned to equipment.
    I tried  by tcode CL6B but failed to get exact requirement because this is showing with equipment list.But i want only list of class assigned with characteristic.
    AR
    Edited by: Amit  Rana on Jun 28, 2009 10:22 AM

    hi Amit,
    You can try trans code CL6AN - Class list ,  you get list of Class --> Characteristic --> Values.
    You can Check logistics - Plant Maintenance - Management of technical objects - Environment - Classes - Environment -Reporting  Check out for other option
    Regards,
    Edited by: Srinivas Narayana Gowda on Jun 29, 2009 6:43 AM

  • Error calling Report and unable to bind Report Server

    Hi,
    I use Oracle Database 10g with Oracle Developer 10.1.2, in Windows 2000.
    I don't have nor use Oracle Application Server though.
    I tried to call a report from a Form, using Run_Report_Object.
    But the following error appeared.
    Error FRM-41213 Unable to connect to Report Server rep_<computer_name>
    I also tried to call a report, using Web.Show_Document.
    It launch another web browser, but the following error occured
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    Based on the white paper of Oracle Application Server 10g - Integrating Oracle Reports in Oracle Forms Services applications.
    I create my own report server using following command
    rwserver server=repsrv.
    Another java-based windows showed up. It shows that the server 'repsrv' is ready.
    I do the following:
    1. Navigate to http://localhost:8889/reports/rwservlet using web browser.
    It showed OracleAS Report Services - Servlet Command Help page.
    But there is no other window popup (The white paper stated that a 'in process' server
    should be invoked when starting a report for the first time).
    2. Navigate to http://localhost:8889/reports/rwservlet?userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html&paramform=no&p_1=P1&p_1=P2
    my schema is PRACTICE, password PRTC and database instance MYDB
    the report path = C:\FORM\MODULE1.JSP
    The following error occured
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    3. Finally, I tried
    http://localhost:8889/reports/rwservlet?server=REPSRV&userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html&paramform=no&p_1=P1&p_1=P2
    The following error occured
    REP-51002: Bind to Reports Server repsrv failed
    I don't understand.
    It seems that the Report Service is not recognized although the java-based window state that the Report Server (repsrv) is ready.
    My questions:
    1. Does it means that my report server is not running?
    Or it is running but the web browser didn't recognize it?
    I use Internet Explorer 5 and Netscape 7, both of them showed the same error message.
    2. The paper said there is supposed to be 2 type of server, 'In process' and custom server.
    Both of them will create a configuration file in /reports/conf in DevSuiteHomeDirectory.
    I can see the custom report server's configuration file which I create using rwserver
    (repsrv.conf)
    but I can't see the 'in process' server's configuration file (rep_<computer_name>.conf).
    What am I supposed to do?
    3. Is there any steps with I supposed to do after the installation?
    Well, I didn't find any error during the installation, everything seems to be just fine.
    Perhaps, I need to modify some files, specifya report server name,
    create the 'in process' server manually.
    Many thanks,
    Imelda

    Hi,
    I have already tried your suggestion.
    Since I am in Windows 2000 platform, so I do the first suggestion from the documentation.
    If the host machine is not in a network (that is, it is a standalone machine).
    Solution for Windows platform: Install the MS loopback adapter, as described on the Miscrosoft Web site (http:\\microsoft.support.com). Then, specify an IP address for your machine (either XP or Windows 2000), as follows:
    1. On your desktop, right-click My Network Places, and choose Properties.
    2. Right-click the MS loopback adapter, and choose Properties.
    3. In the Properties dialog box, select Internet Protocol (TCP/IP), and click Properties.
    4. Select Use the following IP address, and enter a valid IP address. The subnet mask field will automatically populate. Do not use the local host IP (that is, 127.0.0.1). For example, enter: 198.162.1.1.
    5. Click OK, and follow the instructions displayed.
    There is also solution for UNIX platform.
    But I do the Solution for Windows platform only.
    But still I've got the following error message :
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    And in the command line of OC4J which I started, the following error appeared :
    Not able to load oracle.reports.util.EnvironmentGlobal class
    Using oracle.reports.util.Environment class
    BTW,
    I also tried to use the command lin rwrun :
    rwrun report="D:\My Documents\TryReport\module1.jsp" userid=scott/tiger@orcl destype=file desformat=pdf desname="D:\My Documents\TryReport\module1.pdf"
    And somehow a PDF file appeared.
    It contains the output of the report I created.
    It exactly the same as the preview of the web layout which is run from Report Builder (Run Web Layout CTRL-R).
    Could this mean that the In-Process server is running?
    Perhaps the browser did not understand how to connect to Report Server?
    Is there anything should be done?
    Should I also do the Solution for UNIX platform? (Mine is Windows)
    And, why for Oracle Form (running as a servlet), everything seems to be normal?
    Does the Oracle Form use different server from Oracle Report?
    The problem is only when I tried to call report using a button inside Oracle Form.
    (Run_Report_Object and Web.Show_Document)
    Any light would be grateful.
    Many thanks,
    Buntoro

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • Not able to find report server ?

    Hello all,
    I have installed DeveloperSuite 10g R2 on my laptop and also Oracle 9i database
    this URL is wroks fine <http://chirag:8889/reports/rwservlet/getserverinfo?server=cyan> when netwrok cable is plugged !!
    when I go to client side and I do not have netwrok cable there
    without network connection this URL is fails "http://chirag:8889/reports/rwservlet/getserverinfo?server=cyan"
    what can be the issue ?
    From
    Chirag Patel

    hi
    i face the same problem,and i tried what did you say,but the problem is still there
    at first,when i was trying to run a report from the form ,as is always do,i got the error message that "UNABLE TO CONNECT TO THE REPORT SERVER"
    it was working correctly before that message.
    i found the soultion here so i started to do it just like i saw it here
    so i modified my rwnetwork.conf file to be like that
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    <!DOCTYPE discoveryService SYSTEM "file:D:\DevSuiteHome_1/reports/dtd/rwnetworkconf.dtd">
    <discoveryService>
    <!--multicast channel="228.5.6.7" port="14021" timeout="1000" retry="3"/-->
    <namingService name="Cos" host="mohammedsabry" port="14021"/>
    </discoveryService>
    where "mohammedsabry" is the compourer name
    and when i try the command
    namingservice 14021
    i got the following message
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    and when i tried to start the oc4j i got the following
    C:\Documents and Settings\H.M>D:\DevSuiteHome_1\jdk\bin\java -Doracle.security.
    jazn.config=D:\DevSuiteHome_1\j2ee\DevSuite\config\jazn.xml -Doracle.home=D:\Dev
    SuiteHome_1 -DORACLE_HOME=D:\DevSuiteHome_1 -jar D:\DevSuiteHome_1\j2ee\home\oc4
    j.jar -userThreads -config D:\DevSuiteHome_1\j2ee\DevSuite\config\server.xml
    08/05/09 07:39:20 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    initialized
    08/05/09 07:39:24 FormsServlet init():
    configFileName: D:\DevSuiteHome_1/forms/server/formsweb.cfg
    testMode: false
    08/05/09 07:39:29 ListenerServlet init()
    08/05/09 07:40:44 Not able to load oracle.reports.util.EnvironmentGlobal class
    08/05/09 07:40:44 Using oracle.reports.util.Environment class
    08/05/09 07:40:48 REP-50139: ط? وع?غ ??? ?طعط? D:\DevSuiteHome_1\reports\server\
    repserv.dat
    i think i need a little help here
    thanks all

  • Use properties file in Struts framework

    I develop a websit with struts, web ap is tomcat5.0, and I have a conf.properties file
    this file is different from ApplicationResource.properties, conf.properties in the /MySite/conf/ directory, not in src directory
    When I Use the conf.properties file in a Common Java Class that not extends any super class
    it will occur a FileNotFoundException exception
    How to make it
    public class Environment
         private static Properties prop = new Properties();
         private static FileInputStream in = null;
         public static String getVariable(String key)
              try
                   in = new FileInputStream(new File("\\conf\\config.properties"));
                   prop.load(in);
                   return prop.getProperty(key, null);
              catch (Exception e)
                   e.printStackTrace();
                   return null;
              finally
                   try
                        in.close();     
                   catch(Exception e)
                        e.printStackTrace();
         }

    Your class cannot find the file in the location tht u have given. The path (\\conf\\config.properties) is relative to the location where your source (Environment class) is kept.
    Try to hard code the path & see if your source can find the prop file ...

  • Problem Running rpeports in oracle 10G

    when calling a report from my application form I get the following error:
    REP-52266: فشل خادم Reports الجاري تشغيله rep_pc1 في البدء.oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    Console has the following lines also:
    C:\Documents and Settings\Administrator\Desktop>F:\DevSuiteHome_1\jdk\bin\java
    -Doracle.security.jazn.config=F:\DevSuiteHome_1\j2ee\DevSuite\config\jazn.xml -D
    oracle.home=F:\DevSuiteHome_1 -DORACLE_HOME=F:\DevSuiteHome_1 -jar F:\DevSuiteHo
    me_1\j2ee\home\oc4j.jar -userThreads -config F:\DevSuiteHome_1\j2ee\DevSuite\con
    fig\server.xml
    10/01/18 10:36:38 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    initialized
    10/01/18 10:37:43 FormsServlet init():
    configFileName: F:\DevSuiteHome_1/forms/server/formsweb.cfg
    testMode: false
    10/01/18 10:37:51 ListenerServlet init()
    10/01/18 11:30:09 Not able to load oracle.reports.util.EnvironmentGlobal class
    10/01/18 11:30:09 Using oracle.reports.util.Environment class
    10/01/18 11:30:13 REP-50139: ط╟ وع▀غ ═╨▌ ╟طعط▌ F:\DevSuiteHome_1\reports\server\
    rep_pc1.dat
    It is clear that oracle not able to load oracle.reports.util.enviromentGlobal class.
    I don't know how to solve the problem.
    Any one could help please??

    When writing the following :
    http://pc1:8889/reports/rwservlet/getserverinfo?server=rep_pc1
    I got the following error:
    REP-51002:failed to connect to server reports rep_pc1
    Here is what I have in rwserver.trc log file:
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): ALLUSERSPROFILE=C:\Documents and Settings\All Users
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): APPDATA=C:\Documents and Settings\Administrator\Application Data
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): CLIENTNAME=Console
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): CommonProgramFiles=C:\Program Files\Common Files
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): COMPUTERNAME=PC1
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): ComSpec=C:\WINDOWS\system32\cmd.exe
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): FP_NO_HOST_CHECK=NO
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): HOMEDRIVE=C:
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): HOMEPATH=\Documents and Settings\Administrator
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): LOGONSERVER=\\PC1
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): NUMBER_OF_PROCESSORS=2
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): OS=Windows_NT
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): Path=F:\DevSuiteHome_1\jdk\jre\bin\classic;F:\DevSuiteHome_1\jdk\jre\bin;F:\DevSuiteHome_1\jdk\jre\bin\client;F:\DevSuiteHome_1\jlib;F:\DevSuiteHome_1\bin;F:\DevSuiteHome_1\jre\1.4.2\bin\client;F:\DevSuiteHome_1\jre\1.4.2\bin;F:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): PERL5LIB=F:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;F:\oracle\product\10.2.0\db_1\perl\5.8.3\lib;F:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;F:\oracle\product\10.2.0\db_1\perl\site\5.8.3;F:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;F:\oracle\product\10.2.0\db_1\sysman\admin\scripts;
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): PROCESSOR_ARCHITECTURE=x86
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): PROCESSOR_LEVEL=6
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): PROCESSOR_REVISION=170a
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): ProgramFiles=C:\Program Files
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): SESSIONNAME=Console
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): SystemDrive=C:
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): SystemRoot=C:\WINDOWS
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): USERDOMAIN=PC1
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): USERNAME=Administrator
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): USERPROFILE=C:\Documents and Settings\Administrator
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): windir=C:\WINDOWS
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): NLS_LANG=ARABIC_EGYPT.AR8MSWIN1256
    [2010/1/20 3:17:13:328] Debug 50103 (EnvironmentUtility:getEnvironment): REPORTS_TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    [2010/1/20 3:17:13:343] Info 56025 (RWServer:startServer): جاري بدأ تشغيل Reports Server
    [2010/1/20 3:17:13:593] Info 65000 (Multicast:init): تمت تهيئة قناة الاتصالات
    [2010/1/20 3:17:13:593] Debug 50103 (Multicast:registerReceiver): Packet handler registered
    [2010/1/20 3:17:13:593] Info 50103 (ServerPacketHandler:start): ServerPacketHandler started successfully
    [2010/1/20 3:17:16:796] Info 56023 (ServerImpl:ServerImpl): Idle thread has been started
    [2010/1/20 3:17:16:796] Info 50103 (RWServer:startServer): Using multicast mechanism
    [2010/1/20 3:17:16:828] Info 56020 (EngineManager:spawnEngine): Launching engine rwEng-0
    [2010/1/20 3:17:17:0] Info 50103 (RWLocaleUtility:RWLocaleUtility): Using oracle.i18n.util.LocaleMapper class
    [2010/1/20 3:17:17:15] Debug 50103 (EngineManager:spawnEngine): Start engine command line = F:\DevSuiteHome_1\jdk\jre\bin\javaw -server -cp "F:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;F:\DevSuiteHome_1\reports\jlib\rwrun.jar;F:\DevSuiteHome_1\jlib\zrclient.jar" -Duser.language=ar -Duser.region=EG -Xmx256M oracle.reports.engine.RWEngine name=rwEng-0 server=rep_pc1 ORACLE_HOME=F:\DevSuiteHome_1 engineimplclass=oracle.reports.engine.EngineImpl traceopts=trace_all tracefile=F:\DevSuiteHome_1\reports\logs\rep_pc1\rwEng-0.trc tracemode=trace_replace cacheDir=F:\DevSuiteHome_1\reports\cache server_ior=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp_18071221
    [2010/1/20 3:17:17:15] Info 56021 (EngineManager:spawnEngine): Engine rwEng-0 has been launched
    [2010/1/20 3:17:17:15] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Initial
    [2010/1/20 3:17:17:15] Info 56020 (EngineManager:spawnEngine): Launching engine rwURLEng-0
    [2010/1/20 3:17:17:15] Debug 50103 (EngineManager:spawnEngine): Start engine command line = F:\DevSuiteHome_1\jdk\jre\bin\javaw -server -cp "F:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;F:\DevSuiteHome_1\reports\jlib\rwrun.jar;F:\DevSuiteHome_1\jlib\zrclient.jar" -Duser.language=ar -Duser.region=EG -Xmx256M oracle.reports.engine.RWEngine name=rwURLEng-0 server=rep_pc1 ORACLE_HOME=F:\DevSuiteHome_1 engineimplclass=oracle.reports.urlengine.URLEngineImpl traceopts=trace_all tracefile=F:\DevSuiteHome_1\reports\logs\rep_pc1\rwURLEng-0.trc tracemode=trace_replace cacheDir=F:\DevSuiteHome_1\reports\cache server_ior=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp_20983130
    [2010/1/20 3:17:17:15] Info 56021 (EngineManager:spawnEngine): Engine rwURLEng-0 has been launched
    [2010/1/20 3:17:17:15] State 56004 (EngineInfo:setState): Engine rwURLEng-0 state is: Initial
    [2010/1/20 3:17:17:15] Debug 50103 (JobStore:writePersistFile): Purge persistent file
    [2010/1/20 3:17:17:46] Debug 50103 (JobStore:writePersistFile): Purge persistent file done
    [2010/1/20 3:17:22:187] Warning 50103 (EngineManager:registerEngine): REP-55103: API URLEngine:getEngineEnvsغير قابل للتطبيق على مشغل عنوان URL
    [2010/1/20 3:17:22:187] Info 56026 (EngineManager:registerEngine): Reports Server started up engine rwURLEng-0
    [2010/1/20 3:17:23:687] Debug 50103 (EngineManager:registerEngine): PATH = F:\DevSuiteHome_1\jdk\jre\bin\classic;F:\DevSuiteHome_1\jdk\jre\bin;F:\DevSuiteHome_1\jdk\jre\bin\client;F:\DevSuiteHome_1\jlib;F:\DevSuiteHome_1\bin;F:\DevSuiteHome_1\jre\1.4.2\bin\client;F:\DevSuiteHome_1\jre\1.4.2\bin;F:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\
    [2010/1/20 3:17:23:687] Debug 50103 (EngineManager:registerEngine): DISPLAY =
    [2010/1/20 3:17:23:687] Debug 50103 (EngineManager:registerEngine): LD_LIBRARY_PATH =
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): ORACLE_HOME = F:\DevSuiteHome_1
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): TNS_ADMIN =
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): NLS_LANG = ARABIC_EGYPT.AR8MSWIN1256
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): USER_NLS_LANG =
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): RW = F:\DevSuiteHome_1\reports
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): REPORTS_PATH = F:\DevSuiteHome_1\repadm61\srw;F:\DevSuiteHome_1\cgenr61\admin\crretc;F:\DevSuiteHome_1\cgenr61\admin;F:\DevSuiteHome_1\reports\templates;F:\DevSuiteHome_1\reports\samples\demo;F:\DevSuiteHome_1\reports\integ;F:\DevSuiteHome_1\reports\printers;F:\DevSuiteHome_1\reports;e:\GL
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): REPORTS_TMP = C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): REPORTS_TAGLIB_URI = /WEB-INF/lib/reports_tld.jar
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): java.class.path = F:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;F:\DevSuiteHome_1\reports\jlib\rwrun.jar;F:\DevSuiteHome_1\jlib\zrclient.jar
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): sourceDir =
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): tempDir =
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): useDataCache =
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:registerEngine): ignoreDataParameter =
    [2010/1/20 3:17:23:734] Info 56026 (EngineManager:registerEngine): Reports Server started up engine rwEng-0
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:updateEngineState): Engine rwURLEng-0 status is 1
    [2010/1/20 3:17:23:734] State 56004 (EngineInfo:setState): Engine rwURLEng-0 state is: Ready
    [2010/1/20 3:17:23:734] State 56012 (IdleThread:run): Reports Server جاهز
    [2010/1/20 3:17:23:734] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 1
    [2010/1/20 3:17:23:734] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Ready

  • Problem with RESTful web service

    I am running into a problem with Flex Web Services (REST) in trying to get the proper format returned. I can see that the HTTP header is set to
    Accept: */*;
    rather than
    Accept: application/xml
    when sending the request. The web service was generated via the web services HTTP data services wizard. I edited it to set the resultFormat to xml
        // Constructor
        public function _Super_UsersService()
            // initialize service control
            _serviceControl = new mx.rpc.http.HTTPMultiService();
             var operations:Array = new Array();
             var operation:mx.rpc.http.Operation;
             var argsArray:Array;
             operation = new mx.rpc.http.Operation(null, "getUsers");
             operation.url = "http://localhost:8888/users";
             operation.contentType = "";
             operation.method = "GET";
             operation.resultFormat = "xml";
             //operation.serializationFilter = serializer0;
             operation.properties = new Object();
             operation.properties["xPath"] = "/";
             operation.resultType = valueObjects.Users;
             operations.push(operation);
             _serviceControl.operationList = operations; 
             model_internal::initialize();
    How does one configure the accept header?

    Hi,
    I have posted a simple application with the RESTful reference:
    http://apex.oracle.com/pls/apex/f?p=13758
    I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
    It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
    This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
    I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
    This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
    class="statusMessage">Bad Request</span>                                         
    </h3>                                         
    </div>                                         
    </div>                                         
    <div id="xWhiteContentContainer" class="xContentWide">                                         
    <div class="xWhiteContent">                                         
    <div class="errorPage">                                         
    <p>                                         
    <ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>                                    
    </ul>Thanks,
    Pat
    Edited by: patfmnd on May 8, 2013 3:33 AM

  • Classloader

              wls 6.1sp4
              WebApp in WAR format contains a servlet which loads on startup. This servlets
              has to load some properties file. Currently if i have this properties file in
              system classpath. Servlet is able to find. I dont want to place my properties
              file in system classpath.
              i tried placing in web-inf/classes and checked preferwebinf classes. But still
              no luck. when servlet is loaded and trying to find the resource bundle..it is
              unable to find it.
              any pointers will be appreciated very much.
              

    Here's my code snippet from my class, named RepositoryManager, where the hibernate session factory is tried to instanciate:
    SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
    Herer's a snippet of the stack trace:
    14:10:12,625 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
    14:10:12,625 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
    14:10:12,750 WARN [Configuration] /hibernate.cfg.xml not found
    14:10:12,750 ERROR [RepositoryManager] 00003: Exception instanciating Hibernate session factory:
    net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found
    at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:877)
    The code of the Configuration.class (where the error occurs), which is located in the hibernate.jar under net.sf.hibernate.cfg, is the following:
    log.info("Configuration resource: " + resource);
              InputStream stream = Environment.class.getResourceAsStream(resource);
              if (stream==null) {
                   log.warn(resource + " not found");
                   throw new HibernateException(resource + " not found");
    Ralf

  • Urgent: Strange JDBC Oracle error

    <b>SQLException: ORA-03120: two-task conversion routine: integer overflow</b>
    I get the above error when i retrieve more than 1 column of data from a oracle 8.0.5 database, using jdbc driver (i tried using both classes111.zip and 816classes12b.zip) on a JDK1.2.2 platform, NT environment.
    note 1: no error occurs when i retrieve only 1 column at a time.
    note 2: when i use exactly the same program to retrieve data from a 8.1.5 database, no
    error occurs at all.
    So, what's going on here?
    Can you please help and explain.
    null

    I guess the problem lies with version compatability.
    Newer versions of driver classes like 816classes12b.zip and others do not work well with Oracle 8.0.5, but they works fine with 8.1.5 and above.
    So to work with 8.0.5 and below, we need classes111.zip. But I suspect even classes111.zip has different versions because I encountered the same problem with my previous download of classes111.zip. And then I download from another place and it works fine. Very Strange. Can someone from oracle explain in details?
    Conclusion: it is a matter of trying and testing the different driver classes by specifying and removing them from the environment class path. You need to start a new DOS prompt for the new classpath to take effect.
    null

  • Problem with RESTful web service with header value

    Hi,
    I am on Apex 4.2.2 and Listener 2.1 and the listener is on WEblogic.
    I succeeded to get a RESTful web service working in an application with no header to obtain a full set of data. The data set is very large, so I am now just trying to set up a web service to get a set of data based on a student ID.
    I followed the examples shown in the RESTful web service module of SQL Workshop and set up a handler of this type:
    https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
    The test for this handler succeeded both for JSON output and CSV output in the Workshop test environment.
    However, when I try it from a Web Service Reference that I created for my application following what looked like the same approach used on the example video, I get NO data back. If I put a 'stid' directly into a URL of a web browser and do the basic authentication I get the data!!
    This is what I have for the Web service reference:
    https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
    Basic auth set to Yes -- and this is working -- I am able to authenticate
    HTTP method Get
    output format Text
    no response Xpath
    no response namespace
    defaults for new record and parameter delimiter
    NO REST input parameters
    Output set for all the fields in the data set queried (same set of data as in my rest service which does not have any http header)
    REST HTTP Header : Name stid
    I there something I am missing. I am not sure how to troubleshoot this further.
    Pat

    Hi,
    I have posted a simple application with the RESTful reference:
    http://apex.oracle.com/pls/apex/f?p=13758
    I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
    It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
    This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
    I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
    This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
    class="statusMessage">Bad Request</span>                                         
    </h3>                                         
    </div>                                         
    </div>                                         
    <div id="xWhiteContentContainer" class="xContentWide">                                         
    <div class="xWhiteContent">                                         
    <div class="errorPage">                                         
    <p>                                         
    <ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>                                    
    </ul>Thanks,
    Pat
    Edited by: patfmnd on May 8, 2013 3:33 AM

Maybe you are looking for