Properties file problem

We have stored the properties file in a unix server and here is the path of the file:
/ac/web/abc.xyz.com/props/
I am trying to access the file something like this:
public PropertiesServiceImpl() throws FileNotFoundException,IOException {
          if(LOG.isDebugEnabled()){
               LOG.debug("Retrieving Property File");
          // Create a new Properties object
          Properties p = new Properties();
          try{
               String path = System.getProperty("propDir");
               String strFileName = path + "abc.properties";
               // Create a file stream input object with the file name
               FileInputStream fStream = new FileInputStream(strFileName);
               if (LOG.isDebugEnabled()) {
                    LOG.debug("Loading the properties file ");
               // Load the file stream into property object
               p.load(fStream);
               if (LOG.isDebugEnabled()) {
                    LOG.debug("properties LOADED :"+p);
          }catch(FileNotFoundException fnfex){
               LOG.error("## ************************************" +
                         " ERROR File Not able to find "+fnfex.getMessage()+
               throw fnfex;
          }catch(IOException ioex){
               LOG.error("## ************************************" +
                         "ERROR File Not able to find "+ioex.getMessage()+
               throw ioex;
     }I can't put the file under classpath because the file is store somewhere else. WHen i try to give an absolute path also it gives me error that the file cannot be found. Any clues what can i do?. I tried searching on google but most of the people have their file in the classpath or in their c directory. So that is why i cannot find a solution.
Edited by: lrngjava on Dec 13, 2007 3:53 PM

Thanks i will try tomorrow at work. Actually the application runs fine right now in WSAD but having issues while deploying under tomcat. I will post tomorrow if it works or not.
Edited by: lrngjava on Dec 13, 2007 4:32 PM

Similar Messages

  • OSGi properties file problem

    I'm not sure if this is the right forum to post this question, but this seems to be the closest one fitting.
    I've landed up in the OSGi space only recently, and am starting on to work with the Equinox OSGi container. But I'm stumped [atleast for now]
    as to how is an OSGi bundle going to read from a properties file [or any configuration file for that matter]. Any property file I create for OSGi will be
    added into the bundle [jar file] thus making it real tough for the user to modify its contents. Is there any other way to do this ? I mean a way to provide a configuration/property file
    outside the bundle jar file, but still the bundle being able to read it....
    thanks,

    Thanks i will try tomorrow at work. Actually the application runs fine right now in WSAD but having issues while deploying under tomcat. I will post tomorrow if it works or not.
    Edited by: lrngjava on Dec 13, 2007 4:32 PM

  • I am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g

    i am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g

    hi TimoHahn,
    i am getting following exception in JDeveloper(11g release 2) Studio Edition Version 11.1.2.4.0 but it works perfectly fine in JDeveloper 10.1.2.1.0
    Root cause of ServletException.
    java.lang.NullPointerException
    at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
    at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
    at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    at org.rbi.cefa.master.actionclass.UserAction.execute(UserAction.java:163)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

  • 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
              

  • File I/O problems using a Properties file

    Hi,
    I am having troubles reading in a properties file. The file looks like this:
    aname=apassword:word2
    bname=bpassword:word
    ...etc
    The code I have this far is:
    import java.util.*;
    import java.io.*;
    public class LoginH
    public static void main(String[] args)
    String logon, pswd;
    //String login = null;
    //String password = null;
    //String nick = null;
    int msg = 0;
    System.out.print ("Login: ");
    logon = MyInput.readString();
    System.out.print ("Password: ");
    pswd = MyInput.readString();
    Properties settings = new Properties();
    try
    FileInputStream sf
    = new FileInputStream("LogonH.ini");
    settings.load(sf);
    catch (FileNotFoundException e) {}
    catch (IOException e) {}
    // public void whitespaceChars(58,58)
    StringTokenizer st = new StringTokenizer(settings.getProperty(logon));
    String password = st.nextToken();
    String nick = st.nextToken();
    System.out.print (password + nick);
    ** It works fine if i replace the colon in my properties file with a blank space, However i need to use a colon. I tried to set whitespaceChar to allow this but I can not seem to get it to work. Let me know if you have any ideas. Thanks in advanced.

    Thanks. I just got done doing something to that nature however now my problem is if the key field is not in my properties file my program crashes. I need to print out to the console "sorry" if my user name which is my key is not in the properties file. Here is my code if anyone can help me out:
    import java.util.*;
    import java.io.*;
    public class LoginH
    public static void main(String[] args)
    //******** Declare Variables *********************
    String userlogin;
    String userpaswd;
    String login = null;
    String paswd = null;
    String nicknm = null;
    int match=0;
    String delim = ":";
    //******** Get username and password **************
    System.out.print ("Login: ");
    userlogin = MyInput.readString();
    System.out.print ("Password: ");
    userpaswd = MyInput.readString();
    Properties settings = new Properties();
    try
    FileInputStream sf = new FileInputStream("LogonH.ini");
    settings.load(sf);
    catch (FileNotFoundException e) {}
    catch (IOException e) {}
    StringTokenizer st = new
    StringTokenizer(settings.getProperty(userlogin),delim);
    paswd = st.nextToken();
    nicknm = st.nextToken();
    if(userpaswd.equals(paswd))
    System.out.println("Ok " + nicknm);
    match = 2;
    else
    System.out.println("Sorry " + nicknm);
    match = 1;
    if (match == 0) System.out.println("Sorry");
    }

  • Problem with placing of properties file

    Hi all,
    Iam using a properties file.
    From a jsp, Iam reading the property file.....
    Its giving FileNotFoundException....
    I hope its problem with placing of my properties file...
    I placed the properties file in WEB-INF/classes..folder.....
    But still iam getting the FileNotFoundException...
    PLz tell me where exactly should I place my properties file...
    Thanks ....

    first rule of using a forum: read recent topics !
    http://forum.java.sun.com/thread.jspa?threadID=668488&tstart=0

  • Problem in writing Hindi Font in properties file at run time.!

    hi,
    We are using Language translator for our project.
    We are able to convert the language in hindi and chinese language.
    Im also creating properties file respective to each page in hindi,english and chinese language.
    At run time while CREATING properties file shows the english font appropriate but while
    in hindi it shows problem at run time .
    after WRITING at run time the hindi properties file contains lots on question mark(????????????) intead of hindi font words.
    does any advise me the solution to this problem.?
    Thankx in advance.!
    Johnita

    Hi suraya,
    Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Classpath related problem:properties file/workshopLogCfg.xml

    Hi,
              I'm using wrokshop8.1. I want to use the config xml file workshopLogCfg.xml for log4j
              But when I tried to use DOMConfigurator.configure("workshopLogCfg.xml "),I got java.io.FileNotFoundExcedption,apprently it's not in the classpath---but it's under WL_HOME/common/lib----isn't it a default place the workshop will look into it? How can I specify it in the classpath within workshop(if not use commandline when start the weblogic server) or other ways to do that?
              A similar problem is,I need to read some parameters from a properties file to my program,where to put this properties file?I even tried to jar only this single properties file and put the jar in the Libraries of the Applciation in the workshop,but still get 'file not found' error---how can make it be in the classpath?
              Thanks a lot,
              -Yixin
              

    I'm believe that Java property -Dlog4j.configuration=%WL_HOME%\common\lib\workshopLogCfg.xml is registed to JVM during startup WebLogic.
              I think you should try to get config log4j by following example, it may eliminate the classpath problem.
              is it ans your question.
              Yos L.
              Example1:
              String log4jFileName = System.getProperty("log4j.configuration");
              DOMConfigurator.configure(log4jFileName);
              Example2: Iif you use WorkShop & WebService, in JWS file you can obtain logger by -
              Logger logger = context.getLogger("async.HelloWorldAsync");
              logger.debug("about to start timer");
              // all we do here is start the timer.
              helloDelay.start();
              logger.debug("timer started");
              http://e-docs.bea.com/workshop/docs81/doc/en/workshop/reference/configfiles/con_knexLogCfg_xml_ConfigurationFile.html

  • Character encoding problem with german umlaut in propertie files

    Hi,
    I use propertie files to translate application to multiple languages.
    These files contains german umlaut (e.g.: Wareneingänge).
    If I rebuild my application then this files are copied from ../src/view to ../classes/view.
    The file in ../classes/view contains "Wareneing\ufffdnge" instead of "Wareneingänge" which is displayed as "Wareneing�nge".
    My browser-, project- and application settings are UTF8.
    Previously the settings for project and application where "Windows-1252"
    I have found an workarounds but maybe this is a bug in Jdeveloper TP4.
    Therefore I post this problem. Maybe someone can confirm this behaviour.
    Workaround:
    Replace "Wareneingänge" with "Wareneing\u00e4nge" in the ../src/view file
    (Zaval JRC Editior does this for you :-) )
    regards
    Peter

    Hi,
    I think to remember that the same was required for properties in 10.1.3 as well. Not sure if this is an issue in JDeveloper 11. I'll take anot and have a look though
    Frank

  • Problem storing special characters (\, \n etc.) in the Properties file

    Hello,
    I am trying to store a string that contains special characters like \, \n, which are normally escaped using a \ character. If I try to save the Properties object into a file (using the store() method call), it doesn't store these escape characters as they are. The following is what I am trying to do:
    Properties p = new Properties();
    String samp = "This string will have a \\ and a newline \ncharacter";
    p.setProperty( "sample", samp );
    p.store( new FileOutputStream( "/path/to/my/file" ) );I am trying to achieve the following result:
    sample=This string will have a \ and a newline
    characterBut, instead, I get this:
    sample=This string will have a \\ and a newline \\\ncharacterCan somebody help me with this problem?
    Thanks,

    Thanks for your replies and efforts to help me out. I
    guess there is no solution to my unique problem.
    Basically I need this because one of my values (for a
    key) is a multi-line value. It will probably load
    fine when I use the \ character to delimit multiple
    lines, but when I want to write back the same value
    as multiple lines (using \ and \n characters), I am
    unable to do that. I don't follow, or else if you're saying what I think you are, I disagree.
    Let's say you have a String in your program that contains some \n characters, so if you print that string, say with println, on a Unix terminal, you'll see it on separate lines.
    Now you write that string out to a properties file with store().
    Forget how it looks in the props file. Consider that opaque, a black box.
    Now you use load() to get it back from the properties file. It will be re-created in its original form, so if you print it out on a unix terminal, you'll again see multiple lines. The fact that it's all on one line in the .properties file doesn't affect that.
    Now, if you want it to appear on multiple lines in the props file, then we're back to my previous post--you're breaking the format that load expects.
    At least, that's my understanding of how it works. I might be mistaken, but I think I've tested this very thing in the not-too-distant past.

  • Problems with struts MessageResources.properties files

    hi,
    I am a newbie in using struts. I have the following resources.
    Resources:
    java:j2sdk1.4.X
    struts:1.2.4
    webserver:tomcat 5
    jsp:2.0
    servlets:2.4
    IDE:Ecilipse 3.0 IDE
    Problem: I have copied the struts_blank.war file into tomcat webapps dir. Inside Ecilipse I create a new project and import the struts_blank.war file into the project. I type the URL (http://localhost:8080/proj_struts/Welcome.do)and it works file. However if i create any formbeans or any other java classes, the MessageResources.properties file gets deleted from my classes folder in my dir. What am i doing wrong. Is there any plugin for struts for Ecilipse.
    Questions:
    to be specific, where should/which folder should these .properties files be located. Should they be in classes or src folder under WEBINF?. I have seen the entry in strutsconfig.xml file. All it has is the following element relating to .properties.
    Fixes tried:
    I tried copying the MessageResources.properties file into the sources folder
    but i am not sure how to configure the Eclipse so that it reads the .properties file file from src folder insted of classes. I am definately sure thisis a dumb sol..but i donno wht else to do....
    <!-- ======================================== Message Resources Definitions -->
    <message-resources parameter="MessageResources" />
    It doesnt even say where is it looking(which folder).....
    Could some one throw some light on this issue and guide me thru this ordeal
    Regards
    AK

    Problem: I have copied the struts_blank.war file into
    tomcat webapps dir. Inside Ecilipse I create a new
    project and import the struts_blank.war file into the
    project. I type the URL
    (http://localhost:8080/proj_struts/Welcome.do)and it
    works file. However if i create any formbeans or any
    other java classes, the MessageResources.properties
    file gets deleted from my classes folder in my dir.No idea why this should happen.
    What am i doing wrong. Is there any plugin for struts
    for Ecilipse. http://easystruts.sourceforge.net/
    Questions:
    to be specific, where should/which folder should
    these .properties files be located. Should they be in
    classes or src folder under WEBINF?. I have seen the
    entry in strutsconfig.xml file. All it has is the
    following element relating to .properties.WEB-INF/classes, if nothing is specified :)
    Fixes tried:
    I tried copying the MessageResources.properties file
    into the sources folder
    but i am not sure how to configure the Eclipse so
    that it reads the .properties file file from src
    folder insted of classes. I am definately sure thisis
    a dumb sol..but i donno wht else to do....This solution may not be so dumb after all. The only thing you missed out was that Eclipse doesn't copy any files other than classes. Maybe a custom Ant script would have done such a trick :)
    <!-- ======================================== Message
    Resources Definitions -->
    <message-resources parameter="MessageResources"
    ces" />
    It doesnt even say where is it looking(which
    folder).....As I said earlier, it's looking in WEB-INF/classes

  • Problem in loading a Properties File

    Following is my program which is actually reading a Properties file from a specific location and saving it latter. The program is able to save the Properties file but gives NullPointerException while reading it back.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Map;
    import java.util.Properties;
    import java.util.Set;
    import com.server.config.ConfigurationException;
    import com.server.config.SimpleNetworkConfigurationManager;
    public class Test {
         private static final Properties DEFAULT_CONFIGURATION;
         private static final String CONFIGURATION_FILE = "config/server_config.cfg";
         protected Properties m_config;
         static {
              DEFAULT_CONFIGURATION = new Properties();
              DEFAULT_CONFIGURATION.setProperty("ServerName", "Utility Server");
              DEFAULT_CONFIGURATION.setProperty("Host", "localhost");
              DEFAULT_CONFIGURATION.setProperty("Port", "1100");
         public Test(){
              try {
                   loadConfiguration();
              } catch (ConfigurationException e) {
                   //TODO: Log error message
                   System.out.println("Could not load Configuration; Reason: "+e.getMessage());
                   this.m_config = new Properties();
                   this.m_config.putAll(DEFAULT_CONFIGURATION);
         public Map getAllConfigurationParameters() {
              return m_config;
         public Set getConfigurationKeys() {
              return m_config.keySet();
         public Object getValue(String configurationParameter) {
              return m_config.getProperty(configurationParameter);
         public void loadConfiguration() throws ConfigurationException{
              try {
                   this.m_config.load(new FileInputStream(CONFIGURATION_FILE));
              } catch (FileNotFoundException e) {
                   throw new ConfigurationException(e);
              } catch (IOException e) {
                   throw new ConfigurationException(e);
         public void saveConfiguration() throws ConfigurationException {
              FileOutputStream fos = null;
              try {
                   File file = new File(CONFIGURATION_FILE);
                   file.createNewFile();
                   fos = new FileOutputStream(file);
                   this.m_config.store(fos,"Utility Server Configuration");
              } catch (FileNotFoundException e) {
                   throw new ConfigurationException(e);
              } catch (IOException e) {
                   throw new ConfigurationException(e);
              }finally{
                   if (fos!=null){
                        try {
                             fos.close();
                        } catch (IOException e) {
                             //ignore
                        fos = null;
         public void setConfigurationParameters(Properties configurationParameters) {
              this.m_config = new Properties(configurationParameters);
         public String setConfigurationParameter(String param, String value) {
              return (String)this.m_config.setProperty(param, value);
         public static void main(String[] args) {
              Test configManager = new Test();
              try {
                   configManager.saveConfiguration();
              } catch (ConfigurationException e) {
                   e.printStackTrace();
    }The Exception is as follows:
    Exception in thread "main" java.lang.NullPointerException
         at Test.loadConfiguration(Test.java:52)
         at Test.<init>(Test.java:29)
         at Test.main(Test.java:92)
    Please help me. I am unable to understand why is it happening. May be that I am doing some silly mistake.

    dhirendra_logicon wrote:
    The Exception is as follows:
    Exception in thread "main" java.lang.NullPointerException
         at Test.loadConfiguration(Test.java:52)
         at Test.<init>(Test.java:29)
         at Test.main(Test.java:92)
    Please help me. I am unable to understand why is it happening. May be that I am doing some silly mistake.Well, obviously, m_config is null. You cannot call a method on a null value.

  • ConfigTool Login problem..SecStore.Properties file is missing..!

    hi all,
    I am unable to open Configtool since the SecStore.Properties file is missing which is supposed to be available in /sapmnt/<SID>/global/security/data/SecStore.properties..
    Below is the error being thrown while starting configtool.sh...
    Error while loading the securestore..
    Msg: File"/sapmnt/<SID>/global/security/data/SecStore.properties" does not exist although it should
    The OS is Solaris 10..How can i resolve this issue..Can i just copy it from some of colleague or just create it with the necessary parameter ( if yes,what is the procedure to create such file )
    Your valuable answers will be appreciated and rewared.
    Please help..
    Thanks!
    Addy

    Hi,
    I am a new user having super admin role.Ours is EP 7.0  Standalone JAVA with LDAP.
    Actually, the file SecStore.properties is not been created or not been used for my user.
    when i try to start configtool with my own UID/PW  i get this error.
    My question here is..Am i supposed to use Administrator (since, its standslone JAVA ) or the <sid>adm as per everyone's suggestion.
    I guess i can use both Administrator and <sid>adm for configtool since both needs master password to login. but, why not my UID/PW which has Super admin role..??!!
    Appreciate your time discussing on this.
    Addy

  • Error reading properties file upon deployment

    hi. i'm still relatively new with regards to the Java programming language. in any case... i am developing a simple project wherein the application has to make a database connection to a server. the application is finished already however.. i am having problems deploying it.
    my project has a "resources" package containing the file "config.properties" which contains various information (connection details among others). correct me if im doing something wrong, but in deploying in, i copied the "dist" folder of my compiled code and then tried to run the java exe independently which resulted in an error. i already tried copying the "config.properties" file to the dist folder and even creating a "resources\config.properties" file but it still results in an error. could you please help me figure out how to deploy the application with the properties file. the code i used in referencing my .properties file is as follows:
    Properties configFile = new Properties();
                configFile.load(this.getClass().getClassLoader().getResourceAsStream("Resources\\config.properties"));
                String username = configFile.getProperty("username");
                String password = configFile.getProperty("password");
                String url = configFile.getProperty("url");
                String dbtype = configFile.getProperty("dbtype");
                Class.forName(dbtype);
                conn = DriverManager.getConnection(url, username, password); thanks in advance. ^^

    thank for the help mangst. i guess the IO approach is also applicable ^^; i changed my code to:
    configFile.load( new FileInputStream( ".\\resources\\config.properties" ) );but i had a little trouble in debugging it since it starts the file search from the main project directory. however it works fine upon deployment. ^^; thanks again.
    Edited by: xnofate on Sep 23, 2008 6:21 PM

  • JRE7Update25 Deployment Properties File Not Working And Cant Disable Next Gen Plugin

    Good Day
    Our organisation needs to deploy JRE7U25 to over 4000 workstations. Our desktops are running the following Windows and IE combinations:
    WinXP 32 Bit/IE7
    WinXP 32 Bit/IE8
    Win7 32 Bit/IE8
    Win7 32 Bit/IE9
    Win7 64 Bit/IE8
    Win7 64 Bit/IE8
    We use the 32bit JRE installer across all environments and all IE browsers use 32Bit IE. On all of our environments the Deployment.properties and config files no longer work due to what appears to be a bug in the JRE7U25 installer. Our deployment files are as follows:
    Deployment.config
    deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
    deployment.system.config.mandatory=true
    Deployment.properties
    deployment.security.level=MEDIUM
    deployment.security.level.locked=
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    deployment.security.mixcode=HIDE_RUN
    deployment.security.mixcode.locked=
    deployment.console.startup.mode=HIDE
    deployment.console.startup.mode.locked=
    Both files are being copied to the following location:
    C:\Windows\Sun\Java\Deployment
    After the installer runs and deployment files are copied to the workstation the deployment.properties and config files look like this:
    Deployment.config
    deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
    deployment.system.config.mandatory=true
    Deployment.properties
    #System Deployment Properties
    #Mon Jul 01 12:29:20 CAT 2013
    deployment.security.level=MEDIUM
    I have tried changing the deployment.config file as follows in an attempt to fix this to no avail:
    1. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=true
    2. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=false
    3. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=true
    4. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=false
    5. deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    None of the above mentioned works. So all our required settings in the deployment.properties file are being overwritten when opening the Java console? Our other major problem is that Changing the registry key to 0 in order to disable the next generation plugin does not disable the next generation plugin in Jre at the usual location as it worked for us machine wide (across multiple profiles for JRE6U29):
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\10.25.2]
    "UseNewJavaPlugin"=dword:00000000
    ^^I have observed on a fresh install of JRE7U25 that the above mentioned registry key no longer exists in this version so a computer wide disablement of this option is no longer possible via the registry.
    On our 32Bit and 64bit machines running the 32 bit JRE 7U25 client when we disable the next generation plugin it keeps enabling itself again. Even when we run the javacpl.exe to run as administrator by changing the compatibility settings and disabling the next generation plugin it enables itself again. This is a huge problem for us because our company Oracle web based applications need this plugin to be disabled in order to run the apps properly.
    These are major obstacles for our deployment as we desperately require assistance or any advice in addressing these issues as there appear to be numerous bugs with the JRE7U25 release. Thank you in advance.
    Update 7 July 2013:
    I have observed that if you have the following options in your Deployment.config file it doesn't allow our java webstart apps which use jnlp extensions to run.
    1. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=true
    2. deployment.system.config=C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
        deployment.system.config.mandatory=false
    3. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=true
    4. deployment.system.config=C:\WINDOWS\Sun\Java\Deployment\deployment.properties
        deployment.system.config.mandatory=false
    The jnlp file association is also broken on Windows XP workstations with JRE7U25. We are having to manually associate the .jnlp file extension with javaws.exe on workstation for Web start apps or else users cannot lauch JRE whn clicking on .jnlp links.
    The only Deployment.config syntax which allows our Webstart applications to run is as follows:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    What a mess!

    I don't have an answer to the problem, but I am having problems with the system level deployment.properties file and IE9 on Windows 7 32/64bit.
    Starting with version 13, the IE plugin seems to igonore the system level deployment.properties file in favor of the user level deployment.properties file. When I open the Java Control Panel, the settings are correct per the system deployment.properties file. Currently to get the Java Plugin to work reliably in IE9 I have to set the following:
    _JAVA_OPTIONS = -Djava.net.preferIPv4Stack=true
    Disable caching
    Set the proxy to Direct Connection.
    If I set the _JAVA_OPTIONS as an environment variable and the other two in the system deployment.properties file, Firefox works fine, but IE wont load either of the Java tests. If I removed the system deployment.properties files and configure the user deployment.properties file, both IE and Firefox work fine.
    I find it interesting that if I set the configuration through the control panel, then apply the system deployment.propteries file, the user deployment.properties file reverts to defaults when the system file is removed.

Maybe you are looking for