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?

Similar Messages

  • Trailing spaces in env-entry-type elements

    Hi,
    We have been porting our EJB application from another app server over to Oracle iAS (9.0.3 Lite) and have encountered a rather frustrating problem.
    We have an CMP (2.x) entity bean that has ejbSelect methods. There are corresponding <query> blocks in the ejb-jar.xml file for these methods. In the same ejb-jar.xml file there are <env-entry> blocks that setup a few things that are needed by the bean.
    If the <env-entry-type> element is written as "<env-entry-type>java.lang.String </env-entry-type>" (note the trailing space after the type name) the following exception occurs during deployment of the ear file;
    java.lang.InstantiationException: Failure to initialize EJBQL descriptors: com.sun.enterprise.deployment.xml.ContentTransformationException: java.lang.String is not an allowed property value type
         at com.evermind.server.ejb.deployment.EJBPackage.initializeEjbqlDescriptors(EJBPackage.java:2075)
         at com.evermind.server.ejb.deployment.EJBPackage.init(EJBPackage.java:2054)
         at com.evermind.server.ServerComponent.init(ServerComponent.java:208)
         at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDeployment.java:672)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:547)
         at com.evermind.server.administration.ServerApplicationInstallation.deploy(ServerApplicationInstallation.java:913)
         at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:337)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:479)
    Error during deployment: Failure to initialize EJBQL descriptors: com.sun.enterprise.deployment.xml.ContentTransformationException: java.lang.String is not an allowed property value type
    Removing the trailing space and the deployment proceeds to completion without exceptions.
    I should also add that if the ejbSelect methods are remove d from the application and the trailing space left in place the resulting ear file will deploy sucessfully.
    It is trivial to reproduce this problem with the ORMAP demo that ships with 9.0.3.
    This was a really subtle problem that is not present on the *3* other appserver implementations that our application runs on. It was very frustrating to locate and perhaps some consideration could be given to how PCDATA is handled when parsing <env-entry-type> blocks.
    Cheers,
    Mick.

    Hi ,
    Create two Characteristic InfoObjects in BW With length 60 Char  and then in the Transfer Rules of this two InfoObjects write the Formula using Left() and right() function present in the Formula Builder .
    That is First infoObject Contains the Left 60 Char and next one Contains the right 60 Char.
    Regards,
    Vijay.

  • 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....

  • Issue with [env-entry] element in web.xml

    I know it's possible to define [env-entry] elements in web.xml for environment
    properties of a web application. But how do you access [env-entry] elements from
    classes that do not exist within a web application? In other words, this is my
    problem:
    I have an EAR file, enterprise.ear, which contains the following...
    employee.jar
    employeeSearchEJB.jar
    webApp1.war
    META-INF/
    application.xml
    The employee.jar file is a utility archive that contains common classes, one of
    which is a class called LogManager. LogManager needs to read environment properties
    in order to initialize itself. Currently, LogManager reads these properties from
    a property file, and therefore it needs to know the name of the property file
    in order to access it. I dont like this approach because I'm forced to hard-code
    the name of the property file in LogManager. I would rather leverage the power
    of J2EE deployment descriptors and use the [env-entry] element to define the environment
    properties for the LogManager class. Then, I would simply use JNDI to get the
    values of the [env-entry] elements without ever having to specify their location
    aside from the default JNDI context; java:comp/env, which is standard anyway.
    The problem I'm having is that you can define the [env-entry] element in only
    2 types of deployment descriptors; namely, web.xml and ejb-jar.xml, neither of
    which are available to LogManager because LogManager exists at the EAR root level.
    I was hoping application.xml supported the [env-entry] element, but it doesn't.
    Any suggestions?
    SAF

    SAF,
    I am not sure if this applies to you situation but if you create an initial context
    instance and then grab the value using the jndi name within that context then
    you should be able to grab that environment variable.
    I have a helper class that is used as part of a deployed application. The helper
    class doesn't have access to the Servlet context but it is created as part of
    the application workflow. When it gets initiated it grabs an env-entry created
    in the web.xml deployment descriptor to find the default url for a content path.
    After I create an initialContext, I perform a initContext.lookup("jndi.env.entry.here")
    where "jndi.env.entry.here" is the name specified in the env-entry tag.
    This returns the value of the entry.
    This works under both Jrun and Weblogic so my guess is it should work for you.
    Again, I am assuming that your class will at least be able to grab a context
    object to communicate back to the server.
    Hope this helps,
    Troy
    "SAF" <[email protected]> wrote:
    >
    I know it's possible to define [env-entry] elements in web.xml for environment
    properties of a web application. But how do you access [env-entry] elements
    from
    classes that do not exist within a web application? In other words, this
    is my
    problem:
    I have an EAR file, enterprise.ear, which contains the following...
    employee.jar
    employeeSearchEJB.jar
    webApp1.war
    META-INF/
    application.xml
    The employee.jar file is a utility archive that contains common classes,
    one of
    which is a class called LogManager. LogManager needs to read environment
    properties
    in order to initialize itself. Currently, LogManager reads these properties
    from
    a property file, and therefore it needs to know the name of the property
    file
    in order to access it. I dont like this approach because I'm forced to
    hard-code
    the name of the property file in LogManager. I would rather leverage
    the power
    of J2EE deployment descriptors and use the [env-entry] element to define
    the environment
    properties for the LogManager class. Then, I would simply use JNDI to
    get the
    values of the [env-entry] elements without ever having to specify their
    location
    aside from the default JNDI context; java:comp/env, which is standard
    anyway.
    The problem I'm having is that you can define the [env-entry] element
    in only
    2 types of deployment descriptors; namely, web.xml and ejb-jar.xml, neither
    of
    which are available to LogManager because LogManager exists at the EAR
    root level.
    I was hoping application.xml supported the [env-entry] element, but it
    doesn't.
    Any suggestions?
    SAF

  • Env-entry-mapping in orion-application-client not available in JNDI lookup

    I have an application client module in my EAR file that I've configured to auto-start.
    It has a few env-entry defined in it's application-client.xml.
    When I deploy the EAR file to OC4J 10.1.3, the application client module gets started and can access these env-entry properties from its JNDIContext.
    Now, comes the problem. During the deployment process, I edit the Deployment Plan, and change the env-entry property values, and then deploy the application.
    However, the application client module still gets the original values when it does the JNDI lookups of those env-entry names.
    I have checked to see that OC4J creates an orion-application-client.xml during deployment and it shows the env-entry-mapping elements with the updated values.
    Why is the JNDI lookup returning the values from application-client.xml and not the overriden values set in orion-application-client.xml?
    I have tried this on OC4J 10.1.3, as well as 10.1.3.1.0 - got same behavior.
    Is this a bug in OC4J? This seems to work fine with ejb modules, but not application client modules.
    Thanks,
    Kalpak

    Avi!
    Of course, I had tried it before I wrote the question. I put the modified xml file into the application area. After that AS restarts OC4J instance. And then I find my xml without any changes I made! I tried to do the same thing from the AS console. The same!
    Leonid

  • Global env-entry JNDI variables space for same ejb-jar.xml file

    [Software]
    jboss4.0.5
    jdk 1.5
    [Problem]
    Is there any global <env-entry> tag for a Single EJB Module. Is there any way by which the JNDI variable can be accessed by all the modules except by binding the variables in the JNDI explixity in the code
    Thanks in advance
    CSJakharia

    Unfortunately not. The EJB specification has always scoped the component environment
    (java:comp/env) as a private environment for each EJB. The advantage is you can
    assign entries within each bean easily without worrying about clashing with names selected
    for other beans in the ejb-jar. That eases the process of assembling beans developed
    separately into one ejb-jar since there is no possibility that their component environments
    will clash.
    However, the downside is just what you're pointing out, which is that in many cases
    developers prefer to define a single dependency that is shared among all the
    beans in the ejb module. That is the behavior of the component environment in a
    web application.
    We'll be looking into ways to simplify this for ejbs in a future revision of the specification.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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.

  • 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

  • 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.

  • Changing env-entry after deployment

    Hi,
    I was wondering how I can change the value of an env-entry after deployment? Do I have to change the value in the ejb-jar.xml, redeploy the application, or is there a utility I can use?
    thanks
    Steve

    Okay gentlemen, I dug around and couldn't find anything on this concept of defining an env-entry after deployment using Sun Java System Application Server 8.1 - so I just came up with my own hack. Thought I'd share it in case others have the same question and can't find the answer.
    Just to restate the problem: In SJAS you can't seem to define an environment entry that you can just look up via JNDI (you can do this in Tomcat pretty easy though using the context.xml file and an env-entry like syntax) - the benefit of this being of course that you can easily define deployment-time variables which a system administrator can set based on his setup. There seems to be no way to do this is SJAS 8.1
    As a workaround, you can create your own custom JNDI resource which will expose the properties that you set in the Admin Console as a simple java.util.Map that you can use from your app.
    Here's the blow by blow:
    2. Create a JNDIProperties object that implements java.util.Map but does NOT implement java.io.Serializable:
    package helpers.jndi;
    import java.util.Collection;
    import java.util.Map;
    import java.util.Set;
    public final class JNDIProperties implements Map {
        private Map map;
        public JNDIProperties(Map aMap) { map = aMap; }
        public boolean containsKey(Object key) { return map.containsKey(key); }
        public void clear() { map.clear(); }
        public Object get(Object key) { return map.get(key); }
        public boolean containsValue(Object value) { return map.containsValue(value); }
        public Set entrySet() { return map.entrySet(); }
        public boolean isEmpty() { return map.isEmpty(); }
        public Set keySet() { return map.keySet(); }
        public Object put(Object key, Object value) { return map.put(key, value); }
        public void putAll(Map t) { map.putAll(t); }
        public Object remove(Object key) { return map.remove(key); }
        public int size() { return map.size(); }
        public Collection values() { return map.values(); }
    }2. Create an object that implements javax.naming.spi.ObjectFactory and returns an instance of JNDIProperties containing the properties defined in the container:
    package helpers.jndi;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Map;
    import javax.naming.Context;
    import javax.naming.Name;
    import javax.naming.RefAddr;
    import javax.naming.Reference;
    import javax.naming.spi.ObjectFactory;
    public class PropertyFactory implements ObjectFactory {
        public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception {
            Map myMap = new Hashtable();
            Reference myReference = (Reference)obj;
            Enumeration myEnumeration = myReference.getAll();
            while (myEnumeration.hasMoreElements()) {
                RefAddr myRefAddr = (RefAddr)myEnumeration.nextElement();
                myMap.put(myRefAddr.getType(), myRefAddr.getContent());
            JNDIProperties myJNDIProperties = new JNDIProperties(myMap);
            return myJNDIProperties;
    }3. Build this and copy the jar to $SJAS_HOME/domains/domain1/lib/ext/ (or other appropriate folder for your setup), then restart the app server to get to load the jar.
    4. Go to the admin console and go to Resources -> JNDI -> Custom Resources -> New. Give it a sensible JNDI name (I'll use "testproperties" in this example), enter java.util.Map as the resource type and the name of your factory class for the "factory class" field, e.g. "helpers.jndi.PropertyFactory". Below that under "Additional Properties", add in each of the properties that you want to expose, for example enter a property named "testproperty1" with the value of "my test".
    5. You can now get a java.util.Map that contains the properties that you set for your custom JNDI resource by doing something like the following (example in JSP):
    <%
    Context myContext = new InitialContext();
    Context myEnvContext = (Context)myContext.lookup("java:comp/env");
    Map myMap = (Map)myEnvContext.lookup("testproperties");
    %>
    <%=myMap.get("testproperty1")%>Output is:
    my testNOTE: If this sounds convoluted - I agree, it is. If anyone's got a better idea, please post it; as I could not find another solution to this seemingly simple problem.

  • Application-wide "env-entry"

    Hi,
    I'm creating a J2ee application using various EJB's and at least one WAR, all inside one single EAR file.
    This app. is to be intalled at different clients. I'd like to be able to specify different properties ( server used, remote host addresses, etc.) in some part of the EAR that will be available using
    (String)context.lookup("java:comp/env/" + name );
    I have been able to customize individual EJB's using the <env-entry> tag in its DD but what about the being able to customize the whole application??
    I'm been scouring docs and the net and I can't see any specific application.wide examples.
    Many thanks for your help.
    Terry Doyle

    I faced the same problem some time ago. I went through the EJB 2.0 spec and the DTD of ejb-jar.xml. It appears that env-entry is for an EJB only. There is no 'global' env-entry.

  • 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

  • env-entry and InitialContext

    Hi
    I have put a String value, named "myval" into my web.xml file using
    <env-entry> tags. In my code I use the following:
    // assume this gets with default values...
    InitialContext ctxt = new InitialContext();
    String myval = (String) ctxt.lookup("java:comp/env/myval");
    and that usually extracts myval with no problems if I do it within a Web
    context, i.e. from a JSP or a class referenced initially from a JSP.
    However, it fails to extract myval when I do it within an EJB context, i.e.
    call from an EJB.
    Also, new InitialContext() sometimes goes into an infinite loop.
    So, I have two problems, can anyone clarify them?
    1. At random (not repeatable) the new InitialContext() call goes into an
    infinite loop. The WebLogic debug file just shows it looping and looping
    indefinitely, ending with a "Problematic thread" error!!! This is from a Web
    context or Servlet Context (not sure of what this is called)
    2. The EJB I use in another part of the application cannot get the
    InitialContext(). When I try to do this I get NamingException thrown.
    Fran

    Thanks for this Mahendra.
    Does anybody have any idea as to the first problem? i.e. looping error?
    I'm calling this code many times, so maybe it's getting 'confused' but
    that's not really a good explanation of the problem!
    Many thanks again
    Fran
    "Mahendra Dhamdhere" <[email protected]> wrote in message
    news:3a96799a$[email protected]..
    As per my knowledge,
    env-entrys defined in web.xml are local to that container, a Container in
    which your servlet is deployed. For each web application, weblogic createsa
    ServletContainer and a ServletContext. That's why we can use differentlocal
    names from same global resources.
    As your servlet container and ejb container are different container andthey
    have different environment, to solve your problem, you can defineenv-entry
    in your deployment descriptor file(ejb-jar.xml).
    HTH,
    Mahendra
    Fran <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I have put a String value, named "myval" into my web.xml file using
    <env-entry> tags. In my code I use the following:
    // assume this gets with default values...
    InitialContext ctxt = new InitialContext();
    String myval = (String) ctxt.lookup("java:comp/env/myval");
    and that usually extracts myval with no problems if I do it within a Web
    context, i.e. from a JSP or a class referenced initially from a JSP.
    However, it fails to extract myval when I do it within an EJB context,i.e.
    call from an EJB.
    Also, new InitialContext() sometimes goes into an infinite loop.
    So, I have two problems, can anyone clarify them?
    1. At random (not repeatable) the new InitialContext() call goes into an
    infinite loop. The WebLogic debug file just shows it looping and looping
    indefinitely, ending with a "Problematic thread" error!!! This is from aWeb
    context or Servlet Context (not sure of what this is called)
    2. The EJB I use in another part of the application cannot get the
    InitialContext(). When I try to do this I get NamingException thrown.
    Fran

  • Weblogic jndi env entries

    Hi,
    I have a little problem. i have a webapplication deployed in weblogic 6.1, now i tried to create an env entriy (in the web.xml) and now i want to access this env entry from within my jsp page.
    I have created a new InitialContext and then just called
    System.out.println(ctx.lookup("myenv"));
    But weblogi can't find the environment myenv. -> NameNotFoundException
    is there another way to access those env entries like in j2ee "java:comp/env/myenv" ????

    everything ok now..it is "java:comp/env"! i had to reinstall weblogic before it worked.. don't ask me why.

  • Problem running Oracle Portal to Go (Oracle9i 1.0.2.0.0)

    I have installed Oracle9i Application Server WE 1.0.2.0.0 Standard Edition on Windows2000 Professional Edition. I am getting problems regarding running Portal to Go.
    The installer said that installation was successful. Moreover I have done the configuration tasks mentioned Oracle9i installation guide under post installation steps for Oracle9i.
    But Oracle Portal to Go is not running and returning error message. Are there some other tasks still to perform to configure the Oracle Portal to Go Standard Edition?
    Here it is a brief Description of what I have done with the installations process
    System: Pentium II 500 MHZ with 256 MB RAM and 15 GB Hard Disk so enough space available for installations.
    Windows 2000 professional was freshly installed
    All pre installation tasks are done like paging file size is 896MB
    Important Installation steps and points are as under (Standard Edition of Oracle 9i Application Server 1.0.2.0.0):
    I followed all the steps given in Oracle 9i AS installation guide
    On Windows 2000 Installer never asks for reboot before actually installing the Oracle 9i application server (Chapter 4 of installation guide: preparing system for installation: step5: page 5 of 25). So I manually reboot the system
    During installation when I reached Database Access Descriptor (DAD) for Oracle Portal. In TNS connect string field for Apache listener Configuration I entered the same name (abc) (chapter 4 of installation guide: installing oracle 9i Application server: step2, 3: page 10,11 of 25) as I was going to use for my Global database name later at database Identification steps (chapter 4 of installation guide: installing oracle 9i Application server: step 4: page 12 of 25)
    Note: In an other installation I left the same fields (TNS connect string) blank but of no use.
    (Please let me know if I have made any mistake here)
    When installation of Oracle9i AS reaches 100% installer opens a command prompt and displays
    ORA: 12541 TNS: No Listener
    Enter user name:
    When I enter SYSTEM as a user name it displays
    Password:
    I entered manager as password and then it displays
    ORA 12560: TNSProtocol adaptor error
    And once again it asks for user name and password
    I once again enter system as a user and manager as password.
    (Please let me know if I have made any mistake here)
    After 100% completion of the installation the configuration tools screen appears
    (Chapter 4 of installation guide: installing oracle 9i Application server: step 10: page 17 of 25) and the following tasks are performed
    Net8 configuration Assistant succeeds
    Oracle database configuration assistant succeeds
    When The Oracle portal 3.0 configuration Assistant Starts
    I hold the installation steps for oracle portal for a while and do some database configuration tasks that are necessary (may be some are not) for installation of portal.
    (Please let me know if I have made any mistake here)
    For example
    Increase the table space size of Users (400 MB), and Temp (100MB) table spaces.
    Validated invalid PL/SQL Modules with ULTRP.SQL script
    (Please let me know if I have made any mistake here)
    Installed dbms_job.sql package as it was mentioned in another guide (Oracle portal-to-Go installation Guide- Release1.0.2: Page 1: last line)
    (Please let me know if I have made any mistake here)
    Stopped the database and listener
    And did some changes as was asked in Oracle portal-to-Go installation Guide- Release1.0.2
    Edited the init<SID>.ora file and set the following fields
    aq_tm_processes = 1
    job_queue_processes = 4 (2 were recommended in guide but I left the already set values)
    job_queue_interval = 30
    (Please let me know if I have made any mistake here)
    Also I did the following too (though these are recommended for Internet file system)
    opern_cursors = 300 (in installation guide it is asked 255 but I kept the already set value)
    shared_pool_size = 52438800 (50M was suggested and this is more than that)
    processes = 200
    (Please let me know if I have made any mistake here)
    I started the database and listener
    Proceeded the installation of Oracle Portal as is described in installation guide for Oracle 9i Application guide 1.0.2.0.0
    And successfully completed the installation of Oracle Portal
    There were no errors reported on the installer however when I read the installation log some errors were mentioned at the end of the file
    Please see the attached log file.
    I also completed all the post installation tasks at the end of chapter 4 of Oracle9i Application Server installation guide 1.0.2.0.0 except the configuration of Oracle Internet file system (is it necessary for running Oracle Portal to Go)
    When I run the oracle portal to go the following situation is encountered
    Working: http://localhost/pls/portal30/admin_/dadentries.htm
    Error at: http://localhost/pls/portal30/portal30.home
    Error: The preference path does not exist: Oracle.Portal.Page (WWC-51000)
    (And this is the main source of confusion)
    Working: http://localhost/pls/portal30/admin_/gateway.htm?schema=portal30
    Working: http://et-wks-08:5555/invoke/wm.server.admin/adminPage
    Are there any other guides and post installation steps still to follow to successfully run this Portal to Go or it is sufficient?
    I can also send the installation logs of both Oracle 9i application server (installActions.log and installActions2001-05-28_03-50-56-PM.log) and Oracle portal to Go (install.log).
    If you ask, I can send you the installation guides that I have followed and the screen shoots of the error messages for a detail review.
    Moreover can anyone please tell me if this version of Oracle 9i Application server is ok or I must try some other version?
    Also advise any other if any successful configuration and installation options.
    Is it possible to run this portal to go with any other installation options/arrangements/configurations etc?
    Any help from anyone will be highly appreciated.
    Regards,
    Muhammad Usman,
    Software Engineer
    EssTec Lahore, Pakistan.

    Hi,
    If you use portal 30 instead of OAS, The installation gives you the Apache ready.
    Pablo
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tarun Singhal ([email protected]):
    Hi,
    I am trying to implement Portal-to-go application .
    For installing Oracle Portal-To-Go 1.0.2 ,I followed oracle
    documectation.Now I want to install Portal-To-Go 1.0.2
    application using
    a) winnt ver. 4.0 (SP3)
    b) Oracle 8i
    c) Oracle Application server release 4.0.8.1
    d) servlet patch set
    e) pl/sql cartridges.
    (Oracle 8i and OAS 4.0.8.1 are installed with different oracle home directories.)
    I have installed winnt , OAS rel.4.0.8.1. both are working fine
    .now I want to install servlet Patch set and
    pl/sql cartridges.I am unable to locate the information and software for this on oracle site.
    can any body tell me why servlet patch set and pl/sql cartridges
    required for this application and
    from where should i download the servlet patch set software and PL/SQL cartriges
    for this version.
    Are the above specified softwares are compatible with each other or something extra
    required for this installation. Is service pack 3 (winnt 4.0) compatible
    with portal-to-go 1.0.2
    Can anybody help me please ?
    Regards
    Preeti Madhukar
    ([email protected])<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Error in Deployment of SAP ESS 100 SP16 ess/au/addr

    Hello Gurus Greetings !.. I am trying to Deploy SAP ESS 100 SP16 for Netweaver 2004s using SDM but getting error while i deploy in the phase ess/au/addr. Please check for the log below if any one can helpout soon.... May 22, 2007 10:16:50... Info: **

  • Query Output to download in flat file through APD  or other means?

    Hello Experts, I am currently on BW3.5 system and have requirement to load query output in flat file in .csv format. I checked the option of APD but looks like we cant directly load the query output in flat file like in APD (BW  3.5 system) . One way

  • Bluetooth will not recognise my GPS

    Can any one help, please? I have a PowerBook G4 1.25 GHz running Mac OS X, version 10.4.3 and want to use a BT-338 GPS with my ROUTE 66 Route 2004 Application. Although Bluetooth Preferences says that it has connected with the GPS, when I tell ROUTE

  • Java invocation of a SOA Suite 11g composite

    Does anyone have any idea or can point me to a site that discusses how to startup a SOA 11g app using Java??????? Thanks - Casey

  • Missing default plug-in?

    Hi! For some reason iSync on my Macbook Pro says that my SE K750i is not supported by iSync. but it is on the official list! It suggest to install its plug-in (however, it works fine on my PowerMac G5). it would be great if someone knew the answer..