Problem in locating resource in the package

I have a .ear package like following:
test.ear
|____________META-INF/application.xml
|____________APP-INF/lib/test.jar
|____________ APP-INF/lib/testrar.rar (A Resource Adapter, contains a testrar.jar
in .rar package)
The URL returned by calling Class::getResource("myTestData") from a class under
testrar.jar does not give the right URL (file name and path are missing). The
URL is like: zip:./myserver/stage/_appsdir_activityNode_ear/APP-INF/lib/testrar.rar!/testrar.jar
Is this a bug in weblogic server V7.0 or is there anything wrong? I got to put
the .rar file under APP-INF because the test.jar needs to reference some classes
in it.
Thanks for any suggestions.

Hi duffymo, thanks for your comment.
It works if I put the properties file in the
WEB-INF\classes directory.
But, if I put the properties file in the
WEB-INF\classes\resources directory, it does not work.
I really want to put those properties in a folder. Is
there any way to do it?Yes, Natalie, change the String you pass to the getResourceAsStream to include the resources path:
String search = "resources/yourFile.properties";I believe the class loader will look in the CLASSPATH for that file along that path.
I've done this by adding an <init-param> to my <servlet> in web.xml:
        <init-param>
            <param-name>init-config</param-name>
            <param-value>/WEB-INF/config/api-prototype-config.xml</param-value>
        </init-param>In the servlet init() method I have:
    public void init(ServletConfig config) throws ServletException
        super.init(config);
        ServletContext servletContext = this.getServletContext();
        try
            String configXmlName    = this.getInitParameter(APIPrototypeServlet.INIT_XML_PARAM);
            InputStream initStream  = servletContext.getResourceAsStream(configXmlName);
            if (initStream == null)
                throw new FileNotFoundException("Could not find config: " + configXmlName);
// more following code - the stuff above is what's important.This is working for me.

