Weblogic deployment plan will not override variables (Weblogic 10.3.5).

I am having some trouble trying to adjust the deployment settings of our application in weblogic. I feel what I'm trying to do ought to be quite simple, but it's not working as expected.
I am just trying to override the context-root in weblogic.xml and the JNDI name for the data source, so these can both be configured at deployment time.
I have removed the application.xml from the ear file, so that shouldn't be affecting the overrides.
What I have so far:
weblogic.xml:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
<context-root>mosaic</context-root>
<resource-description>
<res-ref-name>jdbc/LogicalDS</res-ref-name>
<jndi-name>LogicalDS</jndi-name>
</resource-description>
web.xml
<?xml version='1.0' encoding='UTF-8'?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<resource-ref>
<description>A logical reference to the datasource - mapped in deployment plan</description>
<res-ref-name>jdbc/LogicalDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
plan.xml
<?xml version="1.0" encoding="UTF-8"?>
<wls:deployment-plan xmlns:wls="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd" global-variables="true">
<!--weblogic-version:10.3.5-->
<wls:application-name>mosaic.ear</wls:application-name>
<wls:variable-definition>
<wls:variable>
<wls:name>datasource_name</wls:name>
<wls:value xsi:nil="true"></wls:value>
<wls:description>The name of the datasource to map to the mosaic application</wls:description>
</wls:variable>
<wls:variable>
<wls:name>new_context_root</wls:name>
<wls:value xsi:nil="true"></wls:value>
<wls:description>URL to deploy Mosaic at</wls:description>
</wls:variable>
</wls:variable-definition>
<wls:module-override>
<wls:module-name>mosaic.war</wls:module-name>
<wls:module-type>war</wls:module-type>
<wls:module-descriptor>
<wls:root-element>weblogic-web-app</wls:root-element>
<wls:uri>WEB-INF/weblogic.xml</wls:uri>
<wls:variable-assignment>
<wls:name>new_context_root</wls:name>
<wls:xpath>/weblogic-web-app/context-root</wls:xpath>
<wls:operation>replace</wls:operation>
</wls:variable-assignment>
<wls:variable-assignment>
<wls:description>Data source for mosaic application</wls:description>
<wls:name>datasource_name</wls:name>
<wls:xpath>/weblogic-web-app/resource-env-description/resource-env-ref-name</wls:xpath>
<wls:operation>replace</wls:operation>
</wls:variable-assignment>
<wls:variable-assignment>
<wls:name>datasource_name</wls:name>
<wls:xpath>/weblogic-web-app/resource-description/[res-ref-name="jdbc/LogicalDS"]/jndi-name</wls:xpath>
<wls:operation>replace</wls:operation>
</wls:variable-assignment>
</wls:module-descriptor>
</wls:module-override>
</wls:deployment-plan>
Nothing happens when I use the deployment plan, and neither of the variables appear under the Deployment Plan configuration screens in the admin console. From what I understand, I should at least be asked for these variables, since I have specified that they are null in the deployment plan.
When I use WLST to browse the tree, I find that the runtime configuration just stays as the values in the deployment descriptors.
I have verified the deployment plan is being used in the general tab of the admin console.
Can anyone help me find out what I am doing wrong here? If I don't create a data source called LogicalDS, I get errors about this, suggesting it is not correctly overriding. I am puzzled to why I do not see any variables to specify though..

The documentation implies that this is not the case - see:
http://docs.oracle.com/cd/E24329_01/web.1211/e24443/export.htm#autoId13
'Assigning Null Variables to Require Administrator Input'.
However, require administrator input where? My thoughts were that this option would appear in the admin console under 'deployment plan'. However, although I have specified resource dependencies in the deployment descriptors, and the plan, nothing appears under 'resource dependencies' for the application.
Is the only way to change the context-root deployment URL by actually manually editing an XML file?
To me that seems primitive and will cause us support issues when distributing our application - is there any other way I can enable the ability to specify the data source name and context-root through the web console prior to/during deployment?
Edited by: user12032953 on 11-Jun-2012 07:20

