JPublisher Properties/Property File

Nice People out there...
I'm generating java source(s)
using JPublisher based on object types
which I created in 8i dbase.
During the process I tried to use the property/properties file within JPublisher to set default values for certain attributes within its (JPublisher Wizard) dialog box.
It doesn't look like its taking it (doesn't
read the property/properties file).
Any idea(s)/clue(s)? Is there bug reported
on this part?
Thanks so much for any feedback.

Hi, I just tried this, using a properties file to set jpub.case, and it worked. Here's what I did:
- Created a file named jp.properties, containing one line:
jpub.case=lower
- In the database browser, right-clicked my Java object and selected Generate Java
- In the JPublisher wizard, clicked Browse and selected my properties file, then clicked OK.
- Viewed the generated .sqlj file; the attributes were generated as city, street, etc, and the methods were setcity(), setstreet().
- Edited jp.properties, changed the contents to:
jpub.case=upper
- Ran the wizard again and viewed the generated .sqlj file; this time the attributes were CITY, STREET, etc, and the methods were setCITY(), setSTREET().
I got my instructions from the online documentation, under:
User Guides
-> Accessing Oracle Objects and PL/SQL Packages
-> Generating Java Code for Oracle Objects and PL/SQL Packages
Blaise

Similar Messages

  • How to add the property file..ie(default.properties) to a webdynpro project

    Hi All,
    How to add the property file..ie(default.properties) to a webdynpro project.
    I urgently require the solution. Kindly get it for me.
    Regards
    DK

    Hi DK,
    this is described in the second Web Dynpro Java Tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
    Regards, Bertram

  • Missing properties for ADMINS  group in security property file

    Hi,
    I'm getting the following error while trying to start the J2EE server
    how to overcome this
    SAP J2EE Engine Version 6.20 PatchLevel 67440.20 is starting...
    Loading: LogManager ...
    Loading: SystemThreadManager ...
    Loading: ThreadManager ...
    Loading: TimeoutManager ...
    Loading: MemoryManager ...
    Loading: PoolManager ...
    Loading: PolicyManager ...
    Loading: IpVerificationManager ...
    Loading: ClusterManager ...
    Loading: ClassLoaderManager ...
    Loading: SwapManager ...
    Loading: LockManager ...
    Loading: R3StartupManager ...
    Loading: ServiceManager ...
    Loading core services:
      Starting core service p4 ... done.
      Starting core service monitor ... done.
      Starting core service log ... done.
      Starting core service file ... done.
      Starting core service dbms ... done.
    ID000544: Error starting service security. Unexpected exception: java.lang.SecurityException: Missing properties for ADMINS group in security property file!!!
    [ServiceManager]: ID000544: Error starting service security. Unexpected exception: java.lang.SecurityException: Missing properties for ADMINS group in security property file!!!
    Exception in core service. Kernel not started.
    [ServiceManager]: * Exception in core service. Kernel not started.
    Loading: ServiceManager returned false!
    Kernel not loaded. System halted.
    Element 1779446621 disconnected.
    System Exception * Fail to start Naming. Exception is: java.lang.NullPointerException
    ThreadDeath catched in deploy when trying to start it. Rethrowning...
    [ServiceManager]: ThreadDeath catched in deploy when trying to start it. Rethrowning...
      Starting core service naming ... done.
    ThreadDeath catched in admin when trying to start it. Rethrowning...
    [ServiceManager]: ThreadDeath catched in admin when trying to start it. Rethrowning...
    Message was edited by: Lakshmi Manohar

    Hi,
    As I understand, you are using SharePoint designer worfklow on 2013 platform and you would like to edit cancelation email body for task process.
    From my experience, there is no OOB option for you to edit cancelation email body. Since workflow 2013 is different from 2010, task forms are auto-generated based upon a certain Content Type. As workaround, I'd recommend you using approval workflow on 2010
    platform. In addition, you could try codeplex 2013 approval workflow, please check the link below:
    http://sharepointwf.codeplex.com/
    More information:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/09/14/how-to-manipulate-the-task-form-with-sharepoint-designer-for-new-task-actions.aspx
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflowservices.activities.singletask.cancelationemailbody(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • Getting String values from a ".properties like" file

    I'm finishing up my first servlet based application. I would like to get some of the error messages out of the code and into a file that will be read when the application is initialized -- much like one would use a .properties file in a Java program.
    This will allow error messages to be edited later, without recompiling the code.
    What's the servlet oriented approach to reading strings on initialization? I have a hunch it has something to do with ServletContext . . .
    Bonus Question! Does this approach read strings only at initialization? I can't afford the cost of reading them every time!
    Thanks in advance,
    Josh Collins

    You can use a RessourceBundle object to read such property file... and you will be able to set localized message.
    Sylvain Gibier

  • Maven Plugin not accepting values from a property file.

    Hi,
    I want to create javadocs using maven.
    It works fine when i provide all the absolute paths in the pom.
    But when i try to provide paths by reading a property file then the maven-javadoc-plugin does not get the paths from this property file.
    The property file is defined as mentioned in below format:
    src_mvn_consult_framework_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/framework
    src_mvn_consult_module_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/module
    src_mvn_consult_appx_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/appx
    src_mvn_consult_client_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/client
    src_mvn_consult_app_webservice_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/application/com.ofss.fc.cz.nab.webservices
    src_mvn_consult_app_middleware_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/application/com.ofss.fc.cz.nab.middleware
    Calling this property file in the pom like:
    <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>properties-maven-plugin</artifactId>
         <version>1.0-alpha-2</version>
         <executions>
         <execution>
         <phase>initialize</phase>
         <goals>
    <goal>read-project-properties</goal>
         </goals>
         <configuration>
    <files>
         <file>/var/build/consult/maven/cz_javadoc-config.properties</file>
    </files>
         </configuration>
         </execution>
         </executions>
    </plugin>
    Finally we are using keys defined in property file in pom like:
    <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <version>2.7</version>
              <configuration>
              <sourcepath>${src_mvn_consult_framework_dir};
                   ${src_mvn_consult_module_dir};
                   ${src_mvn_consult_appx_dir};
                   ${src_mvn_consult_client_dir};
                   ${src_mvn_consult_app_webservice_dir};
                   ${src_mvn_consult_app_middleware_dir};
              </sourcepath>
              </configuration>
    </plugin>
    Please suggest how we can get the value of keys defined in the property file in POM
    Thanks for your invaluable support

    I've had to do something similar in one of my apps.  In order to populate values in the THIS scope, you'll need to put a copy of the XML loading/processing logic in the pseudo-constructor (or encapsulate it in a separate CFM/CFC file and include it in both places).  It's ugly, but that's the only way I'm aware of to access the THIS scope.
    -Carl V.

  • Open module for managing property file and environment variables

    Looking for an open module for managing property files and environment variables (like CLASSPATH) set in a shell script. For handeling properties (preserving comments, supporting includes, appending new entries, and more) I have looked at SuperProperties from openadaptor but find certain functionality lacking. As for interfacing with common shell scripts/files containing setting for CLASSPATH, JAVA_HOME, other system/application variables another type of object editor is needed. Maybe JFIG?
    Any ideas are greatly welcomed.

    You seem wright, you hit a brick wall here with Air to find the location
    of the command console on windows...
    So in fact I never build an exe tool, but this little problem was a nice
    case to test it and I tried it.:
    I downloaded monodevelop
    -GTK# for .NET 2.12.10*
    -MonoDevelop 2.4.2*
       from http://monodevelop.com/Download
    created a console project and had an exe in 5 minutes !
    You can download the findconsole tool and the projectfiles here:
       http://greencollective.nl/temp/dump/findconsole_monoproject.zip
    findconsole.exe will reveal the path/location of cmd.exe on a windows system.
    Cheers,
    Latcho

  • How to use an equal sign as a part of the value in a property file

    say I have this line in a properties file:
    args = -Xms512m -Xmx512m -XX:MaxPermSize=256m
    obviously I can't use the (=) as is. What should I do to make it work?
    I tried to use \= and \:, but it doesn't work as well.
    thanks.

    A property file contains "key" lines or "key=value" lines the '=' character loses its special meaning after a key is read so you can use '=' characters in the 'value' part of a property.
    kind regards,
    Jos

  • How to use property file - sql query define in property file

    Hi All,
    Anybody please tell me how to use property file.
    I have placed sql query in propery file and I have to access this in my file.
    well so far this is my code but don't know how to implement in the following ...
    pstmt = con.prepareStatement("select * from registration where username=?");
    instead of writting the query I want to use the property file.
    so far I have developed the following code...
    FileInputStream fis = new FileInputStream("querysql.property");
    Properties dbProp = new Properties();
    dbProp.load(fis);is the code correct... or is there another way to access property file
    Please help.
    please reply soon....
    Thanks

    Before answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • Character '\' is lost when reading a String from a property file.

    Hi all,
    I have encrypted information inside a property file, but when loading properties in my program, the String object used to store the value is changed by the lost of all �\� characters
    # EIS password saved in the property file
    password=WPLqQE0DlVF8Sg\=\=
    #Value loaded in my String object
    WPLqQE0DlVF8Sg==
    Why is this happening? I use java.util.Properties java class to store and load my properties, and it is supposed to do it with the same encoding (ISO 8859-1).
    Please, can someone explain me why this happened and how to solve it?
    Best regards.

          public static void main(String[] args) throws IOException {
               OutputStream props = new FileOutputStream("test.properties");
               Properties p = new Properties();
               p.put("password", "pass=word#is!dumb");
               p.put("user", "    I am a Dummy");
               p.store(props, "Java forum demo props file");
               props.close();
               /* Properties file after store
                * user=\    I am a Dummy
                * password=pass\=word\#is\!dumb
               Properties post = new Properties();
               post.load(new FileInputStream("test.properties"));
               for(Iterator it = post.entrySet().iterator(); it.hasNext();)
                System.out.println(it.next());
                * After load from test.properties
                * user=    I am a Dummy
                * password=pass=word#is!dumb
          }Notice that the special chars are only in the file, not actually in the props. If you think otherwise, I don't know what to say. The \ is a special character that is used to escape other special chars, including itself. You can't create a string in java containing only one backslash, as java assumes the next char is being escaped. when you create a string in Java with one backslash, you have to have 2 backslashes. If you are storing data in the property file using something other than store, than you need to ensure that you are escaping all special charachters that the store method does
    ~Tim

  • Error while reading a property file from a war.

    Hi,
    I am trying to read a property file which is available in the properties folder.
    The piece of code that does this read is as follows.
    InputStream is = ClassLoader.getSystemResourceAsStream("codemap.properties");
    System.out.println("Reading file:"+is);
    properties.load(is);
    The "codemap.properties" file is available in the properties folder.
    Following is my directory structure in the war file
    sample.war
    |
    |
    WEB-INF
    |
    |
    classes
    |
    |
    properties
    |
    |______ codemap.properties
    Inside the war file I have WEB-INF and properties folder.
    Inside WEB-INF i have the classes folder which has the classes
    Inside the properties folder I have the codemap.properties file.
    I am using Jboss. In the class path I have ./properties
    I have also added this classpath in the manifest file.
    Problem: The piece of code that I have written to read the property file is not able to locate the file and this it returns null.
    I am not sure what i am missing here.
    If anyone there have any solutions please let me know.
    Thanks in Advance
    Balaji.

    I think you've to change this line
    InputStream is = ClassLoader.getSystemResourceAsStream("codemap.properties");with this.
    InputStream is = ClassLoader.getSystemResourceAsStream("properties/codemap.properties");it is unable to find the path you specified. by default it'll check the WEB-INF directory. so you've to give the relative path to it.
    Diablo

  • Read from a property file which is in a zip

    I have the problem, that I can�t read a property file in a zip. A class which I ca get in the same zip needs this property to init.
    I call this in a batchfile.
    The message is like:
    c:/xx/core.zip!/com/xx/Prop.properties
    Path of the zip Path of the Property in zip
    Syntax or name or path are not correct.
    Where is the problem?
    Thanks in advance
    Frank

    hm, am not sure I follow but
    it is not possible to instantiate the class. I only use this class. >Java will find the class in the same zip and path, but the property->File will not be loaded while a FileInputStream wonts to open it.FileInputStream can't be used to open a zipped file, you can get an InputStream from the ressources variable by using URL.openStream method and feed this into Properties.load
    if you post some code here that you are able to change, then people might be able to help more :)
    asjf

  • Read a property file and store it in a hashmap

    Hi,
    I have tried to read a property file and store it in a hashmap. The property-names should be stored in keys and the property-values (after = symbol) in values of the hashmap. any ideas? Is it possible to do this?

    mandy2001ir wrote:
    yes, but I need the hashmap for another reason. Actually I'm trying to use the properties file to have a dynamic hachmap. I don't want to change the code anytime I want to put a value in the hashmap. therefor I write the "keys" and "values" in a property file and change the property file. That's the reasn why we have property files, isn't it?What's a "dynamic hashmap"? There's no other kind! Whenever someone starts bandying around the word "dynamic" in contexts like this, it usually means there's a simple solution to their problem, that they haven't yet considered, or mistakenly don't believe is applicable to them, because of this "unique" need for something "dynamic". Trust me, you just need to load the file using a Properties object, and you're done. Properties extends Hashtable, which is virtually the same thing as a HashMap. Properties does exactly what you want it to. it's the very reason the class exists
    Have you even looked at the javadoc for java.util.Properties yet? I'm betting not, because if you had, you'd know exactly what I meant. And since you haven't, I'm at a bit of a loss as to how you can so easily dismiss the class as useless, despite existing to do exactly what you need

  • How to find my own property file in a war in soloaris

    Hi, there;
    I have a question whcih bothers me quite long. I packaged a property file in a
    war file and use console to uploaded. I can access to the servlet through browser
    and the servlet reference another class which looks like
    try {
    InputStream is = getClass().getResourceAsStream "/data_ctrmw.properties");
    error +="InputStream property file 1nd try: "+is;
    if(is==null){
    is = getClass().getResourceAsStream("data_ctrmw.properties");
    System.err.println("data_ctrmw.properties found! ");
    error +=" InputStream property file 2nd try: "+is;
    Same code works on windows wls6.1, but not on soloris machine.
    One other question:
    How can I write out to a log file? I am unable to write out to a log file.
    Thanks a lot

    Sorry;
    Yesterday, I finally found that my web.xml had an error. I didn't define .properties
    as MIME extension type. I change property file type to .txt and put in MIME type.
    It works!
    Thanks
    "raymond" <[email protected]> wrote:
    >
    Hi, Chala;
    Thanks for your good suggestion. However, it seems still not working,
    I also tried
    getResourceAsStream("/") trying to find from app context root. By the
    way, in
    this function, the arg is
    String path, right now, I am just add the param-name element in web.xml
    for a
    specific servlet. But actuall, I want the properties to be exposed to
    the application.
    Also, I tried context-param element in web.xml, it even can't be uploaded
    to jrun
    or weblogic.
    I guess, it might be possible to warp it in an .ear file and put these
    in sth
    like application.xml
    Any suggestion?
    Thanks lot
    "Arjuna Chala" <[email protected]> wrote:
    Have you tried using
    ServletConfig.getServletContext().getResourceAsStream().
    "raymond" <[email protected]> wrote in message
    news:3c5f0b20$[email protected]..
    Hi, there;
    I have a question whcih bothers me quite long. I packaged a propertyfile
    in a
    war file and use console to uploaded. I can access to the servlet
    through
    browser
    and the servlet reference another class which looks like
    try {
    InputStream is = getClass().getResourceAsStream"/data_ctrmw.properties");
    error +="InputStream property file 1nd try: "+is;
    if(is==null){
    is = getClass().getResourceAsStream("data_ctrmw.properties");
    System.err.println("data_ctrmw.properties found! ");
    error +=" InputStream property file 2nd try: "+is;
    Same code works on windows wls6.1, but not on soloris machine.
    One other question:
    How can I write out to a log file? I am unable to write out to a logfile.
    Thanks a lot

Maybe you are looking for

  • Error 1324 The path MyPictures contains an invalid character

    Just purchased IPod and in trying to load CD or in downloading get the same error message and have no clue as to how to correct it. Appreciate any help.

  • Document name in DC20 setting

    Hi gurus, good morning. our DC20 setting under 'define data carrier type server front end' is C: folder. when viewing documents in CV03N, document is automatically saved in C: folder with document name '_username01.jpg' .. were is the file name defin

  • Using a CC with a Balance Transfer without added interest cost

    I have several cards on 0% or low APR BT Offers, and those CC have also made me offers for cash back if I use the card for purchases. How can you do this, if the card is already on a BT, without destroying the low APR on the BT? Easy.  An important t

  • How to identify which process in process chain executes in Batch and Dialog

    Hi, We want to identify which processes in process chain is running in Batch mode or Dialog mode. Is there any where we can identify this from any table or transaction. (Eg Loading, DTP loading, Attribute change run, deletion of index, deletion of ov

  • Having Problem in select statement.

    Dear gurus im having an issue in select statement. i have written a select statement which is fetching the result as i required but it takes to much time to execute. how to make it work fast. SELECT vbak~vkbur vbap~vbeln vbap~posnr vbak~audat