Adapter Deployment & resource bundles

Hello ,
I deployed an adapter on server and while in communication channel monitoring I was not able to get the status of that channel.
The following error was reported there:
Cannot retrieve status for this channel due to: Could not locate resource bundle 'com.xyz.aii.af.abc.adapter.ra.rb_JCAAdapter_ChannelMonitor' for locale en_US: MissingResourceException: Can't find bundle for base name com.lntinfotech.aii.af.primavera.adapter.ra.rb_JCAAdapter_ChannelMonitor, locale en_US
Is any one having idea about this error or about resource bundle?
thanks,
regards,
Fariha

Hello ,
I deployed an adapter on server and while in communication channel monitoring I was not able to get the status of that channel.
The following error was reported there:
Cannot retrieve status for this channel due to: Could not locate resource bundle 'com.xyz.aii.af.abc.adapter.ra.rb_JCAAdapter_ChannelMonitor' for locale en_US: MissingResourceException: Can't find bundle for base name com.lntinfotech.aii.af.primavera.adapter.ra.rb_JCAAdapter_ChannelMonitor, locale en_US
Is any one having idea about this error or about resource bundle?
thanks,
regards,
Fariha

Similar Messages

  • Resource bundle not found in adapter ear file

              Hi,
              I have an ear file which contains a JCA adapter and a resource bundle properties
              file in a jar file. THis jar file is referenced by the rar file. After deploying
              it, the server generates an resource bundle not found exception. The only way
              to make it deploy is to put my adatper jar to the global classpath. This is not
              consistent with EJB deployment. I tested an ear file that contains an EJB jar
              with contains a resource bundle. The server is able to load the resource file
              from the EJB jar as I would expect. Any comments on that? By the way, I tested
              on WLS 6.1 sp1 and sp2. Thanks.
              Siming
              

              I am having the same problem. Is anything going to be done to fix this?
              "Siming Mu" <[email protected]> wrote:
              >
              >Hi,
              >
              >I have an ear file which contains a JCA adapter and a resource bundle
              >properties
              >file in a jar file. THis jar file is referenced by the rar file. After
              >deploying
              >it, the server generates an resource bundle not found exception. The
              >only way
              >to make it deploy is to put my adatper jar to the global classpath. This
              >is not
              >consistent with EJB deployment. I tested an ear file that contains an
              >EJB jar
              >with contains a resource bundle. The server is able to load the resource
              >file
              >from the EJB jar as I would expect. Any comments on that? By the way,
              >I tested
              >on WLS 6.1 sp1 and sp2. Thanks.
              >
              >Siming
              

  • ClassCastException by using deployed resource adapter

    Dear community team,
    I try to create an connection for my web application (war file) running on SAP Web Application Server to access an enterprise information system (Apache JackRabbit) by using JCA and deployed resource adapter. The resource adapter "jackrabbit-jca-1.3.3.rar " is provided Apache Jackrabbit.
    http://jackrabbit.apache.org/downloads.cgi
    I changed some deployment descriptor configuration and deployed it successfully by using Deployment Tools. With the Visual Administrator I also could check the JNDI object and finded an entry in connector container.
    The JNDI lookup worked fine and it returned a object type "JCARepositoryHandle" (I could analyse its type and attributes in debugging modus).If I tried to cast the object "JCARepositoryHandle", I got an ClassCastException.
    Do you have any adoption why I only saw the returned object "JCARepositoryHandle" in debugging modus but it wasnt possible cast and to use it.
    If you need any more information, please let me know.
    Thanks for your support.
    PS: Please have also a look in the attached source an configuration files:
    Java servlet class
    ===================================================================
    Connection connection = null;
          Context initctx = null;
             try {
              //get the initial JNDI context
              Hashtable env = null;
              initctx = new InitialContext();
             // perform JNDI lookup to get the connection factory
             JCARepositoryHandle rep = (JCARepositoryHandle)initctx.lookup("deployedAdapters/jcr/Repository/shareable/jcr/Repository");
    connector-j2ee-engine.xml
    ===================================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE connector-j2ee-engine SYSTEM 'connector-j2ee-engine.dtd'>
    <connector-j2ee-engine>
         <jndi-name>jcr/Repository</jndi-name>
         <pool-params>
              <max-connections-number>10</max-connections-number>
              <max-time-to-wait-connection>120</max-time-to-wait-connection>
              <expiration-control>
                   <connection-lifetime>900</connection-lifetime>
                   <run-cleanup-thread>300</run-cleanup-thread>
              </expiration-control>
         </pool-params>
    </connector-j2ee-engine>
    ra.xml
    ===================================================================
    <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE connector PUBLIC
            '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
            'http://java.sun.com/dtd/connector_1_0.dtd'>
        <connector>
          <display-name>Jackrabbit JCR Adapter</display-name>
          <vendor-name>Apache.org</vendor-name>
          <spec-version>1.0</spec-version>
          <eis-type>JCR Adapter</eis-type>
          <version>1.6</version>
          <license>
            <description>Not required</description>
            <license-required>false</license-required>
          </license>
          <resourceadapter>
            <managedconnectionfactory-class>org.apache.jackrabbit.jca.JCAManagedConnectionFactory</managedconnectionfactory-class>
            <connectionfactory-interface>javax.jcr.Repository</connectionfactory-interface>
            <connectionfactory-impl-class>org.apache.jackrabbit.jca.JCARepositoryHandle</connectionfactory-impl-class>
            <connection-interface>javax.jcr.Session</connection-interface>
            <connection-impl-class>org.apache.jackrabbit.jca.JCASessionHandle</connection-impl-class>
            <transaction-support>XATransaction</transaction-support>
            <config-property>
              <config-property-name>HomeDir</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>C:/temp/repository</config-property-value>
            </config-property>
            <config-property>
              <config-property-name>ConfigFile</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>C:/temp/repository/repository.xml</config-property-value>
            </config-property>
            <reauthentication-support>false</reauthentication-support>     
          </resourceadapter>
        </connector>

    The reason for the ClassCastException was the class loader issue.

  • Resource bundle in shared library?

    Is it possible to create a resource bundle in a shared library so you can use the same resource bundle in different application?
    We are creating different ADF application and each of them should use the same resource bundle.
    I tried creating a new project that only contains the resource bundle and then add this to my jspx page:
    <c:set var="res"
             value="#{adfBundle['general.resources.generalBundle]}"/>When i do this, he can't find any entries. When i change the project properties and configure to use a single bundle for the entire project, this works.
    How can i share a bundle so each application does not need to create or copy/paste the bundle?
    Is it possible to deploy the bundle as a shared library? Even if their is nothing else, not even a single java class?
    Edited by: Yannick.O on Jul 28, 2010 10:45 AM

    Try to create a JAR with the resource file in it (under /META-INF) and add it as a library in your project.
    If it does not work, try to create a faces-config.xml file inside that directory that declares the resource file.
    I think it gets merged at runtime with the config of your application and resource bundle should be available.

  • Flex SDK 4.5 error in compiled resource bundle

    I have just started using Flex SDK 4.5 (I was using 4.1 before).
    I am compiling my resource bundles into SWF files and using them. I am including the required framework bundles also when compiling my resources into SWF.I have copied the generated SWF file to the deployment folder. When I start the application, I am getting the following error even though this bundle is included in my generated SWF file.
    Error: Could not find compiled resource bundle 'core' for locale 'en'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\ dev\hero_private_beta\frameworks\projects\framework\src\mx\resources\R esourceManagerImpl.as:367]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E: \dev\hero_private_beta\frameworks\projects\framework\src\mx\resources\ ResourceManagerImpl.as:287]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\he ro_private_beta\frameworks\projects\framework\src\mx\core\FlexModuleFa ctory.as:631]
        at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\hero_private_beta \frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:601]
        at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\hero_private_bet a\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:129]
    following is the command that I use to compile resource bundles into SWF file:
    C:\"Program Files (x86)"\Adobe\"Adobe Flash Builder Burrito"\sdks\4.5.0\bin\mxmlc -locale=en -source-path=locale/{locale} -include-resource-bundles=core,effects,skins,styles,components,layout ,MyAppResources -output MyAppResources_en.swf

    Any ideas on this will be much appreciated. I have to step back from 4.5 to 4.1 if I do not get past this error. Thanks.

  • resource-bundle tag of portlet.xml

    Hi.
    I'd like to use resource bundle. Therefore I add following tags inside <portlet> tag of portlet.xml and create 'testprofile.properties' file.
    <resource-bundle>testprofile</resource-bundle>
    But when I start tomcat, the error occured like following.
    2004-08-05 12:01:45,437 ERROR [main]
    java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
    at java.util.Properties.load(Properties.java:189)
    at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:96)
    at com.plumtree.portlet.util.PortletInfo.addPropertyBundles(PortletInfo.java:425)
    at com.plumtree.portlet.servlet.PortletServlet.digestPortletXml(PortletServlet.java:527)
    at com.plumtree.portlet.servlet.PortletServlet.initDigester(PortletServlet.java:651)
    at com.plumtree.portlet.servlet.PortletServlet.init(PortletServlet.java:60)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex ...
    So I modified portlet.xml like following and try to start tomcat again.
    <resource-bundle>testprofile.properties</resource-bundle>
    Tomcat can be started successfully.
    But when I display the portlet, error occured.
    java.util.MissingResourceException: Can't find resource for bundle com.plumtree.portlet.util.PortletResourceBundle, key LogLevel at java.util.ResourceBundle.getObject(ResourceBundle.java:314) at java.util.ResourceBundle.getString(ResourceBundle.java:274) at portlet.TWNewMailPortlet.init(TWNewMailPortlet.java:45) at com.plumtree.portlet.servlet.BaseServlet.init(BaseServlet.java:522) at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:136)
    The properties file 'testprofile.properties' is not loaded successfully, maybe.
    Do you know how to specify or use ResouceBundle in using Plumtree JSR168?
    The tips of source code is following
    In Portlet class which extends GenericPortlet
    public void init(PortletConfig config) throws PortletException {  super.init(config);  PortletLogger.init("Test", getPortletContext());  ResourceBundle rb = getResourceBundle(Locale.getDefault());  for (Enumeration e = rb.getKeys(); e.hasMoreElements(); ) {   String str = (String)e.nextElement();   System.out.println(str);  } String level = rb.getString("LogLevel"); PortletLogger.setLevel(level); }

    Are you naming your resource bundles something like:
    1. messages_en.properties (for English)
    2. messages_de.properties (for German)
    and so on.
    Also, do you include these properties files in your final deployment package, because if they're not there then the messages won't be displayed.

  • Resource bundle is not build

    Hi,
    I am creating a application in which i want to read some value from .properties file. But when i build my project (using right click project and select Rebuild) this properties file is not copied in the deployed war files in integrated weblogic server . So when running this application it shows error. java.util.MissingResourceException: Can't find bundle for base name
    Can anyone help me out how to include .properties file in build process.???

    Is your resource bundle registered in your project ?
    Go to Project Properties -> Resource Bundle -> Basic Configuration and check if the default Project Bundle name is populated alongwith Resource Bundle type as "Properties Bundle"
    Also another reason might be the following tag might be missing from your jspx/jsff page -
    <c:set var="viewcontrollerBundle"
             value="#{adfBundle['view.ViewControllerBundle']}"/>Edited by: Sudipto Desmukh on May 10, 2012 3:42 PM
    Edited by: Sudipto Desmukh on May 10, 2012 3:45 PM

  • How to share a resource bundle throughout the faces application

    adf faces 11g release 1
    I want to implement the resource bundle as a java class extending the ListResourceBundle . That works fine for the local project.
    I then made one global "resource project" that should be shared in all projects. I tried first deploying the project to a adflib jar file,
    but i found that the resource class was not included ! I then deployed to a ordinary jar file and that works fine.
    My question is : Is that the way to make a shared resource bundle ?
    Regards,
    Jan

    Hi.
    Check following
    http://andrejusb.blogspot.com/2009/12/reusing-resource-bundles-from-different.html

  • Resource bundle not found

    Hi,
    I would like to know where to put resource bundle file (it is, something.properties) to be seen in portal channel and background classes
    more info and workabout
    in my class I use resource bundle class Messages which loads resources from bundle "bundles.messages", (equals to file bundles/messages.properties).
    I copies this under /etc/opt/SUNWps/desktop/classes and restarted amserver
    then I created channe from JSPProvider, which displays one resource from this properties:
    <%=Messages.getString("token")%>, but I get on output:
    <pre>!token!</pre>,
    which means properties was not found.
    I havesame problem with third party .jar library which uses properties files. Even after copied oudsite the jar file (i know this must be done) they are not seen.
    thank you in advance,
    Petr Gasparik

    Thank you, vvlier, your advice helped me to move futher.
    I discovered that resource bundles (.properties files) must be directly in `classes` folder to be managed by Portal Server.
    I've put config.properties in /opt/SUNWps/web-src/WEB-INF/classes, then have run `deploy redeploy` command and in /var/opt/SUNWappserver7/domains/domain1/server1/applications/j2ee-modules/portal_1/WEB-INF/classes has appeared config.properties and config_en.properties, which means deploy somehow managed these files
    But still I was unable to fetch records from this file through my own Messages class
    Because this works from console, I have proof my code is working. Only that portal classloader is somewhat different.
    I've red through manual and found this page: http://docs.sun.com/source/817-5319/ch27.html but it doesn't help me.
    It even looks so that I have to use Portal Resource Bundle class?
    So, summary, I have one question:
    How to work with .properties files (Resource Bundles) in Portal?
    thank you in advance

  • Problem refreshing resource bundle from DB table for BC (JDev 11.1.2.1.0)

    In our ADF 11.1.2.1.0 application we are loading bundles form the database, which is not working as expected.
    The problem is that when we want to refresh the bundle, it doesn't work for values on Model (BC) components. Bundles values stay the same.
    Bundle refresh was implemented by this example
    http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles/
    We then found that if we put f:loadBundle element on the page, the refresh does execute.
    But only for the ViewController, Model bundles do not refresh.
    On top of every page we have <f:loadBundle basename="si.bron.susa.view.util.ArsoVinBundle" var="res"/>
    On every page we also have a button. Click on it should refresh the bundle by calling the following code:
    public void forceBundleRefresh() {
    try {
    //ResourceBundle.clearCache();
    ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader());
    sLog.info("Resourcebundle.clearCache executed succesfully.");
    } catch (Exception e) {
    sLog.info("Resourcebundle.clearCache cannot be used because jdk version is not 1.6 or higher, try old approach");
    System.out.println("Catch bundlov");
    // try old approach
    for (String resourcebundle : bundleNames) {
    for (String contextDimensionValue : contextDimensionValues) {
    String bundleName = resourcebundle + contextDimensionValue;
    System.out.println("Bundle123: "+ bundleName);
    refreshBundle(bundleName);
    } //for
    Executing this code the bundles of ViewController is always refreshed from DB, but bundles of BusinessComponents are refreshed ONLY FIRST TIME after application is deployed on WebLogic. Next attempts after the first one, don't perform refresh.
    I think it should behave same for BC and VC bundles, isn't it?
    If I am wrong please direct me to some example.
    Regards,
    Sašo Celarc

    In our ADF 11.1.2.1.0 application we are loading bundles form the database, which is not working as expected.
    The problem is that when we want to refresh the bundle, it doesn't work for values on Model (BC) components. Bundles values stay the same.
    Bundle refresh was implemented by this example
    http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles/
    We then found that if we put f:loadBundle element on the page, the refresh does execute.
    But only for the ViewController, Model bundles do not refresh.
    On top of every page we have <f:loadBundle basename="si.bron.susa.view.util.ArsoVinBundle" var="res"/>
    On every page we also have a button. Click on it should refresh the bundle by calling the following code:
    public void forceBundleRefresh() {
    try {
    //ResourceBundle.clearCache();
    ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader());
    sLog.info("Resourcebundle.clearCache executed succesfully.");
    } catch (Exception e) {
    sLog.info("Resourcebundle.clearCache cannot be used because jdk version is not 1.6 or higher, try old approach");
    System.out.println("Catch bundlov");
    // try old approach
    for (String resourcebundle : bundleNames) {
    for (String contextDimensionValue : contextDimensionValues) {
    String bundleName = resourcebundle + contextDimensionValue;
    System.out.println("Bundle123: "+ bundleName);
    refreshBundle(bundleName);
    } //for
    Executing this code the bundles of ViewController is always refreshed from DB, but bundles of BusinessComponents are refreshed ONLY FIRST TIME after application is deployed on WebLogic. Next attempts after the first one, don't perform refresh.
    I think it should behave same for BC and VC bundles, isn't it?
    If I am wrong please direct me to some example.
    Regards,
    Sašo Celarc

  • Resource Bundles and Embedded fonts - best practice

    Hello,
    I am in digging into creating a localized app and I would
    like to use embedded fonts.
    Ideally, I would like to have two locales (for example), each
    with a different embedded font and/or unicode range.
    For example, how do I set up my localized app so that EN uses
    Arial (Latin Range), and JP uses Arial Unicode MS with Japanese
    Kanji unicode range ?
    Note that I do know how to embed fonts with different ranges,
    I just don't know how to properly embed them into resource bundles
    and access them easily in style sheets.
    Thanks!
    -Daniel

    Hello!
    This is a very pertinent question, however as many things in life there is no one size fits all here.
    We basically recommend, as best practice, to allocate for each specific context only the estimated needed resources. These values should always come from a previous study on the network patterns/load.
    To accomodate for growth and scalability it is strongly advised to initially keep as many resources reserved as possible and allocate the unused resources as needed. To accomplish this goal, you should created a reserved resource class, as you did already, with a guarantee of 20 to 40 percent of all ACE resources and configure a virtual context solely with the purpose of ensuring that these resources are reserved.
    As you might already know ACE protects resources in use, this means that when decreasing a context's resources, the resources must be unused before then can be reused by other context. Although it is possible to decrease the resource allocations in real time, it typically requires additional overhead to clear any used resources before reducing them.
    Based on the traffic patterns, number of connections, throughput, concurrent SSL connections , etc, for each of the sites you will be deploying you will have a better idea on what might be the estimated needed resources and then assign them to each of the contexts. Thus this is something that greatly depends on customer's network environment.
    Hope this helps to clarify your doubts.

  • Java Property Resource Bundle

    I have an XmlError but the JRC engine cannot find a java resource bundle properties file for that key. I have deployed jrc into jboss. Where can I find the file and where is the best location for it?
    thanks
    Bruce

    Hi CaptainMorgan08,
    Thanks for pointing me in that direction. As I understand that is a complete documentation of the class, but I was unable to find there this "key secutiry.ex" error message.
    The applet runs fine when I launch it on my desktop XP, but when I upload it to my Linux server, and access it over the net than it throws this error...
    It seems like this is not a common error...

  • Resource bundle naming issue across platforms

    Sorry, but there's no issue anymore. After a complete restart of the windows server it now accepts lowercase "da".
    We're using resource bundles to internationalize our app for English and Danish users. The default resource bundle is named "ViewControllerBundle" and the Danish bundle is named "ViewControllerBundle_DA" (on windows at least).
    Our problem occurs, when we deploy the application on different platforms. At the moment we have Weblogic 10.3.5 running on Linux and on Windows. Our development environment (JDeveloper 11.1.2) is running on Windows.
    When we deploy the application on Weblogic/Linux we need to rename the Danish resource bundle to lowercase "da", like "ViewControllerBundle_da".
    When we deploy on Windows or runs the application from JDeveloper we need to name the Danish resource bundle with uppercase "DA", like "ViewControllerBundle_DA".
    If we don't rename the bundles we're not able to display danish labels etc.
    I would like to know, whether we are naming the bundle the right way or whether it is possible to avoid this manual renaming before deploy. We would like to use the same EAR file for all the servers, if possible.
    From faces-config:
    <locale-config>
    <default-locale>da_DK</default-locale>
    <supported-locale>da_DK</supported-locale>
    <supported-locale>en_GB</supported-locale>
    </locale-config>
    Edited by: wmjaboj on 2011-08-30 02:45

    b) In some parts on our website, we need to show data, depending on an attribute in a user's profile. So, for instance, if the user is not an administrator, the address shouldn't be shown when his profile is shown to a regular user. Is there an elegant way to solve this? I'm a Struts programmer (first JSF project) and normally you do <c:if test="${}">, but that's not possible in JSF :-).You can certainly use JSTL in JSF. You need at least JSF 1.2 at a JSP 2.1 environment and JSTL 1.2. Google for "unified EL" in Sun.com. But if you want to use a JSF-only solution, then make use of the 'rendered' attribute which is supported by every JSF HTML component and a few JSF core components. It accepts a boolean expression and when it evaluates to true, then the component will be rendered in the view.
    E.g.<h:panelGroup rendered="#{user.admin}">
        <h:outputText value="I am an admin." />
    </h:panelGroup>where the User bean look likepublic class User {
        public boolean isAdmin() {
            return admin;
    }Here are some more EL examples which you can use in the 'rendered' attribute:<h:someComponent rendered="#{myBean.booleanValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue}" />
    <h:someComponent rendered="#{myBean.intValue > 10}" />
    <h:someComponent rendered="#{myBean.objectValue == null}" />
    <h:someComponent rendered="#{myBean.stringValue != 'someValue'}" />
    <h:someComponent rendered="#{!empty myBean.collectionValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue && myBean.intValue != 0}" />
    <h:someComponent rendered="#{myBean.stringValue == 'oneValue' || myBean.stringValue == 'anotherValue'}" />

  • KM Reports : Resource Bundle Not Found Exception!!

    Hello all,
    I am having some trouble in getting the sample reports working. I got the sources from this article :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c739e546-0701-0010-53a9-a370e39a5a20
    It is a simple report. I am able to deploy it on the KM, but when i try to start the report, it throws an exception : "Resource Bundle Not Found".
    The same is the case with another sample report : access statistics report.
    Did anybody else face the same issue? Or if anybody knows a solution to this problem, I would greatly appreciate a response.
    thanks
    -Ajit

    Hi Ajit,
    welcome to SCN!
    You might want to check the defaultTrace to find out more about the error. A bundle file for translation can be included either directly in the report as  shown in slides 23-25 in this presentation: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0fe534f-14f2-2a10-5ba8-fb6b122f430f
    Or you they could be referenced by a meta data extension of a property that is included in the report.
    Hope this helps,
    Robert

  • Resource bundle in the task definition

    Hi all,
    I'm trying to assign my own resource bundle to a human task definition like specified in the developer doc (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/workflow.htm#BABDFDHC).
    The documentation is not clear at all on what exactly we have to provide on this mask:
    - a .properties files?
    - a class name ?
    If somebody knows how to do it, could you please give me a hint?
    Thank you very much!
    Nicolas

    (sorry for the long post)
    I did the following test:
    1) I ve implemented 2 classes extending java.util.ListResourceBundle:
    package com.imtf.bpm.resources;
    import java.util.ListResourceBundle;
    public class MyResourceBundle extends ListResourceBundle {
    public MyResourceBundle() {
    protected Object[][] getContents() {
    return contents;
    static final Object[][] contents =
    {"APPROVE","Approve"},
    {"REJECT","Reject"},
    and the french corresponding class:
    package com.imtf.bpm.resources;
    import java.util.ListResourceBundle;
    public class MyResourceBundle_fr_CH extends ListResourceBundle {
    public MyResourceBundle_fr_CH() {
    protected Object[][] getContents() {
    return contents;
    static final Object[][] contents =
    {"APPROVE","Approver"},
    {"REJECT","Rejeter"},
    2) Added "com.imtf.bpm.resources.MyResourceBundle" in Task Definition -> Advenced Settings -> Configure resources -> Resource Name
    3) I've put my 2 Resources class in the $BPEL_HOME/system/classes to be available by the server at runtime (more precisely, according to my package name, it's $BPEL_HOME/system/classes/com/imtf/bpm/resources/)
    4) Deployed the workflow, and initiated it
    5) Checked the result in the Oracle Worklistapp, but after login an exception occurs on the server console:
    07/10/30 14:08:46 java.util.MissingResourceException: Can't find bundle for base name com.imtf.bpm.resources.MyResourceBundle, locale fr_CH
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataCache.getResourceBundle(TaskMetadataCache.java:555)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataCache.getResourceBundle(TaskMetadataCache.java:469)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getResourceBundle(TaskMetadataService.java:574)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getOutcomes(TaskMetadataService.java:348)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.getTaskCustomActions(VerificationService.java:1535)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.addPermissibleTaskActions(VerificationService.java:995)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.addOptionalInformation(TaskQueryService.java:1013)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.addDetailsOptionalInformation(TaskQueryService.java:1042)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.getTaskDetailsById(TaskQueryService.java:453)
    at worklistapp.servlets.TaskDetails.handleRequest(TaskDetails.java:87)
    at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    It seems that my classes are not seen by the classLoader...but strangely it's in the classpath...
    could someone help me ?
    thanks!
    Nicolas

Maybe you are looking for