Admin UI for editing environment entries (i.e. env-entry in web.xml)

Hi there,
just wanted to know if Weblogic nowadays features a UI for post-deployment editing of environment entries such as the ones declared via <env-entry> in web.xml ( [http://download.oracle.com/docs/cd/E21764_01/web.1111/e13712/web_xml.htm#autoId30] ). So far, I'm using a deployment plan to re-configure these things at the time of each deployment, which works but which is also probably not the most flexible solution.
Thanks in advance,
Chris

Ah, I was trying to do a lookup from session bean for the env-entry defined in
the web.xml. After reading the J2EE spec, I see this just won't work. env-entries
are only accessible from within the component where they are defined.
Still the error message with "comp.env" instead of the expected "comp/env" is
a bit confusing.
Not much traffic in this newsgroup, is there?
Steve
"Steve Ditlinger" <[email protected]> wrote:
>
>
>
If I create an "env-entry" block for a name (e.g. "MySchemaName") in
my web.xml
file and deploy the web app, I should be able to look up the name from
my webapp
with the line:
<br>
myInitialContext.lookup("java:comp/env/MySchemaName");
<br>
However when I do that I get the error message:
<br>
javax.naming.NameNotFoundException: Unable to resolve 'java:comp.env/MySchemaName'
<br>
Note that the "comp/env" prefix has been changed to "comp.env". This
worked under
WL 6.1. Is this a bug in WL 7's JNDI or a bug in the error message or
both or
something else altogether?
The immediately previous line successfully performs an EJBHome lookup
using the
same Initial Context object. The main difference is that the EJBHome
name is defined
thru the EJB deployment descriptors, not the web.xml.
Thanks,
Steve

Similar Messages

  • How can I use web service call for edit a report with SSRS in Java Struts2 web application

    Hello im new in SSRS technologie and I would like make web service call at my SSRS server. Is sombody can help me ?
    - What API should I import in my project ? I use Maven can I found this API on Maven repository ?
    - I would like have an sample of code which initialize the ReportingService, do the call and process result.
    We use the SQL Server ReportingService 2008 R2 and currently we made HTTP call like this : http://<ssr_server>/ReportServer/Pages/ReportViewer.aspx?%2fSSRS_OMB%2fMyReport&rs:Command=Render&MyParam=<value>
    Regards

    Hi ombinte,
    SQL Server Reporting Services provides access to the full functionality of the report server through the Report Server Web service. Because the Report Server Web service is an XML Web service which uses Simple Object Access Protocol (SOAP) over Hypertext Transfer
    Protocol (HTTP), any SOAP-aware application or development tool can communicate with the SSRS web service.
    There are three primary ways to develop Reporting Services applications based on the Web service, please see:
    Develop applications using Microsoft Visual Studio and the Microsoft .NET Framework SDK.
    Develop applications using the rs utility (RS.exe), the Reporting Services script environment.
    Develop applications using any SOAP-enabled set of development tools.
    For more information about Report Server Web Service, you can refer to the following document:
    http://technet.microsoft.com/en-us/library/ms152787.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Pls help me to find admin tool for latest bi linux version

    Hello,
    Oracle Business Intelligence, v. 11.1.1.5.0
    I installed the latest version of OBIEE of linux version 64 bit on the server.
    Installation went fine.
    Now the only problem is finding Admin tool.
    Could u pls tell me where its sitting.
    I know i Windows it Admintool.exe
    Thanks

    Hi user,
    Firstly you wont have admin tool for linux environment....you need to install the client on windows local machine and access the BI server of linux by setting up a connection.
    So you need to download 64-bit or 32-bit windows one to install http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/biee-111150-393613.html
    Read this document :- http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10539/c5_postinstall.htm#CEGEHEJF
    hope answered your question.
    Cheers,
    KK

  • Env-entry?

    How do you 'configure' a Workshop application?
    The normal way to do this in J2EE is to add environment entries in web.xml,
    ejb-jar.xml or even application.xml.
    In Workshop there is only web.xml. And when deploying as an EAR file, it
    gets packaged in a WAR file, not inside the JAR file of the Web Service. So
    you can't just look up a web.xml environment entry from your jws file.
    =======
    Another question: why is web.xml and weblogic.xml available in Workshop in
    the first place? What can you do with these files? I don't see how they can
    be useful to the developers.
    Since all the 'plumbing' of Web Services is hidden inside Workshop anyway, I
    think they should remain hidden too. Or if they are useful, then I think we
    should be able to see the other deployment descriptors (the WebServices's
    (ejb-jar.xml) and the EAR's (application.xml)).
    Even better, how about some new categories under the project's properties,
    called 'descriptors'. Hide all that XML and show it graphically. Don't allow
    modifying what is the guts of the system, it's error-prone.
    Thanks,
    Emmanuel Proulx

    Thanks for the details, Emmanuel. I'm sure that our Product Management team
    will be interested in your feedback.
    Ian M. Goldstein
    Developer Relations Engineer
    BEA Systems, Inc.
    "Emmanuel Proulx" <[email protected]> wrote in message
    news:[email protected]...
    Ian, group,
    Unfortunately, I'm going to answer your first question with a question
    (since we're in Beta, let's think of this as an opportunity for us tolearn
    from each other): What kinds of "configuration" do you want to do to
    your
    Workshop application? What types of environment entries are youinterested
    in adding to the deployment descriptors?J2EE defines the environment entries as a way to set up an application
    without modifying the code. You just look up the environment entry and you
    get a value that you can use in the code. This modifies the behavior ofyour
    code without having to change it. It's like an OS environment variable.
    Examples:
    - Debug Flag
    - Currency Symbol
    - Location of temp folder
    - Location of a resource (although ther are resource references for that,a
    special kind of environment entry), like JDBC datasource, JMS conn.factory,
    EJB reference (using ejb-refs), etc.
    You can change any of those in the XML file and you don't have torecompile.
    This is very very useful, in particular when switching an application froma
    development to a production box. The debug flag should be turned off, the
    temp folder is different, the datasource should point to the production
    database, etc.
    Currently if you want to configure a Workshop application in this way, you
    have to modify the project and recompile. This can introduce problems when
    deploying to the production server.
    I suggest we add a new category in the project properties (right pane)like
    this:
    + target-namespace
    + schema
    - configuration
    - environment
    debugFlag java.lang.Boolean true
    currency java.lang.Char $
    temp String c:/temp
    - resource references
    databaseDS javax.sql.DataSource Container DS-JNDI-Name
    Shareable
    - EJB references
    EJB1 Session EJB-JNDI-Name EJBHome EJBRemote EJBName
    (ejb-link)
    - EJB local references
    EJB1 Session Local-EJB-JNDI-Name EJBLocalHome EJBLocal
    EJBName (ejb-link)
    These should be saved in application.xml at the time of deployment. The
    references should be available as a choice in the various controls. E.g.for
    the database control, any Datasource reference should appear in thecreation
    dialog and properties.
    NOTE: The above comes from what I saw in Weblogic Builder. But somethingis
    missing from WebLogic Builder: either <resource-ref> or <resource-env-ref>
    is not listed.
    More 0.02$.
    Talk to you soon,
    Emmanuel
    As for your second question, I agree that exposing the web.xml and
    weblogic.xml in the project tree does in fact suggest that developers
    may
    want to edit them. I'll bring that feedback to our development team.Thanks!
    Your suggestion about providing a graphical editor for modifyingdeployment
    descriptors is something that the WebLogic Server development team feels
    pretty strongly about, too -- check out WebLogic Builder
    (http://e-docs.bea.com/wls/docs70/wlbuilder/WebLogicBuilder.html),
    included
    in the WebLogic Platform 7.0 beta. Of course, you don't need to go thatdeep
    into application deployment descriptors to build and deploy your
    applications with WebLogic Workshop. (In fact, you don't even need to
    know
    what a deployment descriptor is to successfully deploy web services you
    develop with WebLogic Workshop.)
    Cheers!
    Ian M. Goldstein
    Developer Relations Engineer
    BEA Systems, Inc.
    "Emmanuel Proulx" <[email protected]> wrote in message
    news:[email protected]...
    How do you 'configure' a Workshop application?
    The normal way to do this in J2EE is to add environment entries inweb.xml,
    ejb-jar.xml or even application.xml.
    In Workshop there is only web.xml. And when deploying as an EAR file,
    it
    gets packaged in a WAR file, not inside the JAR file of the WebService.
    So
    you can't just look up a web.xml environment entry from your jws file.
    =======
    Another question: why is web.xml and weblogic.xml available in
    Workshop
    in
    the first place? What can you do with these files? I don't see how
    they
    can
    be useful to the developers.
    Since all the 'plumbing' of Web Services is hidden inside Workshop
    anyway,
    I
    think they should remain hidden too. Or if they are useful, then I
    think
    we
    should be able to see the other deployment descriptors (the
    WebServices's
    (ejb-jar.xml) and the EAR's (application.xml)).
    Even better, how about some new categories under the project'sproperties,
    called 'descriptors'. Hide all that XML and show it graphically. Don'tallow
    modifying what is the guts of the system, it's error-prone.
    Thanks,
    Emmanuel Proulx

  • Move env-entry from web.xml into deployment plan

    I have:
    <env-entry>
    <env-entry-name>USERNAME</env-entry-name>
    <env-entry-value>someUser</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    and I'd like to move it from web.xml into my_app_plan.dat. Is it possible? How?
    Thank you in advance!

    Let me describe my case in few more words...
    I have some kind of client-server app. Clients have OC4J installed and they download myApp.ear and myApp_plan.dat files and by using script (Windows CMD batch file) clients install those files with admin_client.jar, OC4J's admin utility. The problem is that I have 2 different types of clients and I have client specific settings set in web.xml file and each time I compile myApp.ear I have to uncomment/comment some lines in web.xml.
    So, to make a long story short, I need a way to deploy those settings separated from (outside of) myApp.ear. By following you link, I have read that orion-web.xml should reside inside WEB-INF folder of myApp.ear, which is not good for me.

  • Env-entry from web.xml not in generated plan.xml

    Hello,
    Recently I migrated a JDeveloper 10.1.3.4 project to 11.1.1.3 and from there to 11.1.2.4. When I deploy this project to an 10.3.5. weblogic server then the 'env-entry' entires in the web.xml are not available on the application server.
    Even when i use weblogic.PlanGenerator with the -all option to create a plan.xml from the WAR-file the env-enties are not found.
    The web.xml is like this:
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5">
    <listener>
    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>jaxrpc</servlet-name>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>VersionServlet</servlet-name>
    <servlet-class>nl.deltalloyd.alfa.keten.version.VersionServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>VersionServlet</servlet-name>
    <url-pattern>/version</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>jaxrpc</servlet-name>
    <url-pattern>/RelatieSoapHttpPort</url-pattern>
    </servlet-mapping>
    <jsp-config/>
    <security-role>
    <role-name>Administrators</role-name>
    </security-role>
    <resource-ref>
    <res-ref-name>jdbc/AlfaDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <env-entry>
    <env-entry-name>appl/version</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>2013.06</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>appl/releasedate</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>13-06-2013</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>appl/loglevel</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>INFO</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>appl/omgeving</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
    <env-entry-name>service/case</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>http://test.services.intranet.company.nl/GixoCaseWeb/services/CaseServiceHttp</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>mqueue/rc/host</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>nl001wwavm058.ad.intra</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>mqueue/rc/port</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>1414</env-entry-value>
    </env-entry>
    </web-app>
    Maybe I missed something in the migration path. Can someone please help me.
    With kind regard,
    Martin

    Let me describe my case in few more words...
    I have some kind of client-server app. Clients have OC4J installed and they download myApp.ear and myApp_plan.dat files and by using script (Windows CMD batch file) clients install those files with admin_client.jar, OC4J's admin utility. The problem is that I have 2 different types of clients and I have client specific settings set in web.xml file and each time I compile myApp.ear I have to uncomment/comment some lines in web.xml.
    So, to make a long story short, I need a way to deploy those settings separated from (outside of) myApp.ear. By following you link, I have read that orion-web.xml should reside inside WEB-INF folder of myApp.ear, which is not good for me.

  • Query Reg env-entry in ejb jar xml

    Hi,
    I have the following tag in the ejb-jar of my application:
    <env-entry>
    <env-entry-name>postingDate</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>Request</env-entry-value>
    </env-entry>
    When a JNDI LookUp is done for this variable in the application, it doesn't pick up the value of the variable which is "Request" but it picks up the Value of the Posting Date.
    I need to know how this works!
    Just an Fyi, Posting Date is a date entered from the UI.

    I feel it is like declaring global and local variables with the same name and trying to access that variable.

  • Bug in lookup of web.xml env-entry in WL 7.0?

    If I create an "env-entry" block for a name (e.g. "MySchemaName") in my web.xml
    file and deploy the web app, I should be able to look up the name from my webapp
    with the line:
    <br>
    myInitialContext.lookup("java:comp/env/MySchemaName");
    <br>
    However when I do that I get the error message:
    <br>
    javax.naming.NameNotFoundException: Unable to resolve 'java:comp.env/MySchemaName'
    <br>
    Note that the "comp/env" prefix has been changed to "comp.env". This worked under
    WL 6.1. Is this a bug in WL 7's JNDI or a bug in the error message or both or
    something else altogether?
    The immediately previous line successfully performs an EJBHome lookup using the
    same Initial Context object. The main difference is that the EJBHome name is defined
    thru the EJB deployment descriptors, not the web.xml.
    Thanks,
    Steve

    Ah, I was trying to do a lookup from session bean for the env-entry defined in
    the web.xml. After reading the J2EE spec, I see this just won't work. env-entries
    are only accessible from within the component where they are defined.
    Still the error message with "comp.env" instead of the expected "comp/env" is
    a bit confusing.
    Not much traffic in this newsgroup, is there?
    Steve
    "Steve Ditlinger" <[email protected]> wrote:
    >
    >
    >
    If I create an "env-entry" block for a name (e.g. "MySchemaName") in
    my web.xml
    file and deploy the web app, I should be able to look up the name from
    my webapp
    with the line:
    <br>
    myInitialContext.lookup("java:comp/env/MySchemaName");
    <br>
    However when I do that I get the error message:
    <br>
    javax.naming.NameNotFoundException: Unable to resolve 'java:comp.env/MySchemaName'
    <br>
    Note that the "comp/env" prefix has been changed to "comp.env". This
    worked under
    WL 6.1. Is this a bug in WL 7's JNDI or a bug in the error message or
    both or
    something else altogether?
    The immediately previous line successfully performs an EJBHome lookup
    using the
    same Initial Context object. The main difference is that the EJBHome
    name is defined
    thru the EJB deployment descriptors, not the web.xml.
    Thanks,
    Steve

  • Env-entry problem in Pluto portal

    I have portlet project. I wrote in web.xml:
    <env-entry>
    <env-entry-name>time_interval</env-entry-name>
    <env-entry-value>5</env-entry-value>
    <env-entry-type>java.lang.Long</env-entry-type>
    </env-entry>
    <env-entry>
    <env-entry-name>file_path</env-entry-name>
    <env-entry-value>d:\tmp</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    I get following error during deploying portlet:
    12:21:30,588 INFO [Engine]
    StandardContext[pluto]PortletDefinitionRegistryService initializing...
    12:21:32,561 ERROR [Engine] StandardContext[pluto]ServiceManager: An
    unidentified error occurred
    ValidationException: element "env-entry" occurs more than once.
    (XMLFieldDesciptor: envEntry AS env-entry)
    at
    org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:
    730)
    But when I put only one env-entry in web.xml, it works perfectly.
    Does any solution exist for adding more than one env-entry?

    I have portlet project. I wrote in web.xml:
    <env-entry>
    <env-entry-name>time_interval</env-entry-name>
    <env-entry-value>5</env-entry-value>
    <env-entry-type>java.lang.Long</env-entry-type>
    </env-entry>
    <env-entry>
    <env-entry-name>file_path</env-entry-name>
    <env-entry-value>d:\tmp</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    I get following error during deploying portlet:
    12:21:30,588 INFO [Engine]
    StandardContext[pluto]PortletDefinitionRegistryService initializing...
    12:21:32,561 ERROR [Engine] StandardContext[pluto]ServiceManager: An
    unidentified error occurred
    ValidationException: element "env-entry" occurs more than once.
    (XMLFieldDesciptor: envEntry AS env-entry)
    at
    org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:
    730)
    But when I put only one env-entry in web.xml, it works perfectly.
    Does any solution exist for adding more than one env-entry?

  • Use of env-entry in ejb-jar

    In my ejb-jar.xml I have a Session bean with a env-entry:
    <env-entry>
    <env-entry-name>xslNameFile</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>pdftemplate.xsl</env-entry-value>
    </env-entry>
    In a class where I use the bean I make a lookup of this env-entry (using the same
    context):
    Context environment = (Context)ctx.lookup("java:comp/env/");
    val = (String)environment.lookup("xslNameFile");
    And I have the following Exception:
    javax.naming.NameNotFoundException: Unable to resolve 'comp/env/xslNameFile' Reso
    lved: 'comp/env' Unresolved:'xslNameFile' ; remaining name 'xslNameFile'
    What I m doing wrong??
    Could anyone help me?
    Thanks
    F.Canonica

    HI ,
    The Primary Purpose of <env-entry> tag
    is used to Customize your bean at Runtime
    and to Make your bean as an DataDriven one.
    ( instead of Storing it in DataBase )
    Regards
    Karthikeyan Gangadharan
    "Deepak Vohra" <[email protected]> wrote:
    >
    >
    >
    InitialContext ic = new InitialContext();
    String val = (String) ic.lookup("java:/comp/env/xslNameFile");
    "canonica" <[email protected]> wrote:
    In my ejb-jar.xml I have a Session bean with a env-entry:
    <env-entry>
    <env-entry-name>xslNameFile</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>pdftemplate.xsl</env-entry-value>
    </env-entry>
    In a class where I use the bean I make a lookup of this env-entry (using
    the same
    context):
    Context environment = (Context)ctx.lookup("java:comp/env/");
    val = (String)environment.lookup("xslNameFile");
    And I have the following Exception:
    javax.naming.NameNotFoundException: Unable to resolve 'comp/env/xslNameFile'
    Reso
    lved: 'comp/env' Unresolved:'xslNameFile' ; remaining name 'xslNameFile'
    What I m doing wrong??
    Could anyone help me?
    Thanks
    F.Canonica

  • Naming exception when using env-entry

    My ejb.jar.xml file contains:
    <env-entry>
    <env-entry-name>iorFileName</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>d:\\planadminserver.ior</env-entry-value>
    </env-entry>
    I use the following code to do a lookup:
    InitialContext ic = new InitialContext();
    String filename =
         (String) ic.lookup("java:comp/env/iorFileName");
    This works fine on my machine. But when we moved the code to
    another machine, we get a NamingException. Any ideas as to why
    this should be?

    Hi DP,
    The problem is not with the EntryProcessor but probably, with the coherence server (storage node) and proxy server that went down during request processing.
    2012-03-15 12:06:59.319/56.479 Oracle Coherence GE 3.7.1.0 <D5> (thread=Cluster, member=2): Member 1 left service CoherenceCache with senior member 2
    2012-03-15 12:06:59.319/56.479 Oracle Coherence GE 3.7.1.0 <D5> (thread=Proxy:DistributedProxy:TcpAcceptorWorker:3, member=2): An exception occurred while processing a InvokeRequest for Service=Proxy:DistributedProxy:TcpAcceptor: (Wrapped: Failed request execution for CoherenceCache service on Member(Id=2, Timestamp=2012-03-15 12:06:09.858, Address=10.38.45.253:8090, MachineId=36960, Location=site:,machine:KN3M9434,process:8224, Role=CoherenceServer) (Wrapped: Failed to load key="1") null) java.lang.NullPointerExceptionEnsure that the storage node and proxy is up and running.
    Hope this helps!
    Cheers,
    NJ

  • @Resource and env-entry

    I used the JSF2 GuessNumber example as the basis for my project. I'm running a simple JSF2 application (my first, although I'm very familiar with JSF1) on Tomcat 7.0.16.
    I have the following bean:
    @ManagedBean
    @SessionScoped
    public class ConfigBean {
         @Resource
         private String dataDirectory;
         public String getDataDirectory() {
              return dataDirectory;
         public void setDataDirectory(String dataDirectory) {
              this.dataDirectory = dataDirectory;
    }I want to access the data directory property in a .xhtml file as follows:
    #{configBean.dataDirectory}To populate the property, I have the following in web.xml:
    <env-entry>
      <env-entry-name>dataDirectory</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>D:\Users\kdean\projects\DemoJSF2\data</env-entry-value>
    </env-entry>I put a breakpoint in getDataDirectory() to confirm that it's being called (it is) but the value is always null.
    What am I missing? Thanks.

    Hi,
    JDeveloper 10.1.3 is using JEE 1.4, not JEE 1.5. JDeveloper 11 would be the build to use and I am currently testing if it works in here
    Frank

  • Env-entry MDB

    Environment: Weblogic 10.3
    I am trying to access an env-entry via @Resource injection. However, when I deploy my MDB, the Resource value is not being injected.
    @MessageDriven
    public class FooMdb {
    @Resource
    private String mdbId;
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <ejb-name>FooMdb</ejb-name>
    <ejb-class>FooMdb</ejb-class>
    <env-entry>
    <env-entry-name>FooMdb/mdbId</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>fooOne</env-entry-value>
    </env-entry>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    When I deploy the above the resource is not being injected and neither am I getting any errors. Any assistance would be appreciated.
    Thanks.

    the envenv-entry-name should be "qualifiedClassName/fieldName". it should work well. You could verify your env-entry-name is correct. if so, please post your full example here. thanks
    -Albert

  • Accessing env-entry value from a java class

    Hi,
    I have my env-entry element declared in ejb-jar.xml like this
    <env-entry>
    <env-entry-name>ConfigFile</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>centaur</env-entry-value>
    </env-entry>
    and if I access that value from the EJB of that ejb-jar.xml, it is giving the right value. But when I am trying to retrieve the same from a java class, that is throwing exception "javax.naming.NameNotFoundException: Unable to resolve 'ConfigFile' Resolved ; remaining name 'ConfigFile'"
    I think this is because env-entry has access to only EJB to maintain security?
    or can env-entry elemenets cab be accessed outside the EJB and some thing I am doing wrong here?
    can some one help me here?

    Hey Frank,
    The JCo, DI API and DB are all on PL 18. I have found that the error only occurs for one business partner, and that business partner had a service contract added to it the day before the error started to occur. Also the business partner in question is the only business partner with a service contract which would explain why it is the only one experiencing these problems. It could be a coincidence but I will let you know what the outcome is.
    Carla

  • Validation error when using env-entry in web.xml

    I've added an env-entry element to my web.xml and it falls over at deploy time with a validation error. However, from what I can see, this is valid based on the schema.
    And infact, it matches the example in the weblogic doco - http://edocs.bea.com/wls/docs103/webapp/web_xml.html#wp1025195
    The error I'm getting is:
    <17/12/2008 11:45:56 AM EST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor D:\workspace\source_checkout\investment_control\ic-web\src\main\webapp/WEB-INF/web.xml of module ic-web.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    problem: cvc-complex-type.2.4a: Expected elements 'mapped-name@http://java.sun.com/xml/ns/javaee injection-target@http://java.sun.com/xml/ns/javaee' instead of 'env-entry-type@http://java.sun.com/xml/ns/javaee' here in element env-entry@http://java.sun.com/xml/ns/javaee:<null>
         at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:234)
         at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:221)
    My web.xml looks like:
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
         <description>IC Web</description>
         <env-entry>
              <env-entry-name>aEntry</env-entry-name>
              <env-entry-value>aValue</env-entry-value>
              <env-entry-type>java.lang.String</env-entry-type>
         </env-entry>
    </web-app>
    Any suggestions???

    Found a resolution to this in the end.
    Unless you have the sub-elements in the order below, it will get validation errors.
    <env-entry>
    <env-entry-name>maxAmount</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>aString</env-entry-value>
    </env-entry>
    A bit weird and very frustrating....

Maybe you are looking for

  • HP Spectre X2 Replacemen​t screen

    Hello, Can anyone tell me if HP sells replacement screens for the HP Spectre x2 computer? I recognize that HP can repair the device, but find the $300 repair cost outrageous.

  • How to avoid transfer Order creation in Outbound Delivery Picking

    Dear Experts At present situation, I am creating  transfer order through Subsequent Function tab for Picking in outbound Delivery. Warehouse mangement is Active Is there any settings in IMG so that we can avoid the step of creating tranfer Order duri

  • How much is too much to wait for the computer to work

    I need some help and ideas on this one since I am about to throw out every Apple product I have out the window. Let me try and keep it short: got my iMac end of June it crashes mid September took it to authorized service, told it will be fixed in two

  • Date logic of OM infotypes

    hi all. i need to change the start date of object from SY_DATUM to 1st jan of currennt year on following condition. if the object is create before 1st jan of 2008 the logic sholud be applicable else the creation date of object should be default date

  • How the listener working without listener.ora file?

    Hi alls, System env. Oracle : 8.1.6 OS: Win2K There's no file listener.ora on the machine. But there's a TNSlistener service running. Is the listener can start with tnsnames.ora? Any idea? Witch.