Any way to avoid absolute path names in property files?

I would like to create property files that only rely on relative positions
of files. Is there any way to accomplish this? It would be nice if the
property file values supported property substitution,
eg. weblogic.ejb.deploy=%weblogic.system.home%/classes/beanManaged.jar
Or is it safe to simply use relative paths for all file references?
eg. weblogic.ejb.deploy=classes/beanManaged.jar
Thank you for any suggestions.
Marko.

Alexander Petrushko wrote:
>
Marko Milicevic wrote:
I would like to create property files that only rely on relative positions
of files. Is there any way to accomplish this? It would be nice if the
property file values supported property substitution,
eg. weblogic.ejb.deploy=%weblogic.system.home%/classes/beanManaged.jar
Or is it safe to simply use relative paths for all file references?
eg. weblogic.ejb.deploy=classes/beanManaged.jarRelative paths do not work -- In what version? I've always deployed beans with relative paths. It's
always worked for me.
You might also be interested in checking out our EJB 1.1/2.0 beta. The
new EJB container does not require a weblogic.ejb.deploy line in your
properties file.
-- Rob
I filed an enhnacement request with support
that was asking for deployment by name and with a relative path, e.g.
weblogic.ejb.deploy.myBean=classes/beanManager.jar
The workaround is to do the substitution of %weblogic.system.home% yourself
as part of the build. If you use Ant as your build tool, you can accomplish
this with a
few lines of XML.
Cheers
Alex

