Building EJB with properties file

I have a EJB project with a properties file in BEA Weblogic Workshop. After building
the project, the properties file is not included in the resulting JAR file. As
a result, the resource bundle cannot get the property file and an exception is
thrown. Is there any method to solve this problem? Thanks.

I had similar problem. We were using ANT so all I did was to copy all the properties
file to each
ejbJar files and war files as well.
copy the properties file into the top level dir of your ejb jar file. If you do
jar tvf adsfEJB.jar you will see :
weblogic-ejb-jar.xml in meta-inf
wjb-jar.xml in meta-inf
Mainifest.mf in meta-inf
ad.java in com/.../.../....
xxx.java in com/../...
abc.properties in . (at the top level of the jar file)
"Neville" <[email protected]> wrote:
>
I have a EJB project with a properties file in BEA Weblogic Workshop.
After building
the project, the properties file is not included in the resulting JAR
file. As
a result, the resource bundle cannot get the property file and an exception
is
thrown. Is there any method to solve this problem? Thanks.

Similar Messages

  • A problem happened when building dimensions with Rule File

    Hi All,
    I was trying to build dimensions with the rule file. But it showed the error 1030100, which means "cannot open file".
    I can load data with a data source (.txt). Thus, I assumed that it's a problem to open a rule file.
    I don't think it's the problem about the rule files I wrote since I cannot even build dimensions with rule files in the Sample/Basic database.
    Anyone knows how to solve the problem? Thanks for the help.
    Best Regards,
    Anderson

    854285 wrote:
    Hi Prebhas,
    Here are the error messages:
    Object [Basic] is locked by user [admin]
    Building Dimensions Elapsed Time: [0.016] seconds
    Cannot open file: [E:\Hyperion\products\Essbase\eas\Client\dataload.err]
    Unexpected Essbase error 1030100
    Object [Basic] is unlocked by user [admin]
    p.s. Even I re-install my system is English, the word "Client" is shown in Chinese. Is it possible this is the reason? If so, how I change the folder?
    After I saw this message, I checked the folder and there is no such file. I tried to created one, but it disappear after I tried to build dimensions.
    Best Regards,
    Anderson
    Edited by: 854285 on 2011/4/25 上午 3:27HI,
    E:\Hyperion\products\Essbase\eas\Client\dataload.err
    This path is referred to error message .... it will show the errors in that file...
    and one more thing...
    while adding data source to rule file it will ask you provide a path for the error message...there you can see this path...
    Just check dataload.err file after running the rule file...
    have you associated the out line to the rule file ???
    is that rule file validate fine?
    if not associate it and try...
    Regards,
    Prabhas
    Edited by: P on Apr 25, 2011 4:43 PM

  • 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
              

  • Trouble with properties file (setMnemonic())

    I am trying to internationalize my code and I haven't had much trouble except with my JMenuBar. How do you use the setMnemonic(); method correctly so that it loads from the properties file? This is what I have:
            JMB = new JMenuBar();
            menuFile = new JMenu(props.getProperty("mystuff.file"));The following will not work.
            menuFile.setMnemonic(props.getProperty("mystuff.F"));

    it expects a character,Did you read the API. It says:
    This method is now obsolete, please use setMnemonic(int) to set the mnemonic for a button.
    but I don't know how to do the syntax to make it a character from the properties file What Object do you get from the Properties file?

  • Classpath problem with properties file in jar

    Hi,
    I am seeing a classpath error for my setup, as follows...
    A defaultFieldIDs.properties exists with numerous entries:
    projectID=10630
    issueTypeID=80
    closedStatusID=6My Spring applicationContext.xml file contains the following:
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
              <property name="locations">
                   <list>
                         <value>classpath:sqlScripts.properties</value>
                         <value>classpath:defaultFieldIDs.properties</value>
                    </list>
              </property>
              <property name="ignoreUnresolvablePlaceholders" value="false"/>
         </bean>     
    <util:map id="defaultQueryParameters">
              <entry key="projectID" value="${projectID}"/>
              <entry key="issueTypeID" value="${issueTypeID}"/>
              <entry key="closedStatusID" value="${closedStatusID}"/>
              <entry key="statusFieldName" value="${statusFieldName}"/>
              <entry key="numberOfExpenseLinesFieldID" value="${numberOfExpenseLinesFieldID}"/>
         </util:map>My compiled jar contains the above properties directory in its root directory, and is placed in the lib directory of the application
    However, when I start my application I get the following error:
    Invalid bean definition with name 'defaultQueryParameters' defined in null: Could not resolve placeholder 'projectID'
    What is going wrong here?

    Then presumably that jar file isn't in the classpath for your application. Perhaps just dropping it into the lib directory isn't sufficient.
    You didn't say anything about what kind of application it is. For web applications, all jars in the WEB-INF/lib directory are in the classpath. But you didn't say this was a web application and you didn't say you put it in the WEB-INF/lib directory. So if you don't care to put sufficient information into your posts, I recommend you read up on the rules for whatever type of application you have, in particular the rules for how to set its classpath.

  • Photoshop CS5 building Histograms with every file change

    I am working in Photoshop CS5 on a MacPro with Snow Leopard, 10.6.4. I have a file that is a little over a gigabyte open. Every time I make any changes to the file (i.e. select a different layers, grab the text tool, etc.) a menu pops up with a progress bar and says it is building the histgrams. This process happens with EVERY move. As you can imagine, this has slowed my productivity down to a crawl. Can I do anything to make it stop rebuilding the histograms at every step?

    Adobe Photoshop Version: 12.0.3 (12.0.3x20101211 [20101211.r.1222 2010/12/11:02:00:00 cutoff; r branch]) x32
    Operating System: Windows 7 64-bit
    Version: 6.1
    System architecture: Intel CPU Family:6, Model:12, Stepping:2 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
    Physical processor count: 16
    Processor speed: 2399 MHz
    Built-in memory: 24516 MB
    Free memory: 18748 MB
    Memory available to Photoshop: 3255 MB
    Memory used by Photoshop: 100 %
    Image tile size: 1028K
    Image cache levels: 2
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Normal
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: False.
    OpenGL Crash File: Not Detected.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: NVIDIA Corporation
    Video Card Renderer: GeForce GTS 250/PCI/SSE2
    Display: 1
    Display Bounds:=  top: 0, left: 0, bottom: 1080, right: 1920
    Video Card Number: 1
    Video Card: NVIDIA GeForce GTS 250
    Driver Version: 8.17.12.6099
    Driver Date: 20101016000000.000000-000
    Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Video Mode: 1920 x 1080 x 4294967296 colors
    Video Card Caption: NVIDIA GeForce GTS 250
    Video Card Memory: 1024 MB
    Serial number: 95478128905099778705
    Application folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\
    Temporary file path: C:\Users\Designer\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      E:\, 556.9G, 544.5G free
      C:\, 556.8G, 289.5G free
    Primary Plug-ins folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       A3DLIBS.dll   A3DLIB Dynamic Link Library   9.2.0.112  
       ACE.dll   ACE 2010/10/04-23:36:11   64.441628   64.441628
       adbeape.dll   Adobe APE 2010/02/23-12:40:58   61.421986   61.421986
       AdobeLinguistic.dll   Adobe Linguisitc Library   5.0.0  
       AdobeOwl.dll   Adobe Owl 2010/03/29-17:44:28   3.0.91   61.425789
       AdobeOwlCanvas.dll   Adobe Owl Canvas   3.0.68   61.2954
       AdobePDFL.dll   PDFL 2010/03/04-10:02:26   61.281542   61.281542
       AdobePIP.dll   Adobe Product Improvement Program   5.0.0.2021  
       AdobeXMP.dll   Adobe XMP Core   5.0   61.134777
       AdobeXMPFiles.dll   Adobe XMP Files   5.0   61.134777
       AdobeXMPScript.dll   Adobe XMP Script   5.0   61.134777
       adobe_caps.dll   Adobe CAPS   3,0,116,0  
       adobe_OOBE_Launcher.dll   Adobe OOBE Launcher   1.0.0.64 (BuildVersion: 1.0; BuildDate: Mon Jan 26 2010 21:49:00)   1.000000
       AFlame.dll   AFlame 2010/02/23-17:27:33   61.421976   61.421976
       AFlamingo.dll   AFlamingo 2010/02/23-17:27:33   61.421978   61.421978
       AGM.dll   AGM 2010/03/10-08:31:04   61.423599   61.423599
       ahclient.dll    AdobeHelp Dynamic Link Library   1,5,0,30  
       aif_core.dll   AIF   2.0   53.422628
       aif_ogl.dll   AIF   2.0   53.422628
       amtlib.dll   AMTLib   3.0.0.64 (BuildVersion: 3.0; BuildDate:  Mon Jan 26 2010 21:49:00)   1.000000
       amtservices.dll   AMTServices   3.0.0.64 (BuildVersion: 3.0; BuildDate:  Mon Jan 26 2010 21:49:00)   1.000000
       ARE.dll   ARE 2010/03/10-08:31:04   61.423599   61.423599
       asneu.dll    AsnEndUser Dynamic Link Library   1, 7, 0, 1  
       AXE8SharedExpat.dll   AXE8SharedExpat 2010/02/23-17:27:33   61.421978   61.421978
       AXEDOMCore.dll   AXEDOMCore 2010/02/23-17:27:33   61.421978   61.421978
       Bib.dll   BIB 2010/03/10-08:31:04   61.423599   61.423599
       BIBUtils.dll   BIBUtils 2010/03/10-08:31:04   61.423599   61.423599
       boost_threads.dll   DVA Product   5.0.0  
       cg.dll   NVIDIA Cg Runtime   2.0.0015  
       cgGL.dll   NVIDIA Cg Runtime   2.0.0015  
       CoolType.dll   CoolType 2010/10/04-23:36:11   64.441628   64.441628
       data_flow.dll   AIF   2.0   53.422628
       dvaadameve.dll   DVA Product   5.0.0  
       dvacore.dll   DVA Product   5.0.0  
       dvaui.dll   DVA Product   5.0.0  
       ExtendScript.dll   ExtendScript 2010/10/19-10:22:12   61.445301   61.445301
       FileInfo.dll   Adobe XMP FileInfo   5.0   61.134777
       icucnv36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       icudt36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       image_flow.dll   AIF   2.0   53.422628
       image_runtime.dll   AIF   2.0   53.422628
       JP2KLib.dll   JP2KLib 2010/02/24-17:43:58   61.131544   61.131544
       libeay32.dll   The OpenSSL Toolkit   0.9.8g  
       libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       LogSession.dll   LogSession   2, 0, 1, 11  
       MPS.dll   MPS 2010/09/20-23:34:37   64.436825   64.436825
       msvcm80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4927  
       msvcm90.dll   Microsoft® Visual Studio® 2008   9.00.30729.4926  
       msvcp71.dll   Microsoft® Visual Studio .NET   7.10.3077.0  
       msvcp80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4927  
       msvcp90.dll   Microsoft® Visual Studio® 2008   9.00.30729.4926  
       msvcr71.dll   Microsoft® Visual Studio .NET   7.10.3052.4  
       msvcr80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4927  
       msvcr90.dll   Microsoft® Visual Studio® 2008   9.00.30729.4926  
       pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS5   CS5  
       Plugin.dll   Adobe Photoshop CS5   CS5  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (32 bit)   2.0.0.746  
       PSArt.dll   Adobe Photoshop CS5   CS5  
       PSViews.dll   Adobe Photoshop CS5   CS5  
       SCCore.dll   ScCore 2010/10/19-10:22:12   61.445301   61.445301
       shfolder.dll   Microsoft(R) Windows (R) 2000 Operating System   5.50.4027.300  
       ssleay32.dll   The OpenSSL Toolkit   0.9.8g  
       tbb.dll   Threading Building Blocks   2, 1, 2009, 0201  
       TfFontMgr.dll   FontMgr   9.3.0.113  
       TfKernel.dll   Kernel   9.3.0.113  
       TFKGEOM.dll   Kernel Geom   9.3.0.113  
       TFUGEOM.dll   Adobe, UGeom©   9.3.0.113  
       updaternotifications.dll   Adobe Updater Notifications Library   1.0.0.68 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   1.0.0.68
       WRServices.dll   WRServices Thursday January 21 2010 12:13:3   Build 0.11423   0.11423
       wu3d.dll   U3D Writer   9.3.0.113  
    Installed plug-ins:
       Accented Edges 12.0
       ADM 3.11x01
       Angled Strokes 12.0
       Average 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Bas Relief 12.0
       BMP 12.0.2
       Camera Raw 6.3
       Chalk & Charcoal 12.0
       Charcoal 12.0
       Chrome 12.0
       Cineon 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Clouds 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Color Halftone 12.0.2
       Colored Pencil 12.0
       CompuServe GIF 12.0.2
       Conté Crayon 12.0
       Craquelure 12.0
       Crop and Straighten Photos 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Crop and Straighten Photos Filter 12.0.2
       Crosshatch 12.0
       Crystallize 12.0.2
       Cutout 12.0
       Dark Strokes 12.0
       De-Interlace 12.0.2
       Difference Clouds 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Diffuse Glow 12.0
       Displace 12.0.2
       Dry Brush 12.0
       Embed Watermark 4.0
       Extrude 12.0.2
       FastCore Routines 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Fibers 12.0.2
       Film Grain 12.0
       Filter Gallery 12.0
       Fresco 12.0
       Glass 12.0
       Glowing Edges 12.0
       Grain 12.0
       Graphic Pen 12.0
       Halftone Pattern 12.0
       HDRMergeUI 12.0
       IFF Format 12.0.2
       Ink Outlines 12.0
       JPEG 2000 2.0
       Lens Blur 12.0
       Lens Correction 12.0.2
       Lens Flare 12.0.2
       Lighting Effects 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Liquify 12.0.1
       Matlab Operation 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Measurement Core 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Mezzotint 12.0.2
       MMXCore Routines 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Mosaic Tiles 12.0
       Multiprocessor Support 12.0.3 (12.0.3x20101211 [20101211.r.1222 2010/12/11:02:00:00 cutoff; r branch])
       Neon Glow 12.0
       Note Paper 12.0
       NTSC Colors 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Ocean Ripple 12.0
       OpenEXR 12.0.2
       Paint Daubs 12.0
       Palette Knife 12.0
       Patchwork 12.0
       Paths to Illustrator 12.0.2
       PCX 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Photocopy 12.0
       Picture Package Filter 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Pinch 12.0.2
       Pixar 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Plaster 12.0
       Plastic Wrap 12.0
       PNG 12.0.2
       Pointillize 12.0.2
       Polar Coordinates 12.0.2
       Portable Bit Map 12.0.3 (12.0.3x20101211 [20101211.r.1222 2010/12/11:02:00:00 cutoff; r branch])
       Poster Edges 12.0
       Radial Blur 12.0.2
       Radiance 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Read Watermark 4.0
       Reticulation 12.0
       Ripple 12.0.2
       Rough Pastels 12.0
       Save for Web & Devices 12.0
       ScriptingSupport 12.0.3
       Send Video Preview to Device 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Shear 12.0.2
       Smart Blur 12.0.2
       Smudge Stick 12.0
       Solarize 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Spatter 12.0
       Spherize 12.0.2
       Sponge 12.0
       Sprayed Strokes 12.0
       Stained Glass 12.0
       Stamp 12.0
       Sumi-e 12.0
       Targa 12.0.2
       TextAuto 10.0
       Texturizer 12.0
       Tiles 12.0.2
       Torn Edges 12.0
       Twirl 12.0.2
       Underpainting 12.0
       Vanishing Point 12.0
       Variations 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Video Preview 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Water Paper 12.0
       Watercolor 12.0
       Wave 12.0.2
       WIA Support 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       Wind 12.0.2
       Wireless Bitmap 12.0 (12.0x20100407 [20100407.r.1103 2010/04/07:14:00:00 cutoff; r branch])
       ZigZag 12.0.2
    Plug-ins that failed to load: NONE
    Flash:
       Flash
       Mini Bridge
       Access CS Live
       CS News and Resources
       Flash
       Kuler
       CS Review
    Installed TWAIN devices: NONE

  • Problem with building EJB with inheritance

    I've created a EJB project in my workshop 8.1.4 application.
    Since all my tables contains a common subset of columns, I'd like to create a superclass for all CMP entity beans which contains the handful of CMP fields and business methods pertaining to them.
    I tried to do it in Workshop by creating a new superclass (BaseEB.java) which extends GenericEntityBean class.
    When building, the script tries to run ejbgen on BaseEB.java, which obviously fails because BaseEB does not contain all the required @ejbgen tags, as it is not meant to be used by itself.
    I think the solution is a matter of making the build script bypass BaseEB.java, but how can that be done?.

    This is my base EJB. There are some @ejbgen tags defined, but it does not have all required ejbgen tags, especially in the class javadoc. The classes that extends from this are expected to define them.
    package occ;
    import java.util.*;
    import weblogic.ejb.GenericEntityBean;
    public abstract class BaseEB extends GenericEntityBean
          * @ejbgen:local-method
         public void touch(String username){
              java.util.Date currDate = new Date();
              setUpdateDateTime(currDate);
              setUpdateUsername(username);
              setUpdateTimeID(new Long(getUpdateTimeID().longValue() + 1));
          * @ejbgen:local-method
         public void setCreateBy(String username){
              java.util.Date curr = new Date();
              setCreateUsername(username);
              setCreateDateTime(curr);
              setUpdateUsername(username);
              setUpdateDateTime(curr);
              setUpdateTimeID(new Long(1));
          * @ejbgen:cmp-field column = "UPDATEDATETIME"
          * @ejbgen:local-method
         public abstract void setUpdateDateTime(Date val);
          * @ejbgen:local-method
         public abstract Date getUpdateDateTime();
          * @ejbgen:cmp-field column = "UPDATEUSERNAME"
          * @ejbgen:local-method
         public abstract void setUpdateUsername(String val);
          * @ejbgen:local-method
         public abstract String getUpdateUsername();
          * @ejbgen:cmp-field column = "CREATEDATETIME"
          * @ejbgen:local-method
         public abstract void setCreateDateTime(Date val);
          * @ejbgen:local-method
         public abstract Date getCreateDateTime();
          * @ejbgen:cmp-field column = "CREATEUSERNAME"
          * @ejbgen:local-method
         public abstract void setCreateUsername(String val);
          * @ejbgen:local-method
         public abstract String getCreateUsername();
          * @ejbgen:cmp-field column = "UPDATETIMEID"
          * @ejbgen:local-method
         public abstract void setUpdateTimeID(Long val);
          * @ejbgen:local-method
         public abstract Long getUpdateTimeID();
    }Errors while building in workshop.
    EJBGen 2.16
    Error: Couldn't determine the type of the EJB 'occ.BaseEB'.  Please make sure that:
      - It is an Enterprise Java Bean
      - Its superclass is in your classpath or that its type is specified
        with an @ejbgen:entity|session|message-driven attribute.
    1 error.
    ERROR: Java returned: 1
    BUILD FAILED
    ERROR: Java returned: 1

  • Build Installer with include file 2009

    Does LV 2009 let you include files, i.e. *.doc or *.txt, in the installer build? I almost certain this was possible in LV 8.*. I don't see where I can add files outside of source code. I can only add directories...
    Solved!
    Go to Solution.

    Oh gee thanks, stupid me. I'll try that....
    Thanks

  • SelectOneMenu with properties file

    hi guys,
    I've got a problem with selectOneMenu.
    Basically setting the itemValue to static text is ok and everything works fine
    <f:selectItem itemLabel="#{others['dr']}" itemValue="Dr" />but if I set the itemValue to a property, I get a NullPointerException
    <f:selectItem itemLabel="#{others['dr']}" itemValue="#{others['dr']}" />here's the exception
    java.lang.NullPointerException
         javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:73)
         javax.faces.component._SelectItemsUtil.matchValue(_SelectItemsUtil.java:47)
         javax.faces.component.UISelectOne.validateValue(UISelectOne.java:56)
         javax.faces.component.UIInput.validate(UIInput.java:354)
         javax.faces.component.UIInput.processValidators(UIInput.java:184)any suggestions?
    cheers
    c

    Looking at the source for MyFaces 1.1.5 it looks as though the select item is reporting both itemLabel and itemValue as null in order to generate the given stack trace. When does the error occur? I.e. during rendering or during submit? It looks as if it is during submit, are you sure the necessary beans are in place to resolve the EL expression upon submit?

  • Application specific properties file

    Hello
              Can any body help me how to build application specific properties file
              so that we can have independent application specific server with its own
              java class path environment.I read the procedure in beasys manuals but i
              could'nt understand clearly.
              Setting application-specific properties
              The weblogic.properties file is only accessible by WebLogic; that is,
              you can't add application-specific properties to the weblogic.properties
              file and expect that they will be read at startup time. However, you can
              set properties for your own application by creating a separate
              properties file. This file can be created and used in two ways:
              Put your application-specific properties file in the same directory as
              your weblogic.properties file. You can then use the following code to
              access the properties:
              Properties props = new Properties();
              String propertiesName = "myapp.properties";
              T3ServicesDef services =
              T3Services.getT3Services();
              String location =
              services.config().getProperty("weblogic.system.home") +
              java.io.File.separator + propertiesName;
              props =
              props.load(new DataInputStream(new FileInputStream(location)));
              Thanks in advance
              Ravi
              

    Hi, Ravi.
              I think I am "WeiG".
              Basically, you can not put your own properties on weblogic.properties. Every
              property in weblogic.properties managed by WLAS is pre-registered in WLAS
              internally. WLAS will print "Fund undefined property ...." messages for the
              un-registered property in weblogic.properties files.
              To use your application-specific properties, the paragraph you read suggests
              you create your own file, put it in $WL_HOME, and use the example code to
              read your own file.
              Hope it helps.
              Cheers - Wei
              Ravi <[email protected]> wrote in message
              news:[email protected]...
              > Hi Purdy
              >
              > Who is WeiG,can you tell me please
              >
              > Thanks
              > Ravi
              >
              > Cameron Purdy wrote:
              >
              > > I know that WeiG has answered this before ... try to ask Wei directly.
              > >
              > > --
              > >
              > > Cameron Purdy
              > > http://www.tangosol.com
              > >
              > > "Ravi" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hello
              > > >
              > > > Can any body help me how to build application specific properties file
              > > > so that we can have independent application specific server with its
              own
              > > > java class path environment.I read the procedure in beasys manuals but
              i
              > > > could'nt understand clearly.
              > > >
              > > > ************************
              > > > Setting application-specific properties
              > > > The weblogic.properties file is only accessible by WebLogic; that is,
              > > > you can't add application-specific properties to the
              weblogic.properties
              > > > file and expect that they will be read at startup time. However, you
              can
              > > > set properties for your own application by creating a separate
              > > > properties file. This file can be created and used in two ways:
              > > >
              > > > Put your application-specific properties file in the same directory as
              > > > your weblogic.properties file. You can then use the following code to
              > > > access the properties:
              > > >
              > > > Properties props = new Properties();
              > > > String propertiesName = "myapp.properties";
              > > >
              > > > T3ServicesDef services =
              > > > T3Services.getT3Services();
              > > > String location =
              > > > services.config().getProperty("weblogic.system.home") +
              > > > java.io.File.separator + propertiesName;
              > > > props =
              > > > props.load(new DataInputStream(new FileInputStream(location)));
              > > >
              > > > ****************************
              > > >
              > > >
              > > >
              > > >
              > > > Thanks in advance
              > > > Ravi
              > > >
              >
              

  • Properties file not deploys the path correctly

    Hello,
    I am deploying a Web dynpro application with properties file.
    One of the properties contains a path that I am later using in my app, something like this:
    PATH =
    myserver
    folder1
    folder2
    The problem is that after deployment I see this property in the config tool with one backwards slash like this:
    PATH = \myserver
    older1\folder2\
    And I need it with
    in my app.
    Even after applying a custom value: "
    myserver
    folder1
    folder2
    " and clearing the cache it doesn't seem to work.
    I know that in java \ states that the char afterwards is special so
    realy means \ so I even tried to deploy this : PATH =
    myserver
    folder1
    folder2
    but got the same behaviour.
    Any idea why is this happening?

    Hi,
    Since you have already tried using four slashes and it didnt work.
    I thot putting space in between will give different result.
    For me, the four slash option shud have worked.
    Ashu

  • EJB project IDE build dos not include properties files

    We have property files also which we want included as part of the build process
    for EJB projects but if we use the IDE build it does not include them. We have
    to therefore export the IDE build and customize it to include *.properties like
    this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 --> <zipfileset dir="${project.local.directory}" includes="*.properties"
    /> </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within an EJB project i.e.
    include properties files also.

    Hey Jamie,
    Currently there is no support to include other .properties files into
    the internal build. There's a build.properties that you get as part of
    an EJB project which you could place your values into and use that as
    your template for your team based development and check that into your
    source control.
    If you'd really like to get gross and hack Workshop a little bit you
    could modify the default EJB project template to use your .properties
    file for every EJB project you create. This would then splat a copy of
    your .properties file into the root of the EJB project.
    To do that you'd go to {your BEAHOME}\workshop\templates and crack open
    the ejb-project.zip template zip file and merge your settings into the
    existing build.properties file. This has the same
    effect as replacing the .properties file after you've created your
    project only it keeps you from having to perform that step each time.
    The downside of this is that each person on your team would then have to
    update that template zip file in their workshop installation. (I'd make
    sure to backup the original template file before performing this
    activity so you can always go back to the original template).
    Hope this helps,
    -Michael
    Jamie wrote:
    We have property files also which we want included as part of the build process
    for EJB projects but if we use the IDE build it does not include them. We have
    to therefore export the IDE build and customize it to include *.properties like
    this
    <zip basedir="${dest.path}" zipfile="${ejb.outputJar}" encoding="UTF8"> <!-- JARs
    filenames are encoded UTF8 --> <zipfileset dir="${project.local.directory}" includes="*.properties"
    /> </zip>
    which causes a problem for us because the exported build file is specific to a
    user's local PC and cannot be used in a team environment.
    How can we have the IDE build include all the files within an EJB project i.e.
    include properties files also.

  • EJB Model Builder: class is not available in the ejb module archive file.

    Hi,
    We are testing
    SAP NetWeaver Developer Studio and
    SAP NetWeaver Application Server, Java(TM) EE 5 Edition.
    We created a sample EJB project(EJB 2.1) with an ejb and an EAR project, we deploy it using SAP NetWeaver Developer Studio.
    But when we see in the log of the server , there is a message like this:
    "EJB Model Builder: Bean class com.saptest.ejb.TestEJBBean is not available in the ejb module archive file., file: TestSAPEJB.jar#TestSAPEJB.jar"
    The jar contains this class, we don't know what is wrong.
    Thanks
    Germán Santana
    Bogota,Colombia

    You should place the file at:
    C:/JRun4/servers/default/default-ear/default-ejb/com/zbeans/Entity1Bean.class
    []s
    Michael

  • Cannot build EJB jar file in NWDS

    hello,
    I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file!
    So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Build menu..
    Is there any pre-requisite to enable the menu?
    I have no idea how I can build jar file..
    Please give me a advice.. Thanks~!

    You might check the weblogic.developer.interest.ejb.tools new group.
    Make sure that the tool doesn't leave this ejbcgen directory around. It
    should delete
    that temp dir. When it doesn't it keeps all the old generated stuff around
    and your changes won't be
    reflected in the new jar.
    Rodrigo Ruiz Aguayo <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have a problem with the EJBDeployerTool. When I want to update
    a class file (for example, because I corrected any problem), the
    deployer tool doesn't update the file correctly. It keeps the
    old version of the class file.
    In order to update a jar I have to copy the newer version in the
    .ejbdeployer/provider-projects directory by hand. Is it a bug?
    Is there any other way to do this? We are wasting too much time
    in this task, instead of programming :_(
    Thanks in advance,
    José Rodrigo Ruiz Aguayo e-mail : [email protected]
    I.T. en Informática de Sistemas webpage : ---------------------
    "Simulation is perfect, whenever we're not talking about reality"

  • How to get File Reference of a properties file from EJB

    Hi,
    I am using Sun App server 7 with Oracle 9i. I am keeping all my SQL statements in a properties file from which I am loading it while making a database operation from Stateless beans. My problem is I am not able to get the reference of the properties file. Here is the code through which I am getting the SQL statements loaded to a cache.
    String sqlFileName = "SQL.properties";
    sqlCache.load(new FileInputStream(sqlFileName));
    From the cache I am sending the SQL statement depending on the key value. But the problem is I have to keep the SQL.properties file on the App Server config directory of the instance where the server.xml file resides. Otherwise it is not able to find the properties file. But I don't want to put the properties file on the config directory of the server instance. Please help how to get the properties file from the packakge. My file is residing inside a package com.company.sql . Botht the properties file and the class accessing the file are residing in the same package. Please help how to get the reference of the file with out putting the file in the config directory.
    Thanks
    Amit Patnaik

    Just wanted to warn you of the hazards if you read a file from EJB
    So please make sure that these hazards will not affect your application. However the solution suggested to use getResourceStream() concurs with ejbSpec
    This snippet is from suns blueprint on ejb
    Why can't EJBs read and write files and directories in the filesystem? And why can't they access file descriptors?
    Enterprise beans aren't allowed to access files primarily because files are not transactional resources. Allowing EJBs to access files or directories in the filesystem, or to use file descriptors, would compromise component distributability, and would be a security hazard.
    Another reason is deployability. The EJB container can choose to place an enterprise bean in any JVM, on any machine in a cluster. Yet the contents of a filesystem are not part of a deployment, and are therefore outside of the EJB container's control. File systems, directories, files, and especially file descriptors tend to be machine-local resources. If an enterprise bean running in a JVM on a particular machine is using or holding an open file descriptor to a file in the filesystem, that enterprise bean cannot easily be moved from one JVM or machine to another, without losing its reference to the file.
    Furthermore, giving EJBs access to the filesystem is a security hazard, since the enterprise bean could potentially read and broadcast the contents of sensitive files, or even upload and overwrite the JVM runtime binary for malicious purposes.
    Files are not an appropriate mechanism for storing business data for use by components, because they tend to be unstructured, are not under the control of the server environment, and typically don't provide distributed transactional access or fine-grained locking. Business data is better managed using a persistence interface such as JDBC, whose implementations usually provide these benefits. Read-only data can, however, be stored in files in a deployment JAR, and accessed with the getResource() or getResourceAsStream() methods of java.lang.Class.
    Hope this info helps!

Maybe you are looking for

  • How to install 64-bit version on 64-bit OS

    I am trying to install Labview 2011 SP1 Evaluation on Windows 7 64-bit OS. When I go to choose the isntallation directory it automaticaly points me to the 32-bit compaibility folder "Program Files (x86)". I believe this isntall the 32-bit version of

  • How to get BT to rewire my line, ongoing faults fo...

    Hi, I am having constant ongoing troubles with my BT landline with horrendous crackling, noise and sounds like someone tuning an old radio on the line, it gets so bad i can no longer hear the other person i am calling! Since moving in to the property

  • Sapscript - language print out

    Hello, we have a customized form for printing out invoices. Now we have a swedish customer, the address country is set to sweden in the customer master. The shipping address text for "P.O.Box" on the form is coming up as "Postfach" which is German. B

  • ABAP Program Termination in Process Chain

    Hello in my process chains i have one abap program and it is getting dump while loading. where can i check whether this program got terminated in this particular chain. as i have many chains i am not able to check in each and every chain. kindly let

  • Ldapbind failed over SSL  (U2 – "one way", "U3-two way") from Oracle DB to

    Hi I am facing the below error when I try ldapbind (database server to OID) over SSL (U2 – "one way", "U3-two way") *** ACTION NAME:() 2010-09-29 07:09:46.691 *** MODULE NAME:(sqlplus@alddbux01 (TNS V1-V3)) 2010-09-29 07:09:46.691 *** SERVICE NAME:(S