How to configure the property file

Is this the correct way of configuring the property file in web.xml.
<servlet>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>com.test.prod.pds.Controller</servlet-class>
<init-param>
<param-name>LOGINID</param-name>
<param-value>C:\bea\user_projects\domains\mydomain\applications\TestWebApp\WEB-INF\classes\loginid.properties</param-value>
<description>Pds Group properties file</description>
</init-param>
</servlet>
IT is giving an error "javax.servlet.ServletException: loginid.properties (The system cannot find the file specified)"

Hi,
Place that properties file in the application classpath Then it will work fine without any problems.
Go through the follwing links,In that you will get usefull information on this.
http://jtidy.sourceforge.net/multiproject/jtidyservlet/configuration.html
http://www.utdallas.edu/~baughman/velocity4.html
Regards
Anilkumar kari

Similar Messages

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

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

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

  • Can AnyOne Please Tellme How to configure the HTML files

    This is very Urgent.
    1.I am using the WLS7.0 sp1 .I need to configure theHTML files which are in a
    different path how can I map them to the present DefaultWebAPP directory.
    2. How can I get rid of the port number when I am fully using in production mode.
    I have been posting this query since long but in vain. Please guide me

    1. I got rid of port number with link provided by the karthik.
    2.How can I create a link .The link appends to the defaultwebapp directory
    and checks from their .I need to know how to configure the
    HTML files which are not in the DefaultWebApp.But completely in directory.
    Any suggestions !!!!!!!
    Shehzad <[email protected]> wrote:
    1. You can create a link to that directory
    2. In order to get rid of port number, either boot weblogic at default
    port 80, or use Apache or Iplanet webserver, and use Weblogic plugin.
    That way all the traffic comming in from http will comein at port 80
    to the webserver, and would then be forwarded to Weblogic at whatever
    port it is booted.
    This is very Urgent.
    1.I am using the WLS7.0 sp1 .I need to configure theHTML files whichare in a
    different path how can I map them to the present DefaultWebAPP directory.
    2. How can I get rid of the port number when I am fully using in productionmode.
    I have been posting this query since long but in vain. Please guideme

  • How to configure the .ini file with applet

    hai
    i am using native methods in that methods they use some ip addresses. when i am using that native methods in applet run the applet using appletviewer tool it works fine but when i am open that applet using html page browser not configure that .ini file data .how to configure that .ini file with browser

    Hi Jay SenSharma,
    Thanks for your immediate response.
    I saw your URL links, But in your link give the recursive deployment using wlst. But my question is how to configure the oracle weblogic library files into Admin server & Managed Servers by using the wls.jar file through wlst script to create the new domain.
    But if create the new domain by using GUI mode then we manually give the admin server port number & managed servers port number and name.
    By default the library files are configured with the Admin server in GUI mode. But the Managed server the Library files are not configured with the Managed servers. Then we manually select all the library files to the corresponding managed servers. Then only the applications are deployed into the corresponding managed server.
    Regards,
    S.vinoth Babu

  • How to configure the .ts files' path in the m3u8

    Now I have a fms server running, but the m3u8 file is not use the correct url for the ts files in the playlist.
    just like this:
    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=6334,BANDWIDTH=100000
    liveevent/livestream1.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=6334,BANDWIDTH=200000
    liveevent/livestream2.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=6334,BANDWIDTH=350000
    liveevent/livestream3.m3u8
    How to configure it to like this?
    http://xxx.xx.xx.xxx./liveevent/livestream1.m3u8

    I just want to have a live channel for HLS.
    I use the virtual camera to play a viedo. And use the FMLE to publish the viedo.
    And I create a m3u8 file named liveevent.m3u8.
    just like this:
    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=150000
    http://192.168.3.109/hls-live/livepkgr/events/_definst_/liveevent/livestream1.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500000
    http://192.168.3.109/hls-live/livepkgr/events/_definst_/liveevent/livestream2.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000
    http://192.168.3.109/hls-live/livepkgr/events/_definst_/liveevent/livestream3.m3u8
    and put it on the webroot.
    now if I play this file, the client will download all the livestream%i.m3u8,
    The file livestream%i.m3u8 was created by FMS automaticlly.
    but it use the relative path for the ts files.
    I need the absolute path.
    that's all.
    thanks.

  • How to configure the flat file in 11G

    Hi,
    I am using OWB 11.1.0.6.0.
    For a map in OWB 10G having a source a flat file. I used to go and right click on the map--> then click Configure-->then Under "Source Data File" type the file name-->then give the location details and the exact flat file name with extention.
    IN when i do the same thing the node "Source Data File" is missing?? my question is do we need to configute the data file name and location details some were else in 11.1.0.6.0.
    The ERROR I get is
    "VLD-2398: No data file specified. Generated code will use the sampled file name and the file location 'FILE_LOCATION1'.
    To specify a data file configure the mapping, add a node under 'Source Data File', type in the file name and select the file location."

    There should be a node named 'Sql Loader Data Files' in the map's configuration tree (assuming it is a SQLLoader map), if you right click on that node you can create any number of data files, and define the name and location of the file. When you said 10g, were you talking about 10.1?
    Cheers
    David

  • How will read the property file on dynamically?

    hi,
    I developed 2 java files...in both the files i am reading the some content from .property file(Notes.properties)....
    I created the jar file call Aix.jar using the following command.
    jar -cvf Aix.jar *.class(without specifying the notes.properties file)...
    then i executed the java file using the folowing command
    java -cp Notes.jar;Aix.jar NotesToolTest
    now i am getting following exception:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.util.MissingResourceException: Can't find bundle for base name Notes, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at NotesToolTest.<clinit>(NotesToolTest.java:28)
    I got the problem why this happening...because notes.properties is not included in jar file...that's why the above exception is coming.
    But my problem is can i run the java file that will take .prooperties file dynamically(if .property is available on the current directory)...
    Thanks in advance,,,,
    Regards,
    Sankar

    because notes.properties is not included in jar file..Wrong. It is simply not available in the classpath.
    The solution is either putting the properties file in the classpath of JVM used, or adding the system path to the propertiesfile to the classpath of the JAR.

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

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

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

  • How to configure the jdeveloper 11 with .dbc files?

    hi, all
    i am a new bie here. 4 jdeveloper 10, i can configure the .dbc files at project setting, while 4 jdeveloper 11, it's totally different. i can't find any place to configure it. How to configure the .dbc in jdeveloper 11?
    Regards,
    Chelsea

    You cant use jdev 11g for OAF development..
    You need to download the jdeveloper patch from metalink to develope OAF objects.
    Refer this metalink note to find the correct version of jdeveloper that you need to download https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=416708.1
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How do I load property files and images stored in the jar file?

    Hi
    So, if I have a structure like this:
    /com.myfirm.myproject.SomeClass
    /images/
    /properties/
    And I pack this structure into a jar file, how do I then access the images under "/images/" and the property files under "/properties/"? A link to a good tutorial on this would be perfect, or a description/hint/howto :)

    Im having problems even loading direcly from the directory..? I have this structure:
    src (source dir)
    classes (classes dir)
    lang/textRb_en_US.properties (the file I want to load)
    Then I have this code:
    Locale currentLocale = new Locale("en", "US");
    ResourceBundle textRb = ResourceBundle.getBundle("/lang/textRb", currentLocale);But it gives me a "java.util.MissingResourceException: Can't find bundle for base name /lang/textRb, locale en_US". I start my application from within Eclipse, and I have tried to move "lang/textRb_en_US.properties" into the classes dir, but same error.
    Im confused as to there Java looks for ressources, and I need this to work no matter where I put my classes/jar. Could you help me out here?

  • How can we locate the property file and read from it in .js page?

    HI
    I am having an static html page where in the url is hardcoded,so i wanted to read it from a property file and which can be done by using .js files
    i wanted to know how to deal with property files in .js?
    Thankx

    I assume you know that Java and JavaScript only share a name and they are both programming languages but little else.
    You can load JavaScript in Java 6. However for questions on what the JavaScript should do I suggest you try a javascript forum.

  • How to configure the file adaptor so as to send an sample XML message.

    Hi all ,
    I had done the configuration and now i want to test the scenario but i dont now how to do that ?.
    how to configure the file adaptor so as to send an sample XML message to the integration server ?.
    I am totally new to XI.
    please help me out how to do it.
    its an urgent.
    Thanks,
    shuja

    Hi,
    I think you should post your question Process Integration (PI) & SOA Middleware.
    Regards
    Message was edited by:
            Shehryar Khan

  • How to configure Java Properties File location in WLW

    How do we tell Workshop 7.0 where to look for Java properties files (loaded by
    PropertyResouceBundle in code) ?
    Thanks,
    Ray

    Ray,
    The build number indicates that you have not upgraded to Service Pack 2 of
    version 7.0. I will strongly recommend you to do so. That will shield you
    from the issues which were fixed in the 2 service packs.
    Regards,
    Anurag
    "Ray Yan" <[email protected]> wrote in message
    news:[email protected]...
    >
    Raj,
    We are using WebLogic Workshop Build 7.0.1.0.0829.0 on Windows 2000.
    We shut down the WebLogic Server on Solaris 2.6, log off, log back on,startWebLogic
    in production nodebug mode, and re-run jwsCompile on the same source code.The
    error does not occur anymore. Everything seems to be fine now.
    Thanks,
    Ray
    "Raj Alagumalai" <[email protected]> wrote:
    Hello Ray,
    Can you let me know if you are using the GA version of WebLogic Workshop
    or
    if you have the latest Service Pack.
    Thank You,
    Raj Alagumalai
    WebLogic Workshop Support
    "Ray Yan" <[email protected]> wrote in message
    news:[email protected]...
    Anurag:
    Thanks for your response!
    By moving the property files to WEB-INF/classes from WEB-INF, we arealmost there.
    But we have a follow up problem. We use a static initializer to loadthe
    log4j
    property file like this:
    static {
    try {
    ClassLoader cl= (new Log()).getClass().getClassLoader();
    InputStream is = cl.getResourceAsStream(logfile);
    Properties props = new Properties();
    props.load(is);
    PropertyConfigurator.configure(props);
    } catch (Exception e) {
    e.printStackTrace();
    When we run jwsCompile, we keep getting this:
    Compiling: com/****/TestWS.jws
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[weblogic.management.Admin
    may only be used on the Server ]
    at weblogic.management.Admin.getInstance(Admin.java:104)
    at
    weblogic.security.internal.ServerPrincipalValidatorImpl.getSecret(ServerPrin
    cipalValidatorImpl.java:79)
    at
    weblogic.security.internal.ServerPrincipalValidatorImpl.sign(ServerPrincipal
    ValidatorImpl.java:59)
    at
    weblogic.security.service.PrivilegedActions$SignPrincipalAction.run(Privileg
    edActions.java:70)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    weblogic.security.service.SecurityServiceManager.createServerID(SecurityServ
    iceManager.java:1826)
    at
    weblogic.security.service.SecurityServiceManager.getServerID(SecurityService
    Manager.java:1839)
    at
    weblogic.security.service.SecurityServiceManager.sendASToWire(SecurityServic
    eManager.java:538)
    at
    weblogic.security.service.SecurityServiceManager.getCurrentSubjectForWire(Se
    curityServiceManager.java:1737)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:434)
    at
    weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:
    88)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :255)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :230)
    at
    weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown
    Source)
    atweblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
    atweblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
    at javax.naming.InitialContext.lookup(InitialContext.java:345)
    at weblogic.knex.bean.EJBGenerator$1.run(EJBGenerator.java:101)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    atweblogic.knex.bean.EJBGenerator.lookupAdminHome(EJBGenerator.java:84)
    atweblogic.knex.bean.EJBGenerator.ensureAdminHome(EJBGenerator.java:122)
    at weblogic.knex.bean.EJBGenerator$6.run(EJBGenerator.java:660)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:821)
    atweblogic.knex.bean.EJBGenerator.generateJar(EJBGenerator.java:482)
    at
    weblogic.knex.dispatcher.DispJar.generateJar(DispJar.java:401)
    atweblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:695)
    atweblogic.knex.compiler.JwsCompile.compileJws(JwsCompile.java:872)
    at
    weblogic.knex.compiler.JwsCompile.compile(JwsCompile.java:619)
    at weblogic.knex.compiler.JwsCompile.main(JwsCompile.java:109)
    ejbc successful.
    Generating EAR ...
    The EAR was generated and we can even deploy it on Solaris. But whatdoes
    the
    AssertionError mean?
    Thanks,
    Ray
    "Anurag Pareek" <[email protected]> wrote:
    Ray,
    ResourceBundle looks for the properties file in the current thread's
    classpath.
    Since a Workshop webservice's project is nothing but a webapp, the
    properties files can be kept in the WEB-INF/classes directory, which
    is part
    of the webapp classpath.
    You can also use
    Thread.currentThread().getContextClassLoader().getResourceAsStream("MyProp
    s
    properties"); to get access to the properties file.
    Thanks,
    Anurag
    "Ray Yan" <[email protected]> wrote in message
    news:[email protected]...
    How do we tell Workshop 7.0 where to look for Java properties files(loaded by
    PropertyResouceBundle in code) ?
    Thanks,
    Ray

  • ASA 5505 8.4. How to configure the switch to the backup channel to the primary with a delay (ex., 5 min) using the SLA?

    I have ASA 5505 8.4.  How to configure the switch to the backup channel to the primary with a delay (for example 5 min.) using the SLA monitor?
    Or as something else to implement it?
    My configuration for SLA monitor:
    sla monitor 123
     type echo protocol ipIcmpEcho IP_GATEWAY_MAIN interface outside_cifra
     num-packets 3
     timeout 3000
     frequency 10
    sla monitor schedule 123 life forever start-time now
    track 1 rtr 123 reachability

    Hey cadet alain,
    thank you for your answer :-)
    I have deleted all such attempts not working, so a packet-trace will be not very useful conent...
    Here is the LogLine when i try to browse port 80 from outside (80.xxx.xxx.180:80) without VPN connection:
    3
    Nov 21 2011
    18:29:56
    77.xxx.xxx.99
    59068
    80.xxx.xxx.180
    80
    TCP access denied by ACL from 77.xxx.xxx.99/59068 to outside:80.xxx.xxx.180/80
    The attached file is only the show running-config
    Now i can with my AnyConnect Clients, too, but after connection is up, my vpnclients can't surf the web any longer because anyconnect serves as default route on 0.0.0.0 ... that's bad, too
    Actually the AnyConnect and Nat/ACL Problem are my last two open Problems until i setup the second ASA on the right ;-)
    Regards.
    Chris

  • How can you change property files of a EJB at Runtime?

    Hi,
    I have got an ejb and want to change my variables which I stored in property file at Runtime.
    But the property file isn´t in the jar-file of my ejb...
    How can I add it.
    Or How can I change the property file without new compilation.
    Thanks
    Uli

    Hi Uli,
    the previous post is generally correct, but without taking any part in the sensibility of this (there are valid reasons why you would not store the values in a DB) it would be necessary for you to be a bit more specific.
    Is your problem that you can not see the file from your EJB or that you don't know how to change a property file entry in general?
    Cheers,
    Kalle

Maybe you are looking for

  • New to apple but don't know how to transfer from windows to apple

    Just order my Mac mini so I started to think about how will I transfer since I have no cd-drive just a 8mb flash drive and a windows configured external drive so i know how to have an allot of MP3 and pics documents and favorites,e-mail, I know I wil

  • Http tunneling (t3 over http) doesn't work!!  (examples too)

    Hi, I'm trying to get http tunneling (t3 connection over http protocol) to work. I ran some examples included with Weblogic that try establishing that connection (PingTest, HelloApplet, SimpleT3Client), as well as my own test program, and they all gi

  • How to register a desktop app that supports Windows 7

    I want to create a desktop app that uses the OneDrive API. This app will be compatible with Windows 7 as well as 8.1. Do I still have to register it with the Windows Store?  If not, how do I receive a client ID? I don't want to create a "modern" appl

  • Just got a used Macbook Air

    How do I reformat the HD and start fresh?

  • XI content certification - ABAP proxies possible?

    Hi, can we use ABAP proxies in XI content certification ? I mean develop an ABAP proxy in IR that will be generated in ERP and just supply the code for it ? BTW I've tried asking on : Process Integration (PI) & SOA Middleware but with little success