Similar Messages

  • Any way to avoid the hit on the TEMP tablespace?

    I'm running a CTAS query that unions 13 tables with about 7,000,000 rows each, inner joins that union again against a global temporary table with 13 rows, and then doing a GROUP BY against the result, summing about 6 fields. The resulting query runs in about 2 hours with about a 16 Gig hit on the TEMP tablespace.
    In production I will need to join 52 tables with about that many rows against a GTT with 52 rows. I haven't experimented with it yet but I'm guessing the time and memory increase will be linear (i.e. 8 hours, 64 Gig hit).
    I'm being asked if there's any way to avoid the hit on the TEMP tablespace. It was suggested that I look into using a materialized view, but won't that just transfer the hit from the harddrive to the RAM? I don't think this particular database has 64 Gigs of RAM dedicated to it, and I'm sure the row counts will grow in the future anyway.
    Thoughts?
    Thanks
    Joe

    I don't have visibility to the TEMP tablespace on their database so I don't know if the hit there is any less.
    If you have privileges you can use SQL*PLUS autotrace (or possibly Oracle trace, if you're really that interested) to get run-time statistics on a query as you run it. Waiting for the 2-hour results will be a bit tedious though. If you don't have privileges for autotrace it won'r work; the error messages explain what's wrong rather well ;)
    SQL> set autotrace on
    SQL> select * from dual;
    D
    X
    Execution Plan
    Plan hash value: 3543395131
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |     1 |     2 |     2   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
              3  consistent gets
              2  physical reads
              0  redo size
            204  bytes sent via SQL*Net to client
            234  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processedI still haven't figured out why selecting from dual is doing 3 consistent gets and 2 physical reads ;)

  • HT4137 Will doing this erase old text messages?  If so, is there any way to avoid losing them?

    I just looked read iOS: How to back up your data and set up as a new device.  I've been having a few bugs, but do not want to lose my old text messages.  Will setting up as a new device and then syncing erase old text messages?  If so, is there any way to avoid losing them?

    You will not lose text message, if you back up your phone correctly and then restore from that backup.  If your going to restore your phone as new and not from backup, then your text will not be there until you decide to restore from that backup.
    If you don't want to lose the message, take a look in the app store to see if you can transfer to your computer.

  • I just planned to install windows 7 on my MBP Mid-2012 using VMware Fusion,so i am bit panic about viruses and malware's affecting through vmware,is there any way to avoid from this??

    i just planned to install windows 7 on my MBP Mid-2012 using VMware Fusion,so i am bit panic about viruses and malware's affecting through vmware,is there any way to avoid from this??

    usamasheikh wrote:
    virus protection in vmware or on my running OS X 10.8.2??plz help me out
    First, you can install Microsoft's Security Essentials in the Win 7 VM and keep it up-to-date. Second, you can turn off Sharing in Fusion's System Settings to keep the VM environment separate from your Mac. Third, you can look into Sophos Anti-Virus http://www.sophos.com/en-us/products/free-tools/sophos-antivirus-for-mac-home-ed ition/download.aspx for the Mac host.

  • Any way to avoid duplication of saved pictures?

    Hi.
    In my windows pc, when i saved a picture during browsing that already existed in my pictures folder, it gave me a prompt for replacement. However, in apple ipad, no such prompt is given and the picture is saved again as a duplicate. Any way to avoid this? I have tons of duplicates now on the ipad consuming unncessary space.
    Thanks for help.

    Thanks for the answer.
    In windows pc, i could re arrange pictures with sort order 'Size'. In that way, duplicates since of exactly same size were lumped together and this easy to delete.
    I could try manually deleting in ipad, but the duplicates are not adjacent and the pictures are more than 10,000 in the folder now. Any option to sort as per size?
    Thanks for help.

  • Any way to avoid adjusting the ring volume?

    Any way to avoid adjusting the ring volume? Don't know how but after using the phone for a day or two, the ring volume is adjusted. Is it because I adjust the volume of iPod or other apps. Is there a way to fix the ring volume at a constant level and won't be changed until actually changing the ring volume setting itself?
    Anyone?
    Thanks
    Gaston

    The ring volume is seperate from the iPod or 3rd party apps volume. You can have these at seperate levels. As a test, I made sure the ringer volume is at 100%. I started playing a song and lowered the iPod volume to 50%. I stopped the song and checked the ringer volume which remained at 100%.
    There is no lock setting for this. If you adjust the volume when not using the iPod or when not playing a 3rd party app, it will adjust the ringer volume.

  • Any way to avoid the dreaded activation fee?

    "Activation fee" my little finger. This charge always annoys me. I know it will be waived for businesses; any way to avoid it for individual plans?

    Ask at an AT&T store. My guess is that they won't waive it, though.

  • Is there any way to avoid stop/start of tomcat when a java file is modified

    Hi all,
    we are developing a tool where we use java files for mediation layer and jsp files for presentation layer. so whenever i do a change in any of my java source i need to stop/start the tomcat in order to get the latest change.
    is there any way to avoid this kind of stop/start.... i want the changes to get reflected immediately after i compile the file.

    hai ,
    i wrote a sample test.jsp and TestJava.java file and i tried callin api getValue() in TestJava.java from test.jsp.then i did some modifications to this api i.e., i changed the return type from String to int . then compiled n also touched the file but the changes didn't get reflected instead i got the followin error.
    Location: /support/jsp/test.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: com.adventnet.itm.common.TestJava: method getValue()I not found
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:475)
    Root cause:
    java.lang.NoSuchMethodError: com.adventnet.itm.common.TestJava: method getValue()I not found
         at jsp._0002fjsp_0002ftest_0002ejsptest_jsp_3._jspService(_0002fjsp_0002ftest_0002ejsptest_jsp_3.java:63)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:475)
    kindly help me ASAP.......
    Tanxxx in advance,
    Ani

  • Is there any way to see the  user name(authorized) to logon IR

    Hi,
    Is there any way to see the user name(authorized) to logon Integration Repository?
    I am getting error while trying this out.
    Can anyone please help me.
    Thanks.

    Hi,
    YES, you can see in SU01 and select the user . ANd check for the Roles assigned to that particular User.
    By seeing the Roles itself we can be able to say the Authorized or not
    Regards
    Seshagiri

  • HT1766 When I have iCloud Backup ON, the battery runs down on my iphone really quickly.  Is there any way of avoiding this ?  Thanks

    When I have iCloud Backup ON, the battery runs down on my iphone really really quickly.  Is there any way of avoiding this.  I want to backup my iphone but don't want to be recharging all day.  Many thanks

    Are you sure the iCloud backup is causing this?  Unless you initiate an iCloud backup manually, it will only back up once per day when the phone is connected to your charger and wi-fi and has the screen locked.  It shouldn't otherwise be consuming any power.

  • Is there any way to upload Tariff Code (with multiple XML files) from application server?

    Hi All,
    Is there any way to upload Tariff Code (with multiple XML files) from application server?. Its urgent.
    Regards,
    Jatin

    Hi Jatin,
    Yes, of course you can upload multiple files for tariff codes.
    This can be done by the below path:-
    SAP GTS Cockpit(tcode-/sapsll/menu_legal)-->Customs Management-->Classification-->Classification Master Data-->Upload Tariff Code Numbers from XML file(tocde- /SAPSLL/LLNS_UPL101).
    In the above area after browsing and choosing the first file, please select multiple check box to choose more files as well. Then you can further select your application server and upload all those files in one go.
    PS:- Although, we have an option to upload multiple such files but actually we should avoid multiple file uploads due to various reasons. Hence, please take utmost care during such procedure.
    Regards,
    Aman

  • Getting the local full path name of a file from an item File Browser

    Hi all,
    I would like to get the local full path name, of a file selected from an item 'File browser'.
    I see in wwv_flow_files the column 'name', but actually it's a kind of id like 'F1542335/myFile.gif' for example.
    What i want is the local path of this file ("C:\Documents and Settings\All Users\....\myFile.gif").
    I hope this is possible??
    Anyway, thanks all for reading.
    Ludo

    Hello, thank you for the answer.
    Please understand that I searched before posting, and not ony 15 min.
    What i mean is that the value of a File Browser in an Apex applocation is something like 'F1542335/myFile.gif', but what I need is the local path location.
    And 'F1542335/' is not the local path location, i can't use it. Or maybe there is a way to convert it in a proper path name, such as "C:\Documents and Settings\....", but I don't think so.
    So my question is : how to get the local path name of a file in Apex?
    I'll answer if I find some good things.
    Thanks
    Ludo
    Edited by: user12945874 on 06-avr.-2010 3:59

  • ORA-31001:Invalid resource handle or path name"/apps/batchadm/files/test.xm

    Hi,
    When i am trying to parse the xml document using XDB API. I passed the XML file path to the parse function and making use of that at below lines of code.
    xmlparser.setBaseDir(prsr, dir);
    xmlparser.parse (prsr, dir || '/' || file_in);
    In thsi sceneraio it is giving the below error saying invalid path. But i am giving the right path. And even the file having all permission( 777).
    Can any please help me why i am getting this error even if i mentioned the correct path? Is there anything related the permission grants?
    ORA-31001: Invalid resource handle or path name "/apps/batchadm/files/test.xml"
    ORA-06512: at "SYS.XDBURITYPE", line 11
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-06512: at "XDB.DBMS_XMLPARSER", line 119
    ORA-06512: at "SIGCAP.PARSE_DOCUMENT", line 11
    Thanks,
    shashi

    Could be privs on OS or database level. Check and see what happens if grant yourself the DBA role. Check if the database software owner (ps -ef | grep pmon) is allowed to write in that directory and/or create a file in that directory. Does the OS make use of ACL's (and/or is, for instance Secure, Linux used)....?

  • I accidentally formatted my portable hard drive when setting it up for time machine. Is there any way for me to get back my lost files?

    I have an external hard drive of the brand Western Digital.
    Before I got my iMac I moved a lot of my important files from my PC to the hard drive and today I went on and connected it to my iMac to move my files over to it.
    When it had connected a window popped up that asked if I wanted to use this hard drive with the program Time Machine and create backups. Without thinking it trough enough and reading the warning properly (I'm stupid I know) I clicked "yes". I then realised how stupid it was and cancelled the formatting of the hard drive. But somehow the program still managed to delete all my important files and can't find any way to get them back. Neither can I connect the hard drive to my PC anymore so I can't check if the files are still there (which I doubt they are since I can't see them on my iMac either).
    And now I wonder: is there any way for me to get back my lost files or are they lost forever?
    Thank you in advance!
    //Gina

    A data recovery specialist or some data recovery programs should be able to help.  Most format simply rewrite the directory tree saying no files are on this disk.  The bits that represent the files are still flipped appropreiately so they still exists, you just don't have the location info to get at them.  Secure formats and erases rewrite each bit to a zero or 1 or random so the data is then truely gone.  This type of format takes a long time to complete.
    I'm not making a recomendation of a particular program but here is one company that does what you ask:
    http://www.remosoftware.com/mac-recovery  The cost is pretty high but I'm sure they don't sell many copies and need to cover their development costs.
    Good luck and don't write anything on the freshly formatted disk until you decide what to do.

  • How to get the full path name of a file

    Hey everybody, I'm new here and in Java.
    so I will explain my question by giving an example:
    I want to send file from the Desktop by the "Send to" on the popup menu to my program.
    I want to know how can I read the full path name and the file name, and show it on my text box.
    Thanx alot

    If this is a client side application then I'd say look into drag-n-drop tutorials.
    i.e. drag file to your application, action listener fires, create File object giving you full name and path of users action.
    If this is a web application then look into the "multipart/form-data" content type specifications on how to upload files.
    i.e. user specifies file from <input type='file' ... /> type, submits, servlet receives data and recreates file locally on application server side.
    If you are thinking that all you need to send a file to a program is the full path and name in a textbox its a little bit more complicated then that.
    Good luck, hope that helps!

Maybe you are looking for

  • Subtotal Text in ALV Grid and hiding empty row

    Hello, ive got a ALV-Grid with a few fields .. Total on one field subtotal on VKORG, category or some other fields . after subtotal of one of the 2 named fields i'm reading the literal to the given fields and writing them in the table which is displa

  • Fact and dimension table relationship?

    hi in se38 i executed this program sap_infocube_designs i got all cubes and percentage , this is directly fact and dimension table relationship based on this i need to take action is it line item dimension or high cardinality (dimen>20% fact line, di

  • Wifi module not work in win8

    TuochSmart 600-1135it, modulo wi-fi non viene attivato con win8.1, e non mi dà nessun errore. This question was solved. View Solution.

  • Can't Edit library image in Photoshop  =(

    I just installed Captivate 2 After recording my first demo, I tried to edit the slide (the "background" image in the library using the EDIT IN command. This command opens MSPaint (gahh! what a horrible program!). There is no way that I can see to tel

  • Table for List of Active  Data Sources

    Hello All, I have a requirement like, to collect List of Active Data Sources from which extractions are happening for the past one year. Actually i have many Data sources which are in Active State but extractions are happening only on some of the Act