Similar Messages

  • Compiling files with the 'package'-statement

    Hi,
    I have a problem compiling files that uses the 'package'-statement:
    I have 2 files ClassA.java and ClassB.java. ClassA uses objects of type ClassB. When I compile ClassA.java the compiler also automatically compiles ClassB.java. No problem so far.
    But when I add "package mypackage" to ClassA.java and ClassB.java and then try to compile ClassA.java with the command "javac -d . ClassA.java" I get the compile-error "Class mypackage.ClassB not found". This would mean that I would have to compile all my files separately?
    Can anybody tell me what I am doing wrong?
    Thx,
    Jan

    I was still working on it, but I think I have it now :-)
    Let me try to summarize what I think/hope that I understand:
    I have the following files in package mypackage:
    C:\src\mypackage\ClassA.java
    C:\src\mypackage\ClassB.java
    with ClassA using ClassB.
    I want to compile them into C:\classes\mypackage\ClassA.class and C:\classes\mypackage\ClassB.class
    I change directory to C:\classes and then give the command
    >javac -d . ..\src\mypackage\ClassA.java
    This didn't work at first because my classpath wasn't set correctly. To make it work I had to add C:\src to my classpath. Which surprised me a little because I thought that the classpath was only used to find *.class files and not by javac to find *.java files?
    If anybody has something to add to this, please feel free to do so.
    Jan

  • Problem in transfer rules-- Calling the function module.

    Hi All,
                 when we r extracting the data from r3,  the infoobject 0wbs_elem the data pulled is in internal format in which wbs element is stored.
    wbs element gets stored in a different way compared to front end.
    Eg. The external format is /abc/123 the internal format is 00012300.
    I have written a transfer routine using the function module CONVERSION_EXIT_ABPSP_OUTPUT.
    the code goes like this
    data ifield(30) type c.
    call function CONVERSION_EXIT_ABPSP_OUTPUT
    Exporting
    input  =  tran_structure-wbselem  (Field in transfer structure---name of the field in source system) .
    Importing
    output = ifield.
    result = ifield.
    End of code.
    Problem
    When I am Scheduling the package the job doesnt get completed for a long time and fails.Is there a problem with the code. When trying for the Simulation of the datapackets,  the system says no data package number could be determined.
    Please help me out...
    Thank You
    Mahesh

    Hi Mahesh,
    Could you please check ST22 and see if there is any short dumps ?
    try to do test run for the FMs using SE37 and see what is the output for your input.
    Do you have PSA for the load ? It may also have been deleted. You get this message when there is no PSA available.
    hope it helps
    Thanks
    Soumya

  • I am having problems updating my itunes to the latest version, on each stage I am getting a message 'The feature you are trying to use in on a network resource that is unavailable.'  I try to click OK it fails and I do not know an alternate path to select

    I am having problems updating my itunes to the latest version, on each stage I am getting a message 'The feature you are trying to use in on a network resource that is unavailable.'  I try to click OK it fails and I do not know an alternate path to select, please help?
    I get message like below on each stage of the update, Quicktime, Safari & iTunes;
    It's so annoying as until I update my iTunes account my phone won't sync.

    Many thanks for the screenshot. (The key to these is knowing which particular .msi file is being mentioned by the message.)
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?
    (Assuming that the QuickTime and Safari messages were also citing bonjour64.msi, you should also then be good to go with those installs too.)

  • ITunes won't upgrade to10.5. Error message "There is a problem with the Windows installer package. Contact the package vendor". I need help.

    iTunes won't upgrade to10.5. I'm on 10.1.17.
    When installing 10.5 it terminates with an error message "There is a problem with the Windows  installer package. Contact the package vendor".
    It does not provide an error code or details/description to further troubleshoot. As a result I can't upgrade my Apple devices to leverage the cloud.
    Any smarts out there who could help?
    Using PC Win-7 w/IE 7 (should that matter)
    Thanks much

    I know there's a million threads like this, but I thought I'd record my experience.  I, too, was having the original poster's error when I tried to update iTunes on Windows XP.  I think I was stuck on 10. 
    I solved it by un-installing iTunes and every other Apple app.  I discovered that Apple Software Update would not un-install as its MSI file could not be found.  I used the "Windows Install Cleanup" tool from Microsoft to remove Apple Software Update from the list of installed programs.  Google "kb290301" for a Microsoft page that includes a download link for it.  After that, I was able to install a fresh copy of iTunes 10.5.2.
    I'm not sure why this app's folder and MSI were missing from my computer.  I had once used Laplink PC Mover to move everything from my old computer to this one, and perhaps it missed a bit.

  • Im trying to download itunes 10.5 but keep getting error message that says: There is a problem with this Windows Installer package. A problem run as part of the setup did not finish as expected. Contact your support personnel or package vendor.

    im trying to download itunes 10.5 but keep getting error message that says: There is a problem with this Windows Installer package. A problem run as part of the setup did not finish as expected. Contact your support personnel or package vendor. I am using windows XP 32 bit, all the other computers in my house downloaded just fine, no problems, however this is the computer my iphone is set up to, ive tried doing a virus scan, windows update, downloading other things, updating everything possible, everything works fine, its just itunes that wont download, anyone have any other ideas?

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

  • Why  would an error pop up saying the installer is damaged. The Installer can't open the package. There may be a problem with file ownership or permissions. when trying to install java 7?

    why  would an error pop up saying the installer is damaged. The Installer can’t open the package. There may be a problem with file ownership or permissions. when trying to install java 7?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Mac OS 10.7.4, installing Microsoft Office 14.2.7, error "The Installer can't open the package. There may be a problem with file ownership or permissions."

    Mac OS 10.7.4, updating new version Microsoft Office 14.2.7, ERROR "The Installer can’t open the package. There may be a problem with file ownership or permissions."
    The Apple Installer version is Version 5.0.1 (537).
    When I check the Installer Log, I find only these two messages that I do not understand.
    Jul 12 09:29:13 Bruces-MacBook-Pro Installer[423]: Install's runner tool is not properly configured as a setuid tool.
    Jul 12 09:29:13 Bruces-MacBook-Pro Installer[423]: Unable to create InstallController
    I changed all the permissions for all the Microsoft Office Folder users to Read and Write.
    Restart, same error

    See:
    https://discussions.apple.com/thread/1948155?threadID=1948155&tstart=1
    I had identical Installer Log failure notices: I used Houdini to view the invisible files and per Limnos' suggestion cautiously dragged
    user > library > preferences > com.apple.installer.plist out of that folder onto my desktop and double-clicked on the .pkg file again and it opened and installed properly.
    My Installer now works properly on all .pkg files.

  • Output error:the name of the package "greet" does not reflect the location of this file...

    output error: The name of package 'greet' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Documents and Settings\Igal\My Documents\meiran\greet\Greeter.as
    I keep on recieving this output error although my source path is set to C:\Documents and Settings\Igal\My Documents\meiran\greet.
    any suggestions why this happens?

    The classpaths you define in your Flash software tell the compiler where to look when it needs to find a class.  According to your as file, the very top line indicates the Greeter.as file should be at a location specified by the path...
    one-of-your-classpaths\com\example\quickstart\
    So if one of your classpaths is:  C:\Documents and Settings\Igal\My Documents\meiran\greet\
    and you placed the file in the greet folder, then in your AS document you should not have the "com\example\quickstart" and your import statement in the fla should not be using that (should just be... import Greeter;)

  • When I start up the computer, the dialogue box opens and saying that the procedure entry point splite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I tried to fix this problem by redownloading itunes, but the problem still

    When I start up the computer, the dialogue box opens and saying that the procedure entry point splite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I tried to fix this problem by redownloading itunes, but the problem still persists.  How can I fix it?  thank you.

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • Problem with the package execution

    Hi Guys,
    I am getting the problem while executin the package for 1 of the interface named PRE_SYNC_EX_ARMY_VEH_DEL.
    I am looking in the operator as at the first session task is in the process(running mode) with "DROP FLOW TABLE" as the message while all other sessions tasks are in the waiting mode related to that interface named PRE_SYNC_EX_ARMY_VEH_DEL.
    But when i see to description of last session task (ie Drop flow table) of the previous interface ie PRE_SYNC_AXLE_DELNR ,it is like *"Flow table is still locked in open transaction=>Drop flow table skipped"*
    The source tables are EX_ARMY_VEH_TMP and CONTROL_DEL & target table is CONTROL_DEL
    All the three tables are in the same schema named RTO_STAGE.

    Not sure what error message, is the one "est introuvable.
    Cette erreur est retournée par la collection Connections lorsque l'élément de connexion spécifique est introuvable"?
    So, here is in short: the ForEach Loop once in its beginning of operation "senses" the files currently present in the working folder. If a new file arrives after this stage, it will not see it.
    In your case it seems that the ForEach "saw" a file at the beginning, but it was gone at the time the processing wanted it for execution.
    Like many above indicated, the common practice, call
    it elegant or not is to indeed move the files to a different directory (working folder). This is done to avoid collisions with some other activity in that folder.
    Furthermore, you can have all the files deleted using a ForEach against the working folder as say in
    http://beyondrelational.com/modules/2/blogs/88/posts/10178/ssis-delete-files-from-specified-folder-using-file-system-task-in-sql-server.aspx And there is no need to delete the working folder
    itself.
    The job is run in SQL Server's Agent
    need to be set to run using a domain proxy account as it needs write access to the file system.
    Arthur My Blog

  • Problems with the packager using J2sdk 1.4.2

    Hi all,
    when I try to use the packager, I always get this message:
    C:\proc\cas\classes>packager cas.jar CasFrame
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -showversion print product version and continue
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    Die IDL-Datei konnte nicht erstellt werden..
    (The IDL couldn't be created)
    I did all the stuff released at the ActiveX developer guide on
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    Has anyone an idea, how I can fix this?
    Might it be a problem, that I also use JBuilder 8.0 which ordinary uses Java 1.4.1?
    regards
    Tom

    Oh no, I tried to get a run for a whole day... now I got it. It was always a mistake in the CLASSPATH. Stupid :-)

  • Problems downloading and installing OS X Yosemite An error occurred while running scripts from the package

    Hi! I have problems downloading and installing OS X Yosemite.
    While downloading this message pops up:
    An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
    and in /var/log/install.log i can see:
    MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n    NSFilePath = preinstall;\n    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n    NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n    PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
    does anyone have an idea about this?
    thank you very much

    Mucked up installation. If the installer app is still in /Applications, delete it and start over.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • I have the following problem: i lost my cs6 Adobe Production Premium installer dvds and the serials within the package, after all i logged here into adobe and cant find any product in my profile, so i am not able to see my serials or my installations i ha

    i have the following problem: i lost my cs6 Adobe Production Premium installer dvds and the serials within the package, after all i logged here into adobe and cant find any product in my profile, so i am not able to see my serials or my installations i have on my macbookpro. Can you help me to find out where i am registerd?

    If your registrations do not show at https://www.adobe.com/account.html you will not get help in an open forum
    You MAY get help at Contact Customer Care
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • I recently upgraded our iMac to Yosemite OS and now have a problem with Photoshop Elements 11:  the move tool selects an image or text layer, but then I try to drag the selection somewhere else on the page and it snaps back to the original location, howev

    I recently upgraded our iMac to Yosemite OS and now have a problem with Photoshop Elements 11:  the move tool selects an image or text layer, but then I try to drag the selection somewhere else on the page and it snaps back to the original location, however the arrows will move it OK.  Also I cannot drag the selection to another photo in the photo bin as before.

    Hi,
    Please refer: http://helpx.adobe.com/photoshop-elements/kb/pse-stops-responding-yosemite.html
    Thanks,
    Anwesha

Maybe you are looking for

  • Odbc.ini entry on local unix server to connect to a T10 on remote server

    I am trying to setup an entry in the ODBC.INI file on local unix server that has T10 client installed. I want to connect to a T10 datastore on a different server using this ODBC entry (client/server connection for a Informatica tool) Could some one t

  • Not allowing a paragraph to be "split up"?

    Hi, Is there a way I can style a paragraph style to "not be split up between two text frames"? I mean, I don't want my body copy paragraph to be shown on the bottom of one text frame, and then continuing on the next frame. Instead the whole paragraph

  • Re: alv grid display.

    Hi All,               I have a final alv grid display and i have two fields which are edited by clicking the EDIT button given on the output PF-Status. now i want to disable this EDIT button when the user changes the value of these two fields. after

  • How do I fix opendiff?

    I just remembered FileMerge comes with Dev Tools so I'm posting this here along with the generic question I posted in the Leopard Forum. I also found out Opendiff is the one in charge of launching FileMerge and it works fine from DreamWeaver. But whe

  • Can blue-ray disks be played on the new iMac?

    If I buy disks in blue ray format, can they be played on the new iMac?