Problems with properties files and war files in weblogic 5.1

          I work with WebLogic 5.1 and I'm trying to deploy a web application which gets
          a properties file. If I deploy it as an expanded directory hierarchy (with the
          properties files into WEB-INF/classes) I have no problems. While deploying it
          by a .war file I get this message: "en_GB java.util.MissingResourceException:
          Can't find resource for base name Agent, locale en " (the getBundle() method is
          trying to get an english property file). What could I do? Is it really a weblogic
          5.1 bug?
          Thanks,
          David
          

This issue comes up repeatably. It's a real bug.
          I believe this problem was fixed in a 5.1 service pack, but I'm trying to
          find out the exact disposition of the issue. Noone seems to be complaining
          about this under 6.x, so a fix seems to have been made, the only question is
          whether or not it got back-ported to a 5.1 service pack.
          Gary
          david <[email protected]> wrote in message
          news:3ac4a39a$[email protected]..
          >
          > I work with WebLogic 5.1 and I'm trying to deploy a web application which
          gets
          > a properties file. If I deploy it as an expanded directory hierarchy (with
          the
          > properties files into WEB-INF/classes) I have no problems. While deploying
          it
          > by a .war file I get this message: "en_GB
          java.util.MissingResourceException:
          > Can't find resource for base name Agent, locale en " (the getBundle()
          method is
          > trying to get an english property file). What could I do? Is it really a
          weblogic
          > 5.1 bug?
          > Thanks,
          > David
          