Similar Messages

  • Replacing web.xml values with a deployment plan.  Not working on WL 10.3.2

    Hi All-
    I am trying to replace a value from web.xml with one in a weblogic deployment plan. I deployed the application on WL 10.3.2 and used the deployment plan below. No matter what I do it doesn't seem to want to take the value.
    web.xml:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <context-param>
    <param-name>TokenGroup</param-name>
    <param-value>oldvalue</param-value>
    </context-param>
    </web-app>
    Deployment Plan:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd"
    global-variables="false">
    <application-name>APPName</application-name>
    <variable-definition>
    <variable>
    <name>TokenGroup</name>
    <value>Key123456</value>
    </variable>
    </variable-definition>
    <module-override>
    <module-name>APPName.war</module-name>
    <module-type>war</module-type>
    <module-descriptor external="false">
    <root-element>web-app</root-element>
    <uri>WEB-INF/web.xml</uri>
    <variable-assignment>
    <name>TokenGroup</name>
    <xpath>/web-app/context-param/[param-name="TokenGroup"]/param-value</xpath>
    <operation>replace</operation>
    </variable-assignment>
    </module-descriptor>
    </module-override>
    </deployment-plan>
    I've also tried other formats for the xpath such as:
    /web-app/context-param/{param-name="TokenGroup"}/param-value
    /web-app/context-param[param-name="TokenGroup"]/param-value
    Any ideas why this doesnt work?
    Thanks,
    Joe

    "web.xml"
    <?xml version='1.0' encoding='WINDOWS-1252'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <context-param>
    <param-name>name</param-name>
    <param-value>Joe</param-value>
    </context-param>
    <context-param>
    <param-name>password</param-name>
    <param-value>password</param-value>
    </context-param>
    <servlet>
    <servlet-name>ParameterServlet</servlet-name>
    <servlet-class>ParameterServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ParameterServlet</servlet-name>
    <url-pattern>/ParameterServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    ParameterServlet
    import java.io.IOException;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ParameterServlet extends HttpServlet {
    private String dbName = "";
    private String dbPassword = "";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    ServletContext context = getServletContext();
    dbName = context.getInitParameter("name");
    dbPassword = context.getInitParameter("password");
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws IOException {
    ServletOutputStream out = res.getOutputStream();
    res.setContentType("text/html");
    out.println("<html><head><title>Basic Servlet</title></head>");
    out.println("<body>Database username is <b>" + dbName);
    out.println("</b><br>Database password is <b>" + dbPassword + "</b>");
    out.println("</body></html>");
    "Plan.xml"
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
    <application-name>virtual</application-name>
    <variable-definition>
    <variable>
         <name>name</name>
         <value>akshay1</value>
         </variable>
         <variable>
         <name>password</name>
         <value>koul1</value>
         </variable>
    </variable-definition>
    <module-override>
    <module-name>virtual</module-name>
    <module-type>war</module-type>
    <module-descriptor external="false">
    <root-element>web-app</root-element>
    <uri>WEB-INF/web.xml</uri>
         <variable-assignment>
              <name>name</name>
              <xpath>/web-app/context-param/[param-name="name"]/param-value</xpath>
              <operation>replace</operation>
         </variable-assignment>
         <variable-assignment>
              <name>password</name>
              <xpath>/web-app/context-param/[param-name="password"]/param-value</xpath>
              <operation>replace</operation>
         </variable-assignment>
    </module-descriptor>
    </module-override>
    <config-root>C:\DOCUME~1\user\LOCALS~1\Temp\user\.\config\deployments\virtual\plan</config-root>
    </deployment-plan>
    It works for me... I think your "web.xml" is causing the issue.
    Try replacing
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    with
    <?xml version='1.0' encoding='WINDOWS-1252'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    Hope this helps.
    -Akshay

  • Weblogic.transaction.RollbackException: Could not prepare resource 'weblogi

    Hi,
              I am getting this error on wls 9.2 and not sure why.
              I have a MultiDataSource which comprises two transactional (XA) DataSources for Oracle 9.2.
              I have a UserTransaction in progress which dequeues messages from a JMS Queue and does JDBC updates using the MultiDataSource.
              Here is the stack trace (get when calling commit on UserTransaction):
              weblogic.transaction.RollbackException: Could not prepare resource 'weblogic.jdbc.wrapper.JTSXAResourceImpl
              JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = MyMultiDS
                   at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1782)
                   at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:331)
                   at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)
                   at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:273)
                   at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:267)
              Any ideas on this ?
              I did create the MultiDataSource (MyMultiDS) as a TX DataSource.
              Thanx

    j2ee iscool wrote:
              > Hi Joe,
              >
              > Many thanx for you reply. I can think of the following four stages during which a failure can occur during (transactional)interaction with RAC:
              >
              > 1.Active RAC Node Fails before the application calls commit (Application takes care of retry).
              >
              > 2.Active RAC node fails after the application calls commit and before the container(WLS) has called prepare on the RAC(Node). WLS takes care of the recovery/retry ?
              >
              > 3.Active RAC node fails after container(WLS) has called prepare on the RAC( Node ) but before commit being called. WLS takes care of the recovery/retry ?
              >
              > 4.Active RAC node fails after container(WLS) has called prepare and commit on the RAC( Node ). Oracle takes care of the recovery ?
              >
              > We are using Transactional Data Sources (Emulate 2 phase commit and Supports Global Transaction )
              > Do the above failure phases apply in this case ?
              >
              > The scenarios which you have described (?partial transacitons being committed, rolled
              > back or data locked indefinitely...? ) can occur during which of the failure stages ? Are there other failure stages which I am missing ?
              >
              >
              > Thanx a lot for your help,
              If multiple WebLogic servers are involved in the same transaction
              they must know that for a given RAC installation, each of these
              WebLogic servers do their tx work to the same RAC node. Otherwise,
              we may prepare, commit, or roll back only one of them, because
              we think the DBMS is really only one, when it's not. Oracle does
              not guarantee transaction ID uniqueness across nodes until prepare,
              so if we unwittingly address multiple RAC nodes for a given XA
              tx, the DBMSes will be quite happy about getting different, conflicting
              transactional commands with the same-named tx ID as far as we're
              concerned... Stuff like that.
              Joe

  • How to edit deployment plan through Administration Console in weblogic 9.0?

    hi,<br>
    <p>I need to edit the deployment plan through console. But i'm not able to do so.Everytime i upload an ear file and tired to edit the environment variables or deployment plan through console it gives the message</p>
    <b>"This module is defined with DTD based descriptors and cannot be edited using the console. "</b><br>
    <p>I have been manually editing the deployment plan file so far.<br>
    In earlier versions of weblogic , there was an option to edit the environmental variables. Does weblogic 9.0 support the same? <br>
    I'm not able to find a solution soo far.<br>
    Please guide me. <br></p>
    Thanks<br>
    Smita

    Hi.
    I'm experiencing the same problem, using Weblogic 9.1.
    I have an ear file that contains a war file.
    Previously, the files were in servlet api 2.3 format (with a DTD). I used the DDConverter tool to update the files, and now I can use the console to change parameters for the web application, but I still can't change paramters for the main application: "This module is defined with DTD based descriptors and cannot be edited using the console.".
    Here is the content of the META-INF/application.xml contained in mey ear file:
    <?xml version='1.0' encoding='utf-8'?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4">
    <description>Application xxx</description>
    <display-name>xxx</display-name>
    <module>
    <web>
    <web-uri>xxx.war</web-uri>
    <context-root>xxx</context-root>
    </web>
    </module>
    </application>
    Thank you very much for your help.

  • Embedded weblogic admin console will not start

    Hi Forum members,
    I'm using JDeveloper Studio Edition Version 11.1.1.0.2 and trying to start the WebLogic admin console for
    JDeveloper's embedded WebLogic Server.
    The admin login screen appears, but after entering userid and password, the admin console crashes.
    The log entries are below; thanks for your assistance.
    <Nov 4, 2009 12:44:55 PM PST> <Error> <netuix> <BEA-423103> <[consolehelp] Deployment descriptor /WEB-INF/netuix-config.xml malformed.>
    <Nov 4, 2009 12:44:55 PM PST> <Error> <netuix> <BEA-423443> <Exception while initializing SingleFileServlet: [javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.bea.netuix.servlets.manager.types.netuix_config.WeblogicPortalAppDocument].
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.bea.netuix.servlets.manager.types.netuix_config.WeblogicPortalAppDocument
         at com.bea.netuix.util.ThrowServletException.throwServletException(ThrowServletException.java:28)
         at com.bea.netuix.servlets.manager.AppDescriptor.loadDescriptor(AppDescriptor.java:1053)
         at com.bea.netuix.servlets.manager.SingleFileServlet.reinitInternal(SingleFileServlet.java:124)
         at com.bea.netuix.servlets.manager.SingleFileServlet.initInternal(SingleFileServlet.java:84)
         at com.bea.netuix.servlets.manager.SingleFileServlet.access$100(SingleFileServlet.java:48)
         Truncated. see log file for complete stacktrace
    java.lang.NoClassDefFoundError: Could not initialize class com.bea.netuix.servlets.manager.types.netuix_config.WeblogicPortalAppDocument
         at com.bea.netuix.servlets.manager.types.netuix_config.WeblogicPortalAppDocument$Factory.parse(WeblogicPortalAppDocument.java:533)
         at com.bea.netuix.servlets.manager.AppDescriptor.loadConfig(AppDescriptor.java:670)
         at com.bea.netuix.servlets.manager.AppDescriptor.loadDescriptor(AppDescriptor.java:1040)
         at com.bea.netuix.servlets.manager.SingleFileServlet.reinitInternal(SingleFileServlet.java:124)
         at com.bea.netuix.servlets.manager.SingleFileServlet.initInternal(SingleFileServlet.java:84)
         Truncated. see log file for complete stacktrace
    >
    <Nov 4, 2009 12:45:24 PM PST> <Error> <netuix> <BEA-423540> <No IPreferenceStore implementation has been registered in WEB-INF/netuix-config.xml. See the javadoc for com.bea.portlet.prefs.spi.IPreferenceStore for information on how to configure a preference store. Using a no-op store as a default.>
    <Nov 4, 2009 12:45:57 PM PST> <Error> <netuix> <BEA-423203> <The included control tree for URI [PortalConfig/snmp/Snmp.book] is invalid.
    com.bea.netuix.nf.UIControlException: Error creating tree from uri [PortalConfig/snmp/Snmp.book].
         at com.bea.netuix.servlets.controls.content.ValidatedContent.validateContent(ValidatedContent.java:91)
         at com.bea.netuix.servlets.manager.SingleFileProcessor.getMergedControlFromFile(SingleFileProcessor.java:358)
         at com.bea.netuix.servlets.manager.UIServletInternal.processStream(UIServletInternal.java:272)
         at com.bea.netuix.servlets.manager.UIServletInternal.getTree(UIServletInternal.java:230)
         at com.bea.netuix.servlets.manager.UIServletInternal.createUIContext(UIServletInternal.java:105)
         Truncated. see log file for complete stacktrace
    com.bea.netuix.nf.UIControlException: One or more validation error(s) occurred during parsing [PortalConfig/snmp/Snmp.book]. The error(s) were: [Parser Error...
    org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'netuix:meta'. One of '{"http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0":toggleButton, "http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0":content}' is expected.
         at com.bea.netuix.servlets.controls.content.ValidatedContent.validateContent(ValidatedContent.java:80)
         at com.bea.netuix.servlets.manager.SingleFileProcessor.getMergedControlFromFile(SingleFileProcessor.java:358)
         at com.bea.netuix.servlets.manager.UIServletInternal.processStream(UIServletInternal.java:272)
         at com.bea.netuix.servlets.manager.UIServletInternal.getTree(UIServletInternal.java:230)
         at com.bea.netuix.servlets.manager.UIServletInternal.createUIContext(UIServletInternal.java:105)
         Truncated. see log file for complete stacktrace
    >
    <Nov 4, 2009 12:46:26 PM PST> <Warning> <netuix> <BEA-423319> <A default encoding was not found for webapp [console]. You can set a default encoding for portals in netuix-config.xml. Defaulting to [UTF-8].>
    <Nov 4, 2009 12:46:27 PM PST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@3ee3a0 - appName: 'consoleapp', name: 'console', context-path: '/console', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@13442f1[
    GET /console/console.portal HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 (CK-zz) Firefox/3.0.14
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://127.0.0.1:7101/console/login/LoginForm.jsp
    Cookie: JSESSIONID=jWpJKxnS1N3pd3ryQRGShJF7qbkZt2KrP9DdTPCphJh9vwvyJndL!662735321; ADMINCONSOLESESSION=5012KxnLnRNpnk679vWrWSbX2SXrhv0nqN11JcwGzJvhbjNy7L4R!662735321
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: Could not initialize class schemacom_bea_xml.system.sF6C6DB196AAE83D234595A687AE0370E.TypeSystemHolder
         at sun.misc.Unsafe.ensureClassInitialized(Native Method)
         at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
         at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
         at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
         at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
         Truncated. see log file for complete stacktrace

    The Fusion Middleware is installed on my Windows XP laptop. To start my admin server, I use the Windows start button and navigate to "Oracle Fusion Middleware 11.1.1.0.2" -> "User Projects" -> "base-domain" -> "Start Admin Server for WebLogic Server Domain" menu item.
    After the admin server is running, I use the Windows start button and navigate to "Oracle Fusion Middleware 11.1.1.0.2" -> "User Projects" -> "base-domain" -> "Admin Server Console" menu item.
    A web browser pops up and after a few minutes, the login screen appears. After logging in, the admin console return a error screen. The log file contains the previous posted entries.

  • Cookie will not write using weblogic 5.1 and Apache

              Hi,
              I'm having problems having my application write cookies under the UNIX environment. It works fine under
              the NT environment. Could this be a problem with the Apache plugin and weblogic 5.1???
              Under the UNIX environment, it will not write to the cookies at all. Is it because I have weblogic and apache
              on two sperate machines?? Any advice would be much appreciated.
              Thanks,
              Wayne
              

    There is no apache 2.x plugin for WLS 5.1.
    Sorry,
    Eric
    "sridhar" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am trying to use the webservices of apache 2.x server. I am usingweblogic 5.1 application server. Can you give the details of installation
    and configuration of plugins which is compatable for the version as i said
    above? As far as i search on BEA site i didnt get the solution for the
    version i mentioned. An early reply is expected.
    >
    Thanks a lot
    sridhar

  • Weblogic app server will not start

    When trying to restart weblogic app server console after shutdown it suddenly gives the following error. And console hangs. Any suggestions to what has happened ? It is on a development server.
    ####<May 1, 2015 5:29:52 PM CEST> <Warning> <netuix> <demnet21> <app_as_u_dom02> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <IBM-1540> <> <> <1430494192195> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=UnexpectedExceptionPage.>
    ####<May 1, 2015 5:29:52 PM CEST> <Error> <Console> <demnet21> <app_as_u_dom02> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <IBM-1540> <> <> <1430494192290> <BEA-240003> <Console encountered the following error Unexpected exception occured in page flow request processor:
    weblogic.management.NoAccessRuntimeException: Access not allowed for subject: principals=[], on ResourceType: weblogic.management.mbeanservers.edit.ConfigurationManagerMBean Action: execute, Target: startEdit
            at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:206)
            at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
            at javax.management.remote.rmi.RMIConnectionImpl_1036_WLStub.invoke(Unknown Source)
            at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:1033)
            at weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:544)

    The Windows Security Policies required for starting Tuxedo Domains as a service are:
    1.  Log on as service
    2.  Act as part of the operating system
    3.  Replace process level token
    4.  Increase quotas
    Please add these policies to the Local Admin or Network Admin account created for the Oracle Proc Manager and PeopleSoft user ids. This information is from the Km Doc:  E-TUXEDO: Unable to Start Domains on Windows Server As a Service (Doc ID 1623062.1)

  • Windows Deployment Services will not start

    After advertising a image to my remote client computer I receive this error:
    PXE-T01: the specified file was not found
    PXE-E3B: TFTP error - file not found
    PXE-M0F: Exiting Broadcom PXE ROM
    I logged into the server and noticed the "windows deployment service" is not running. I tried to start the service and it failed to start. I then checked the "Site System Status" log and noticed there was a "Critical" message for the PXE service point role,
    and a "warning" message for the management point role.
    On 8/16/10 for the PXE service point role I see this critical error: PXE Control Manager detected PXE service point is not responding to pxe requests. The error is 16389. Possible cause: pxe service point is not started or not responding.
    I would greatly appreciate any assistance.
    Thank you

    Thank you everyone for your patience and assistance. I have resolved the issue after double, and tripple checking everything. The problem was that the boot images (x64, and x86) were not pointed to SMSPXEIMAGES$ distribution which is the server share. I
    pointed it to the Server only. After pointing to both the share, and the server all works fine.
    So the initial issue with the deployment service not starting was to uninstall WDS, and the PXE option in SCCM. During the troubleshooting I accidently deleted the SMSPXEIMAGES$ distribution point from the boot image which caused another issue after resolving
    the windows deployment problem.
    Hope this helps the next person that has this issue.
    The solution exists already in the link that I gave you, see the point N°5 :)
    http://blogs.technet.com/b/smsandmom/archive/2008/09/17/configmgr-2007-troubleshooting-pxe-service-point-issues-and-wds-service-not-starting.aspx

  • Planning will not render post-installation

    Installed Planning 11.1.2.3 in a distributed environment following the EPM_Standard_Deployment docs.
    Post-installation, system diagnostics show everything working fine and all other products work correctly.
    Assume Server A and B
    Server A - Foundation, Planning installed but not config'd (per documentation)
    Server B - Planning installed and config'd
    When attempting to access Planning Administration via Workspace on Server A, I get a "website not found error".
    When attempting to access Planning directly on Server B, I get re-routed to the following URL and nothing renders (servername redacted):
    http://servername:8300/HyperionPlanning/faces/LogOn?_afrLoop=786018129329&_afrWindowMode=0&_adf.ctrl-state=oo6v2vjl8_4
    In the HyS9Planning_epmsystem4-syserr.log, I get the following error:
    HspRuntimeException: Registry: Error while retrieving System DB connection info from Registry
    I can confirm that the config utility created the HSP tables in the Shared Services schema.
    I have also dropped/recreated the HSP tables using the config utility to no avail.
    I checked the JDBC connection info for Planning in the weblog admin console, and all looks well.
    I've also tried to redeploy the Foundation web server, also to no avail.
    Any ideas on where I might have gone wrong? Seems like a pretty obvious error message, but I would have thought that re-configuring Planning would resolve the issue?
    Thank you in advance

    Pablo,
    Originally, I noticed the issue on the workspace server (during my post-installation testing) using the default URL for workspace:
    http://server:19000/workspace/index.jsp
    This results in a "website cannot be found error" in body of the page.
    When that did not work, I decided to try and access Planning directly via the default Planning URL on the Planning server:
    http://server:8300/HyperionPlanning/
    Immediately once the browser receives a response from http://serverB:8300/HyperionPlanning, the URL changes to:
    http://servername:8300/HyperionPlanning/faces/LogOn?_afrLoop=786018129329&_afrWindowMode=0&_adf.ctrl-state=oo6v2vjl8_4
    This, along with the HSP error message about repository credentials leads me to believe that it is unrelated to OHS. Also, I can confirm entries for Planning the OHS file you provided above.

  • Deployment Server Will not Start

    I don't know what happened. I was working through the tutorials and had just finished populating the database. When I tried to run the example again I get the error The Sun Java Application Server 8.2 could not start. Possible reasons include: Port Conflicts, Incorrect Server Configuration, Corrupted Deployed Applications.
    I've uninstalled/re-installed about 4 different times and nothing will run.
    I've never had an IDE just stop working before, I've tried to divine the logs but I'm clueless. I would appreciate any help. I think that this platform could be very useful, but I can't understand why it is so fragile.

    The issue most likely might be port conflict
    - First check if the port conflicts. See the following FAQ for resolving port conflict issue "FAQs � Working with Deployment Servers"
    http://developers.sun.com/jscreator/reference/faqs/technical/depsrvs/index.jsp
    Also useful FAQ (same url as above):
    Where do I look for log file information for the Creator IDE or the deployment servers?

  • Family Sharing plan will not allow purchase by iTunes gift card.

    We are on the Family Sharing plan.  All family members have iTunes gift card balances on their accounts.  iTunes store is only allowing purchases by credit card.  According to all FAQ's on Apple site, it should access gift card first.  How do we fix this?

    Doerr6,
    You are correct about how it is supposed to work.
    However, many people are reporting the same problem that you are seeing.  The only way to get it resolved is to contact iTunes Customer Service.

  • Q: Changing login-config with a deployment plan

    Hi everybody,
    I have an application for which the developer sets the login-config in web.xml as follows:
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Sec_Con-Realm</realm-name>
    </login-config>
    But I need it to be
    <login-config>
    <auth-method>CLIENT-CERT</auth-method>
    <realm-name>myrealm</realm-name>
    </login-config>
    So I defined a deployment plan like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
    <application-name>AppTest</application-name>
    <variable-definition>
    <variable>
         <name>LoginConfig_AuthMethod</name>
         <value>CLIENT-CERT</value>
    </variable>
    <variable>
         <name>LoginConfig_RealmName</name>
         <value>myrealm</value>
    </variable>
         </variable-definition>
    <module-override>
    <module-name>AppTest.ear</module-name>
    <module-type>ear</module-type>
    <module-descriptor external="true">
    <root-element>weblogic-application</root-element>
    <uri>META-INF/weblogic-application.xml</uri>
    </module-descriptor>
    <module-descriptor external="false">
    <root-element>application</root-element>
    <uri>META-INF/application.xml</uri>
    </module-descriptor>
    <module-descriptor external="true">
    <root-element>wldf-resource</root-element>
    <uri>META-INF/weblogic-diagnostics.xml</uri>
    </module-descriptor>
    </module-override>
    <module-override>
    <module-name>AppTest.war</module-name>
    <module-type>war</module-type>
    <module-descriptor external="true">
    <root-element>weblogic-web-app</root-element>
    <uri>WEB-INF/weblogic.xml</uri>
    </module-descriptor>
    <module-descriptor external="false">
    <root-element>web-app</root-element>
    <uri>WEB-INF/web.xml</uri>
    <variable-assignment>
         <name>LoginConfig_AuthMethod</name>
              <xpath>/web-app/login-config/auth-method</xpath>
              <operation>replace</operation>
         </variable-assignment>
    <variable-assignment>
         <name>LoginConfig_RealmName</name>
              <xpath>/web-app/login-config/realm-name</xpath>
              <operation>replace</operation>
         </variable-assignment>
    </module-descriptor>
    </module-override>
    </deployment-plan>
    But apparently my deployment plan doesn't work. If I set web.xml manually to have CLIENT-CERT/myrealm the application works. When I leave it at BASIC/Sec_Con-Realm it doesn't and asks to enter user/passwd. It seams as if the deployment plan were ignored. I don't get any errors or such, just the wrong behavior.
    I use this WLST clause to deploy the EAR:
    deploy('AppTest', 'dist/AppTest.ear', targets='node4', planPath='config/plan.xml', timeout=600)
    The target WLS version is 10.3.4. Any clues?
    Regards
    Slawo.

    Ivan, I don't know if this will work or not, but if you look at Edwin's example here http://biemond.blogspot.com/2009/04/using-weblogic-deployment-plan-to.html he uses the following syntax xpath so that you know which context-param needs to be replaced:
    <variable-assignment>
    <name>org.mytests.env</name>
    <xpath>/web-app/context-param/[param-name="org.mytests.env"]/param-value</xpath>
    <operation>replace</operation>
    </variable-assignment>
    Give that a shot

  • Deployment plan to update web.xml

    Hello,
    Is it possible to use a deployement plan to update the web.xml file of an war inside an ear ?
    I would like to map a servlet on a new URI using a new workmanager by configuration (I mean once my application is built) I suppose it is possible to use the deployment plan to add a section inside the web.xml.
    For example, I would like to add the folowing section :
    <servlet>
    <servlet-name>DummyServlet</servlet-name>
    <servlet-class>com.company.servlets.DummyServlet</servlet-class>
    <init-param>
    <param-name>wl-dispatch-policy</param-name>
    <param-value>DummyWorkManager</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>DummyServlet</servlet-name>
    <url-pattern>/myDummyServlet</url-pattern>
    </servlet-mapping>
    Thank you for helping me on this point
    Best Regards,
    C.

    To my knowledge you can not add elements to your deployment descriptors, but you can change them, for example
    say we have the following ejb-jar.xml
    <ejb-jar ...>
        <enterprise-beans>
            <session>
                <ejb-name>Bedrijf</ejb-name>
                <env-entry>
                    <env-entry-name>something</env-entry-name>
                    <env-entry-type>java.lang.String</env-entry-type>
                    <env-entry-value>iets</env-entry-value>
                </env-entry>
            </session>
        </enterprise-beans>
    </ejb-jar>and we want to change the value of something. Now we can generate a plan.xml (for example by using weblogic.Plangenerator
    http://download.oracle.com/docs/cd/E13222_01/wls/docs90/deployment/wlplangenerator.html). When we do this for an EAR
    file we get something like the following:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
      <application-name>test</application-name>
      <variable-definition>
        <variable>
          <name>SessionDescriptor_timeoutSecs_12870427304900</name>
          <value>1800</value>
        </variable> 
        <variable>
            <name>something</name>
            <value>anders</value>
        </variable>
      </variable-definition>
      <module-override>
        <module-name>EJBSessionBeans.ear</module-name>
        <module-type>ear</module-type>
        <module-descriptor external="true">
          <root-element>weblogic-application</root-element>
          <uri>META-INF/weblogic-application.xml</uri>
          <variable-assignment>
            <name>SessionDescriptor_timeoutSecs_12870427304900</name>
            <xpath>/weblogic-application/session-descriptor/timeout-secs</xpath>
          </variable-assignment>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>application</root-element>
          <uri>META-INF/application.xml</uri>
        </module-descriptor>
        <module-descriptor external="true">
          <root-element>wldf-resource</root-element>
          <uri>META-INF/weblogic-diagnostics.xml</uri>
        </module-descriptor>
      </module-override>
      <module-override>
        <module-name>Model.jar</module-name>
        <module-type>ejb</module-type>
        <module-descriptor external="true">
          <root-element>weblogic-ejb-jar</root-element>
          <uri>META-INF/weblogic-ejb-jar.xml</uri>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>ejb-jar</root-element>
          <uri>META-INF/ejb-jar.xml</uri>
           <variable-assignment>
            <name>something</name>
            <xpath>/ejb-jar/enterprise-beans/session/[ejb-name="Bedrijf"]/env-entry/[env-entry-name="something"]/env-entry-value</xpath>
            <operation>replace</operation>
          </variable-assignment>
        </module-descriptor>
      </module-override>
      <module-override>
        <module-name>Userinterface.war</module-name>
        <module-type>war</module-type>
        <module-descriptor external="true">
          <root-element>weblogic-web-app</root-element>
          <uri>WEB-INF/weblogic.xml</uri>
          <hash-code>1287042734068</hash-code>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>web-app</root-element>
          <uri>WEB-INF/web.xml</uri>
        </module-descriptor>
      </module-override>
      <config-root>...</config-root>
    </deployment-plan>To this plan.xml we added a variable definition
    <variable-definition>
          <variable>
            <name>something</name>
            <value>anders</value>
        </variable>
    </variable-definition>To change the contents of the variable something we add the following to the ejb-jar module section
    <module-descriptor external="false">
          <variable-assignment>
            <name>something</name>
            <xpath>/ejb-jar/enterprise-beans/session/[ejb-name="Bedrijf"]/env-entry/[env-entry-name="something"]/env-entry-value</xpath>
            <operation>replace</operation>
          </variable-assignment>
        </module-descriptor>The same steps can be followed when you want to change the contents of your web.xml (but note that the elements must be present
    otherwise the xpath assignment will not work)

  • Using deployment plan to change virtual directory mapping

    Hi all,
    Have anyone tried this before?
    I have a deployment plan to add virtual directory to my weblogic descriptors as follow:
    Inside <variable-definitions> tag:
    <variable>
          <name>LocalPath</name>
          <value>C:/</value>
        </variable>
        <variable>
          <name>VirtualPath</name>
          <value>/Temp/*</value>
        </variable> Then in to add the virtual directory to weblogic.xml:
    <module-descriptor external="false">
          <root-element>weblogic-web-app</root-element>
          <uri>WEB-INF/weblogic.xml</uri>
          <variable-assignment>
             <name>LocalPath</name>
             <xpath>/weblogic-web-app/virtual-directory-mapping/local-path</xpath>
          </variable-assignment>
          <variable-assignment>
             <name>VirtualPath</name>
             <xpath>/weblogic-web-app/virtual-directory-mapping/url-pattern</xpath>
             <operation>add</operation>
          </variable-assignment>
        </module-descriptor>But I have this error:
    Error VALIDATION PROBLEMS WERE FOUND C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\planplan.xml:0: problem: cvc-complex-type.2.4c: Expected element 'url-pattern@http://xmlns.oracle.com/weblogic/weblogic-web-app' before the end of the content in element virtual-directory-mapping@http://xmlns.oracle.com/weblogic/weblogic-web-app:<C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\planplan.xml>
    I also tried using the xpath for url-pattern as followed:
    <xpath>/weblogic-web-app/virtual-directory-mapping/[local-path="C:/"]/url-pattern</xpath>
    But I have the same error. The <url-patter> element is not added correctly to the virtual directory mapping tag.
    It is supposed to work. Anyone has done this before ? or is this a bug of deployment plan.
    Thank you very much.
    Regards
    K.

    Hi Jay,
    I have looked at your link and modified my plan.xml accordingly ( the original plan is automatically generated by weblogic ). But I still get the same error. Could you have a look and tell me what's wrong?
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
      <application-name>app</application-name>
      <variable-definition>
        <variable>
          <name>SessionDescriptor_timeoutSecs_12786382366650</name>
          <value>3601</value>
        </variable>
        <variable>
        <name>firstNode</name>
        <value></value>
        </variable>
        <variable>
          <name>LocalPath</name>
          <value>C:\</value>
        </variable>
        <variable>
          <name>VirtualPath</name>
          <value>/Temp/*</value>
        </variable>
      </variable-definition>
      <module-override>
        <module-name>ReviewApp.ear</module-name>
        <module-type>ear</module-type>
        <module-descriptor external="false">
          <root-element>weblogic-application</root-element>
          <uri>META-INF/weblogic-application.xml</uri>
          <variable-assignment>
            <name>SessionDescriptor_timeoutSecs_12786382366650</name>
            <xpath>/weblogic-application/session-descriptor/timeout-secs</xpath>
          </variable-assignment>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>application</root-element>
          <uri>META-INF/application.xml</uri>
        </module-descriptor>
        <module-descriptor external="true">
          <root-element>wldf-resource</root-element>
          <uri>META-INF/weblogic-diagnostics.xml</uri>
        </module-descriptor>
      </module-override>
      <module-override>
        <module-name>ReviewUI.war</module-name>
        <module-type>war</module-type>
        <module-descriptor external="false">
          <root-element>weblogic-web-app</root-element>
          <uri>WEB-INF/weblogic.xml</uri>
          <variable-assignment>
            <name>firstNode</name>
            <xpath>/weblogic-web-app/virtual-directory-mapping</xpath>
            <operation>add</operation>
          </variable-assignment>
          <variable-assignment>
             <name>LocalPath</name>
             <xpath>/weblogic-web-app/virtual-directory-mapping/local-path</xpath>
             <operation>add</operation>
          </variable-assignment>
          <variable-assignment>
             <name>VirtualPath</name>
             <xpath>/weblogic-web-app/virtual-directory-mapping/[local-path="C:\"]/url-pattern</xpath>
             <operation>add</operation>
          </variable-assignment>
        </module-descriptor>
        <module-descriptor external="false">
          <root-element>web-app</root-element>
          <uri>WEB-INF/web.xml</uri>
        </module-descriptor>
      </module-override>
      <config-root>C:\Users\Napoleon\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\upload\ReviewApp\app\plan</config-root>
    </deployment-plan>

  • Deployment plan question

    I have the following code in my Spring applicationContext.xml -
    <!-- WebLogic JNDI -->
         <bean id="dataSource"
              class="org.springframework.jndi.JndiObjectFactoryBean">
              <property name="jndiName"
                   value="cyncssit" />
         </bean>
    I would like to change the jndi name of the datasource based on the environment to which the app is deployed. I understand the weblogic deployment plan can only override properties in weblogic-specific deployment descriptors and not the properties in applicaton.xml, web.xml or any spring config files. I was wondering if there is a way to specify the jndi name of the datasource in weblogic-application.xml or weblogic.xml and refer to that name in my spring config file? Bottom line is that I need to override the datasource name during deployment. Any solutions would be greatly appreciated.
    Thanks in advance!

    Yes, You are right. Plan.xml cannot be used for this purpose...because it can be used only to alter J2EE/WebLogic Standard Deployment Descriptors.
    <h2><font color=red>WORKAROUND</font></h2>This workaround requires some changes in your application...So u may not like it.
    But as an Alternative option you can do the following:
    To know more about "virtual-directories" please refer to: http://jaysensharma.wordpress.com/2010/03/29/virtual-directory-mapping-in-webapps/
    <h3>Step1).</h3> Inside your Application *"WEB-INF/weblogic.xml"* Configure a Virutal-Directory mapping in your "weblogic.xml" like following:
    <?xml version="1.0" encoding="ISO-8859-1"?>
       <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
          <virtual-directory-mapping>
             <local-path>C:\DELETE\Spring_JNDI_Demo</local-path>
             <url-pattern>*.xml</url-pattern>
          </virtual-directory-mapping>
    </weblogic-web-app>
    <h3>Step2).</h3> Now Place your *"applicationContext.xml"* inside *"C:\DELETE\Spring_JNDI_Demo"* directory...so that whenever you want you can change it...(the JNDIName).
    <h3>Step3).</h3> inside your *"WEB-INF/web.xml"* provide the mapping of context-param like below:
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
    <display-name>SpringOne</display-name>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <font color=maroon> <param-value>applicationContext.xml</param-value></font><BR>
    <font color=red><!-- NOTE: param-value is NOT "WEB-INF/applicationContext.xml" rather only "applicationContext.xml" --></font> <BR>
    </context-param>
    <servlet>
    <servlet-name>SpringContextServlet</servlet-name>
    <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    </web-app>
    <h3>Step4).</h3> Now Deploy your Application ...and then Later whenever you want to change the JNDI name ....Just you need to edit *"applicationContext.xml"* inside *"C:\DELETE\Spring_JNDI_Demo"* and then <font color=red><b>Redeploy the Application</b></font>
    Following Working Sample is attached...Here: http://www.4shared.com/file/ewFN1ODj/Spring_JNDI_Demo.html you may want to try. The Sample Application is Tested in WLS10.3
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

Maybe you are looking for