Similar Messages

  • How to deploy ear file with jar file and war file with different names

    Hi,
    As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
    Problem:
    I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
    In config.xml file of WL 6.1, it was mentioned as :
    <Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
    <EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
    <WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
    </Application>.
    The above is working fine.
    But in config.xml file WL10,I cannot mention the same.
    I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
    I tried the following options:
    1) Deploying as a ear file by adding <sub-deployments>
    2) Deploying both war and jar seperately which is not recommended in my application.
    Please provide the content I should place in the config.xml so that everything works fine correctly.
    Any help is appreciated.

    Hi,
    As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some problem.
    Problem:
    I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and one war file(pqr.war).
    In config.xml file of WL 6.1, it was mentioned as :
    <Application Deployed="true" Name="abc" Path="./config/mydomain/applications/abc.ear">
    <EJBComponent Name="xyz" Targets="myserver" URI="xyz.jar"/>
    <WebAppComponent Name="pqr" Targets="myserver" URI="pqr.war"/>
    </Application>.
    The above is working fine.
    But in config.xml file WL10,I cannot mention the same.
    I need to have different application anmes for ear,jar and war.If I deploy as a ear file,the jar and war files are deployed with the same ear file name.
    I tried the following options:
    1) Deploying as a ear file by adding <sub-deployments>
    2) Deploying both war and jar seperately which is not recommended in my application.
    Please provide the content I should place in the config.xml so that everything works fine correctly.
    Any help is appreciated.

  • Problem with IOS7.1 and zip file on Exchange 2003

    After the update to IOS 7.1 an mail from Exchange 2003 mail server with a zip file.
    the zip file cannot unzipped by any app.

    There's a patch available for this problem.
    Contact [email protected] or wait until next SP goes to GA.
    Kumar
    Niranjan Soni wrote:
    >
    Hi
    I am facing few problems when i try to start my WLS 5.1 with Java 1.3
    When i try to start my Weblogic Server from Start Menu it gives me following
    error :--
    The dynamic link library javai.dll could not be found in the specified path
    D:\Weblogic\bin;;C:\WINNT\System32;C:\WINNT\System;C:\WINNT;d:\jdk1.3\jre\bi
    n;
    d:\Weblogic\bin;d:\Weblogic\bin;C:\WINNT\System32;C:\WINNT;d:\jdk1.3\bin;d:\
    Weblogic\bin;
    Also as per the installation document, it says to set java system path, java
    system classpath,
    Weblogic Classpath, weblogic.properties file, weblogic.policy file and
    licenese.
    Do i need to make above changes even if i decide to Start my Weblogic Server
    from Start Menu
    or as NT Service and not start it from Command line.
    If i run WLS5.1 from Start Menu.. do i need to make any specific changes in
    terms of path and classpath.
    I read the installation doc but i got quite confused with that as i am new
    to Weblogic...that's why i am posting the query over here.
    There is another problem that i am facing..it not related to WLS Start
    up......but it is of setting the
    classpath from java command line argument...I am running on NT and when i
    type in the following
    java -classpath -v c:/Weblogic/classes/boot
    it says "Unable to initial threads : Can not find class java/lang/thread"
    i have set the java classpath in my Classpath Environment Variable.
    Any help ??
    Thanks to all
    Niranjan

  • Problem with Source:Object and Output:File

    Hello dear people,
    i have been found example like FileCompressTool.
    But i have been coded for conversors or decompilers.
    I have got error of File and FileStream
    Look at my picture
    I have been tried because my Adobe AIr Application has not error..
    How do i fix this error? Or i must run Adobe Air as Administrator Right?
    Code for Example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication
              title="Half-Life Map Decompiler"
              xmlns:mx="http://www.adobe.com/2006/mxml"
              layout="absolute"
              showStatusBar="false">
              <mx:Script>
                        <![CDATA[
                                  import com.valve.utils.mapEncorder;
                                  import flash.filesystem.File;
                                  private var bspSrc:File;
                                  private var mapDes:File;
                                  private function ChooseSrc():void
                                            if( bspSrc == null ) {
                                                      bspSrc = new File();
                                            bspSrc.addEventListener(Event.SELECT,  sourceSelectHandler);
                                            bspSrc.browseForOpen("Choose Half-Life 1 Bsp File", [new FileFilter("Half-Life 1 *.bsp", "*.bsp")]);
                                  private function sourceSelectHandler(event:Event):void
                                            bspSrcText.text = bspSrc.nativePath;
                                            StateLog.text = bspSrc.nativePath + " has been selected.";
                                  private function ChooseDes():void
                                            if ( mapDes == null ) {
                                                      mapDes = new File();
                                            mapDes.addEventListener(Event.SELECT, destinationSelectHandler);
                                            mapDes.browseForDirectory("Choose for decompiled Map file!");
                                  private function destinationSelectHandler(event:Event):void
                                            mapDesText.text = mapDes.nativePath;
                                            StateLog.text = mapDes.nativePath + " has been selected.";
                                  private function Decompile():void
                                            var bsp2map:mapEncorder = new mapEncorder();
                                            bsp2map.decompileBsp2map(bspSrc, mapDes);
                                            StateLog.text = "This Map File has been decompiled complety.";
                        ]]>
              </mx:Script>
              <mx:Label left="10" top="10" text="Choose your bsp ( used by Half-Life 1 ):"/>
              <mx:TextInput id="bspSrcText" left="15" right="63" top="36"/>
              <mx:Button right="15" top="36" label="..." click="ChooseSrc()"/>
              <mx:Label left="10" top="70" text="Choose your decompiled map in your directory:"/>
              <mx:TextInput id="mapDesText" left="15" right="63" top="96"/>
              <mx:Button right="15" top="96" label="..." click="ChooseDes()"/>
              <mx:Label left="10" top="130" text="View with decompiled details:"/>
              <mx:Button right="98" top="128" label="Decompile" click="Decompile()"/>
              <mx:Button right="192" top="128" label="Clean log"/>
              <mx:TextArea id="StateLog" left="15" right="15" top="156" bottom="15"/>
              <mx:Button right="15" top="128" width="75" label="About..."/>
    </mx:WindowedApplication>
    And com.valve.utils.mapEncorder.as
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapDes:File):void
                                  if( bspSrc == null || mapDes == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapDes.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = new File;
                                            if(bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray;
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Thank you for help - If you find an error than you can tell me. If it doesn't work than i will try Flash Builder with Running as Admin.
    Regards J. Eckervogt

    I have been found problem because i have been found issus of if (...) with !
    It is okay. I have been forgotten. I am sorry. Thanks.. I have been fixed this..
    It is true
    But is worng code :
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapDes:File):void
                                  if( bspSrc == null || mapDes == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapDes.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = new File;
                                            if(bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray;
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Replace to:
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapFile:File):void
                                  if( bspSrc == null || mapFile == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapFile.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = bspSrc as File;
                                            if(!bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray();
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Now it is working. Thanks!

  • Propblem with Properties class and .ini file !

    Hello I have to read and write in a .ini file. I've got no problem, using a bit of code like this
    Properties iniFile = new Properties();
    String result="exception";
    try{     
    iniFile.load(new FileInputStream(path));
    result = iniFile.getProperty("SrcPath","not found");     
    catch(IOException e){}
    finally{return result;}
    it works correctly, but my problem is that my .ini file contain path like "SrcPath = e:\directory1\directory2"
    And then in my result variable I get : "e:directory1directory2" all the slash are cutted by iniFile.load !!
    And the problem is that I can not put "\\" in my ini file because it is used by other programs that need just one slash !!!!
    Is anybody got an idea to get the right path "e:\directory1\directory2"
    Thanks by advance Eric

    1st question.
    Properties props = new Properties();
         try{
              String uploadprop = "c:/yourinifile.ini";
              File file = new File(uploadprop);
         FileInputStream fis = new FileInputStream(file);
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              int character;
              while((character=fis.read()) != -1){
              baos.write(character);
              if((char)character == '\\')
                   //write one more '\'
                   baos.write(character);
              ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
              baos.close();
              //load bais
              props.load(bais);
              bais.close();
              fis.close();
              System.out.println(props.getProperty("dirname"));
         }catch(Exception e){
    hope this helps
    rishi

  • Problem with saplicense.exe and sharedlibrary files

    Hi All ,
       Recently I have done some changes in NSP for using sharedlibrary concept,  I replaced already existing MaXDB sharedlibrary dll with new downloaded dll files (ie; dbsdbslib). Later I added sharedlibrary dll files for MS SQL Server in the same folder....
    Now my question is ..........
    I am trying to extend the NSP license for 90 days but I am getting a popup with the message " Invalid key". How to resolve this problem..... can any one help me regarding this issue.       
    thanks,
    Vivek . Nellore

    Hi Dileep P
    I have the same problem in EP.
    Have you corrected the problem???
    If yes, please post the solution in the forum.
    Thanx & Regards
    Narinder

  • I use images for presentations. Recently I've noticed a decrease in quality ( sharpness and definition) of pictures copied into Keynote. Same problem with both JPEGs and TIFF files. I've recently upgraded to keynote 09, but with no improvement.

    I use images of paintings for presentations. Over the last 3 months or so I've noticed that I cannt copy images (either JPEg or TIFF) without a reduction in sharpness and definition. Hope someone can help with this problem.

    Figured it out myself! yay!  (only took my entire moring)
    The solution:
    Dont print to PDF!
    SAVE AS COPY, then select Adobe PDF and click SAVE, this will bring up a dialog box with the options you need (including the "High Quality Print" Adobe PDF Preset)
    This was not clear in any of the instructions i read

  • EAR and WAR file deployment

    hi,
    Does anyone have information on how to use the EARASSEMBLER
    tool for creating ear files and war files?????
    thanks

    Hi Cheenai,
    EARASSEMBLER is an Orion tool and it is not supported in the
    current release of Oracle9iAS Containers for J2EE (even though
    it's bundled with the installation).
    You may download Oracle9i JDeveloper Release Candidate as the
    integrated development tool to build, assemble, package and
    deploy any J2EE applications (EJB-JAR, WAR, EAR files etc.):
    http://otn.oracle.com/software/products/jdev/content.html
    You may also download the "ant" command line tool to build and
    package J2EE files:
    http://jakarta.apache.org/ant/

  • Ear and War file difference

    I have created and loaded WAR files for Web Applications on my Tomcat 4.1.27 web container.
    I have also heard about EAR files and was wondering if I have the correct definition. On one of my Google searches it says: EAR files contain JAR files and WAR files.
    I assume an EAR file can contain many JAR and WAR files wrapped into one file (EAR)? Another way of looking at it is if I have for example 3 WAR files, I can put all 3 in an EAR file?

    All the archive files used in Java apps are basically ZIP files with the extension changed.
    JARs are used to package classes.
    WARs are used to package web applications ( the complete directory structure are mandated by J2EE specs ) and may contain JARs
    EARs are used to package a J2EE application ( think web app + EJBs in general ) and may consist of many web modules packaged as WARs.
    Take a look at this too: http://searchwebservices.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_gci837938,00.html
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Reading an external text file in WAR file

    Greetings,
    I have a question. I have an web application that writes a text message and 0's and 1's based on checkboxes. Then I have a JSP that reads this text file and prints the message and enables/disables links based on the 1's and 0's. I don't have any problems with this when testing from localhost, but when I deploy to a server the application isn't reading the file. The text file and WAR file are in the same folder, same directory. I've tried using both relative and absolute paths to read the file, but to no avail. Is there an easy way to read an external file from a WAR file or is there an easier solution. Thanks
    Nick

    You should not try to force your text file to live in the same directory as the WAR file. Instead, you should remove that kind of dependency and instead be using something like System.getProperty("java.io.tmpdir") to use the temporary directory to create and delete these files.
    Edit: I also bet you don't even need to create & read a file here. You could probably store the information in one of the contexts of the web app, such as in a Session. I'll assume you know what that means.
    By creating a file, you are also running the risk of multiple threads (simultaneous users) vying for the same file name, thus walking on each other's data.
    Message was edited by:
    warnerja

  • I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications.  I haven't ever used time machine to back up (my bad I know).  Is there a way to go back to snow leopard with messing up all my files and my set

    I installed Lion and now seem to have problems with Microsoft Silverlight and other plug ins and applications.  I haven't ever used time machine to back up (my bad I know).  Is there a way to go back to snow leopard with messing up all my files and my set?

    Are you using the latest version of Silverkeeper? - v.2.0.2 is stated to be compatible with Snow Leopard.
    http://www.lacie.com/silverkeeper/
    If it's messing things up you could try asking LaCie Support for assistance.

  • Problem occurring when opening and saving files in AI SC5 with Windows 7

    Hi, I ‘am a Graphic Designer and first time working in UAE Windows 7 is basically the only OS here. My PC is:
    HP Elite 7000
    Intel® Core™ i5 CPU 2.67GHz
    4GB RAM
    32-bit
    Now to the problem, not that knowledgeable in IT stuff so here goes:
    1. Problem occurring when opening and saving files in AI SC5 with Windows 7. (You will actually see a “Not Responding” word coming out while opening and saving files, whether small or large files)
    2. Locked layers occasionally are moved accidentally.(Working on multiple layers is normal so we need to lock it specially the once on top. But there are times I still manage to select locked layers)
    3. After typing and locking the text, pressing “V” for the arrow key shortcut is still added to the text that is locked. (After typing I lock the text layer with my mouse and Press “V” to activate the arrow key… yes the arrow key is activated but the text is still typing the actual keyboard pressed)
    I’ve only use the brand new PC and installer for a month now. Not sure if this is compatibility issues or something else I’m not aware of.
    Thanks in advance to people that will reply.
    Cheers!!!

    Well I’m still wondering if it is compatibility issues because I’m also having problem with Photoshop CS5. These 3 are all bought at the same time (PC, Illustrator and Photoshop installers). The problem I’m having in Photoshop is not that too important, every time I Ctrl+O to view files, all PSD are shown in white paper like icons, no preview, and saving as well.
    Or I just purchased a corrupted or pirated installers… Adobe updates are done every time I’m prompted.

  • Help me to convert Java and Jsp Files into WAR File!!!!

    I need someone to help me to convert some java servlet files and jsp files into a WAR file. I need it URGENTLY and I'll be very grateful to anyone who is willing to help me! My email is [email protected] Thanks!!!!

    Are the Oracle JDBC drivers 11g used?
    oracle.jdbc.driver.OracleDriver is not supported in 11g drivers.
    Please replace with:
    oracle.jdbc.OracleDriver

  • Explain about JAR,EAR and WAR files

    Explain :what is JAR,EAR and WAR files and how is useful in creating archive files in java with more example?

    Please look up this type of information on your own.
    http://java.sun.com/reference/glossary/index.html

  • With out changing/opening the fmb file and fmx file Can i know the version

    Hi all,
    I am working with forms in different versions.
    I have number of fmx files with few are complied in 5i, few are in 6i and few are complied in 10g.
    All are in the same directory.
    The problem is because of all are reside in the same directory, i don't know the version of the selected file.With out changing/opening the fmb file and fmx file Can i know the version of the selected fmx file?
    Is there any possiblity to get the version of fmx file with java code?
    Advance thnaks
    Madhava

    Hai prasath..
    as i said we will not change fmb/fmx file directly.
    Is there any chance to write a small java code and get the version.
    adv thanks
    Madhava

Maybe you are looking for