Deployment order across applications

I have a web app that implements ServletContextListener. This app on deployment
looks for an ejb on another app. How do I tell weblogic to deploy the web app
before the ejb app. These two have to be different applications. I cannot combine
them into the same ear. I am not able to find ways to identify deployment order
across applications. Any thoughts.
Any ideas on other approaches if this is not possible will be greatly appreciated.
Thanks in advance.

We don't want the dependency between the EAR application and this web app. We also
plan to deploy this web app on multiple boxes that will require only a servlet
container and will not require an app server. Also the EAR app will be deployed
on multiple boxes and we do not want the extra overhead of this web app. Hope
this answers your question.
Do you know of any alternative approach to this problem since I do not see having
deployment ordering across apps in weblogic.
Thanks.
Gajendra Sanil
"Dimitri I. Rakitine" <[email protected]> wrote:
I'm curious, why you cannot deploy your EJBs and WAR in the same EAR?
Deploying them separately will result in a very serious performance
penalty because local RMI optimization will not be used.
Gajendra Sanil <[email protected]> wrote:
I have a web app that implements ServletContextListener. This app ondeployment
looks for an ejb on another app. How do I tell weblogic to deploy theweb app
before the ejb app. These two have to be different applications. Icannot combine
them into the same ear. I am not able to find ways to identify deploymentorder
across applications. Any thoughts.
Any ideas on other approaches if this is not possible will be greatlyappreciated.
Thanks in advance.--
Dimitri

Similar Messages

  • Weblogic.deployer  and deployment order

    Good day all,
    Is there a way to force an application to deploy last (because of dependencies)?
    I know how to modify the deployment order in the console or wlst, but if all applications are in the same application directory, how can you make sure that appxyz.war deploys last?
    Thanks
    Ash

    Ashanty,
    you may want to refer this link for deployment order of applications..
    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13952/taskhelp/deployment/ChangeTheServerDeploymentOrder.html
    I don't think weblogic.deployer will allow you to do deployment order and it can be done through Administration console only.
    Thanks
    Lawrence Manickam
    http://toyork.blogspot.ca

  • Modify Deployment Order

    Hello all,
    I have 2 deployments, deployment 2 needs to be deployed after deployment 1 because it d2 is using d1. As far as I know you have so called "Deployment Order" (DO). d1 hast DO=100 and d2 has DO=200. If so, then eg after a restart of the weblogic d1 is deployed before d2.
    Now my question: How to modify DO during the building of d2? That means that I want to have the information DO=200 in web.xml (or whatever) of the d2. I've tried <load-on-startup>2</load-on-startup> but it doesn't work because I think it is only valid for 2 different servlets in the sam .ear. But I have 2 .ears. Maybe edit weblogic.xml somehow. But I think weblogic.xml affects all deployments and not only 1.
    Thank you in advance for you feedback.
    Kind regards,
    Anton

    To my knowledge to change the deployment order, the application must first be deployed, for example by using the WLST deploy command (http://docs.oracle.com/cd/E24329_01/web.1211/e24490/reference.htm#i1024284) after which you can obtain an instance of the AppDeploymentMBean (http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13951/core/index.html) and change the DeploymentOrder attribute (http://docs.oracle.com/cd/E24329_01/web.1211/e24443/managing.htm#DEPGD306).
    The following shows an example (with shared libraries)
    print 'DEPLOY LIBRARIES';
    deploy('jsf-ri', path=jsfrilibrary, targets='Cluster', libraryModule='true');
    deploy('trinidad', path=trinidadlibrary, targets='Cluster', libraryModule='true');
    deploy('coherence-web-spi', path=coherencelibrary, targets='Cluster', libraryModule='true');
    print 'START EDIT MODE';
    edit();
    startEdit();
    print 'CHANGE DEPLOYMENT ORDER OF DEPLOYED LIBRARIES';
    libraries = cmo.getLibraries();
    for library in libraries:
         library.setDeploymentOrder(1);
    print 'SAVE AND ACTIVATE CHANGES';
    save();
    activate(block='true');

  • Order of Deployment across Applications

    Is there any way I can set Weblogic to load certain applications first before the
    others are loaded.
    In my case, I have an Ear file "A" which is dependent on another EAR File "B"
    to be started first. ("A" has a MDB which sends stuff to B immediately after deployment.
    So if "B" is not started, it fails till "B" is deployed).\
    Is it based on the entries in teh config.xml? config.xml keeps swapping entries
    up and down whenever we make a change to XML. So how do i guarantee that applicatin
    "B" gets loaded before "A"?
    Thanks in advance
    Raj

    By default, WebLogic Server deploys Enterprise Applications, EJBs, Web Applications, and Web Services deployed immediately after its subsystems initialize at boot time. Startup classes are deployed and run after application modules have been deployed.
    The actual deployment order of modules is determined by their Load Order attribute. By default, new applications and modules are configured with a Load Order value of 100. Modules with a lower Load Order value are deployed before those with a higher value during startup. Modules with the same Load Order value are deployed in alphabetical order using the deployment name.
    Follow these steps to view or change the deployment order of modules deployed to the WebLogic Server domain:
    Hi
    1. Select the Deployments node in the left pane. The right pane displays all modules configured for deployment in the domain, listed in their current deployment order.
    2. Select the Change button next to a module name to display the Change Deployment Order page.
    3. Enter a new value in the Load Order field, and click Apply to apply your changes. The again displays the complete list of modules configured for deployment in the domain.
    To change the deployment order of a Startup class, follow the instructions in Configure a Startup or Shutdown Class.
    Regards
    Prasanna Yalam

  • Application deployment order with weblogic-ejb-jar.xml and jndi-name

    I have two applicatation working on Weblogic server v. 10.3.6.
    First of them creating one ejb stateless bean and creates JNDI maping for it (in weblogic-ejb-jar.xml file):
    <weblogic-enterprise-bean>
         <ejb-name>ConfigMenegerBean</ejb-name>
         <stateless-session-descriptor>
         <stateless-session-descriptor>
              <business-interface-jndi-name-map>
              <business-remote>package.ConfigurationSessionRemote</business-remote>
              <jndi-name>ConfigMeneger</jndi-name>
              </business-interface-jndi-name-map>
         </stateless-session-descriptor>
         <enable-call-by-reference>true</enable-call-by-reference>
         <jndi-name>ConfigMeneger</jndi-name>
    </weblogic-enterprise-bean>
    Second appication have to refer for this bean by JNDI using spring been lookup :
    <jee:jndi-lookup id="configManager" jndi-name="ConfigMeneger"/>
    I changed deployment order parameter for both apllication(first=100 and second=500) in order to first app start first and share bean by jndi to another application. Unfortuantelly I got an error :
    javax.naming.NameNotFoundException: Unable to resolve 'ConfigMeneger'. Resolved ''; remaining name 'ConfigMeneger'
    How can I configure deployment order that first application make jndi mapping for bean, before the second application will use it ?

    Ok in a way I have solved my problem (even if I am not completely satisfied by the way on how to proceed...). So thanks to message "JBuilder7.0 and Weblogic6.1" on EJB sun forum :
    http://forum.java.sun.com/thread.jsp?thread=285735&forum=13&message=1255488
    I have tried the following actions (mentionned in the other forum messages):
    - To preserve changes to weblogic*.xml, the safest way is to change the ejb-borland.xml.
    (I am not sure that I have applied this advice correctly, because I suppose that syntax is not similar in weblogic file or borland file).
    And you can MANUALLY update the weblogic file in your JAR archive.
    1. Open the EJB JAR file in Winzip and extract the weblogic-ejb-jar.xml file, so that a copy exists in your
    project directory.
    2. Open this file (in Notepad), add the WebLogic specific information, and then save the file.
    3. Now, when you are finished with the build cycle and are ready to deploy, you may open the EJB jar file
    and swap in the weblogic-ejb-jar.xml file."
    Good Luck.

  • SCCM 2012 Deployment Packages and Applications deployment order

    Hello I have an application which deploys Office 2013 through SCCM 2012 I then want to copy some templates to two directories in Office. I have added a script the OFC tool which is suppose to run after the install. But the files don't appear. If I run the
    same script manually all the files are copied. I ended up creating a package just for the Office Template files, but I have to run this manually afterwards. Should I Persist with the script or is there a way to run the package automatically after the application
    deployed has run?

    Sounds like best solution is to create an MSI that can copy the template files and deploy as an application after Office Install. Is this something I can do in Install Shield?
    Seems weird that they would have an option in the MSP to run a script but it doesn't work.
    I wouldn't go to that trouble myself, but that's because I don't author MSIs as part of my role (we have a packaging team who do that task, and they seem to regard authoring an MSI as the solution for everything ;)
    the ConfigMgr AppModel happily caters for all kinds of payloads, despite referring to them as "applications" there is no requirement for the payload to be an MSI.
    MS have long documented that the "run scripts" and "chaining" features of the Office setup engine are "not robust" (i.e. not very tolerant, are a one-shot kind of thing). Some seem to work just fine, others have no joy with it. I don't use it myself, there
    are plenty of other methods, but I find it comes down to what you are comfortable/confident/familiar with. Everything has pros and cons, and above all else, I've found that it's my/our assumptions/understandings that tend to be why things go off-course.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Problems about deploying Oracle web application (Forms, Reports)

    I am going to deploy Oracle web applications (Forms and Reports) and plan to use the same server machine for both Application web server and Database server.
    1. How can I enable SSL (for data encryption) on Application web server for Oracle Forms ?
    2. Since both Application web server and Database server will use the same machine, do I still need Oracle Advanced Security for data transmission between Application web server and Database server if data encryption for transmission is required ?
    3. Can I user Oracle Forms to call Oracle Report on web as I did in Client/Server in the past ?
    Experts like you may have come across such problems. Would you please give me some opinions/ideas ?
    Regards,
    Richard

    1. check the paper about the Forms servlet architecture on otn forms section for SSL tips.
    3. Check the reports and forms integration paper on otn too.

  • Javax.xml.soap.SOAPException in Fusion Order Demo Application

    Hi,
    I setup the Oracle Fusion Middleware. I also deployed the Oracle Fusion Order Demo Application in the soa_server. I placed the order in the store front web for the price of 3000. The Store font Service initiates the call to webservice (OrderBookingService) and aproved the order using BAM worklist application and then I found the below error in the soa_server_diagnostic log file.
    =====================================================================================================================================
    2011-01-14T11:17:27.525+08:00] [soa_server1] [WARNING] [] [oracle.bam.adapter.adc.soap.DOOperationsDispatch] [tid: BatchProcessorThread(0)] [userId: <anonymous>] [ecid: 0000Iq2VyNWDCgWFLzuHOA1DBcDA000CjD,1:30958] [dcid: b6be438a400b4064:-27d42103:12d7db2014a:-7ffc-0000000000001b7c] Error in batch webservice[[
    javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:784)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105)
         at oracle.bam.adapter.adc.soap.DOOperationsDispatch.batch(DOOperationsDispatch.java:103)
         at oracle.bam.adapter.adc.soap.SOAPBatch.flush(SOAPBatch.java:107)
         at oracle.bam.common.batching.BatchProcessor.run(BatchProcessor.java:1149)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:227)
         at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75)
         at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)
         at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)
         at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)
         at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:275)
         at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:95)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:741)
         ... 10 more
    Caused by: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:516)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:1232)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:225)
         ... 17 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:215)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:212)
         at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3606)
         at HTTPClient.HTTPConnection.doConnect(HTTPConnection.java:4364)
         at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3358)
         at HTTPClient.HttpOutputStream.closeImpl(HttpOutputStream.java:461)
         at HTTPClient.HttpOutputStream.access$000(HttpOutputStream.java:99)
         at HTTPClient.HttpOutputStream$1.run(HttpOutputStream.java:417)
         at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:666)
         at HTTPClient.HttpOutputStream.close(HttpOutputStream.java:415)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.sendMessage(HttpSOAPConnection.java:1045)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:491)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:1232)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:225)
         at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75)
         at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)
         at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)
         at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)
         at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273)
         at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:94)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:741)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105)
         at oracle.bam.adapter.adc.soap.DOOperationsDispatch.batch(DOOperationsDispatch.java:103)
         at oracle.bam.adapter.adc.soap.SOAPBatch.flush(SOAPBatch.java:106)
         at oracle.bam.common.batching.BatchProcessor.run(BatchProcessor.java:1149)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    =====================================================================================================================================
    Edited by: Raju Ilayaraja on Jan 17, 2011 12:18 AM

    Hi,
    BookingOrderProcess is working correctly. I am getting the below error periodically.It looks like some batch process is throwing the communication error.
    [2011-01-17T19:16:26.231+08:00] [soa_server1] [WARNING] [] [oracle.bam.adapter.adc.soap.DOOperationsDispatch] [tid: BatchProcessorThread(0)] [userId: <anonymous>] [ecid: 0000Iq2VyNWDCgWFLzuHOA1DBcDA000CjD,1:30958] [dcid: b6be438a400b4064:-27d42103:12d7db2014a:-7ffc-0000000000001b7c] Error in batch webservice[[
    javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:784)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105)
         at oracle.bam.adapter.adc.soap.DOOperationsDispatch.batch(DOOperationsDispatch.java:103)
         at oracle.bam.adapter.adc.soap.SOAPBatch.flush(SOAPBatch.java:107)
         at oracle.bam.common.batching.BatchProcessor.run(BatchProcessor.java:1149)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:227)
         at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75)
         at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)
         at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)
         at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)
         at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:275)
         at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:95)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:741)
         ... 10 more
    Caused by: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:516)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:1232)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:225)
         ... 17 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    Regards,
    Ilaya

  • JCA Binding Component connection issue in the Oracle Order Demo Application

    Hi,
    I setup the Oracle Fusion Middleware. I also deployed the Oracle Fusion Order Demo Application in the soa_server. I placed the order in the store front web.I initiated the webservice (OrderBookingService) and found the below error in the soa_server_diagnostic log file.
    =====================================================================================================================================
    Caused by: BINDING.JCA-12563
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Write' failed due to: JCA Binding Component connection issue.
    JCA Binding Component is unable to create an outbound JCA (CCI) connection.
    OrderBookingComposite:USPSShipment [ Write_ptt::Write(body) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510
    JCA Resource Adapter location error.
    Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/>
    The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/file/FODFileAdapter'.
    The reason for this is most likely that either
    1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or
    2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/file/FODFileAdapter. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR).
    Please correct this and then restart the Application Server
    The invoked JCA adapter raised a resource exception.
    =====================================================================================================================================

    Thanks Guys.
    I resolved the issue.
    The issue is that FileAdapter for FulFillment mediator is missing.
    Solution 1:
    File adapter connection factory needs to be created via the weblogic console
    The details below:     
         JNDI Name: eis/file/FODFileAdapter
         controlDir          java.lang.String     /tmp/control
         inboundDataSource     java.lang.String     jdbc/SOADataSource
         outboundDataSource     java.lang.String     jdbc/SOADataSource
         outboundDataSourceLocal     java.lang.String     jdbc/SOALocalTxDataSource
         outboundLockTypeForWritejava.lang.String     oracle
    Solution 2:
    seedFodFileAdapterResources target in $FOD_HOME/bin/common-sca-tools.xml needs to be executed to create the file adaptor.
    Thanks.
    Ilayaraja

  • Deployment order in 6.0

    I'm sure this has been covered before but is there anyway to dictate the
    deployment order of EJB's contained in a single EAR file?
    Or does WL use some default scheme - alphanumeric sorting, order in the
    applications.xml file??
    Thanks
    Tom

    The default scheme is random.
    in your config.xml you can specify the order in 6.x, it's just not documented.
    The format is:
    <EJBComponent DeploymentOrder="9" Name="discount"
    Targets="wlcsServer" URI="discount.jar"/>
    We were told by a Bea consultant to set all of the out of the box
    EJBs to 9, all of our beans that are not run through ejbc to something like 80,
    and all of the rest to 99.
    WLS will randomly pick the order for all EJBs with the some deployment order,
    for example 9.
    The catch, once it finds one EJB that is fully packaged (tan through ejbc, it
    will assume that all of the remainder are fully packaged. This can cause problems.
    Tom Gerber <[email protected]> wrote:
    I'm sure this has been covered before but is there anyway to dictate
    the
    deployment order of EJB's contained in a single EAR file?
    Or does WL use some default scheme - alphanumeric sorting, order in the
    applications.xml file??
    Thanks
    Tom

  • Set deployment order at deployment

    Hi All,
    This is my situation. i have a WLST deploy script to deploy a few EAR files (WLS 10). The first service is deployed in 5 minutes, the second takes 8 minutes, the third will take 12 minutes and so on until a timeout occurs. Every service takes more time to deploy (size is about the same). I think this has something to do with server getting buzzy with all the deployments. Is there a way to set the deployment order at deploy time so the server first handles all action for the first service before he starts handling the second service? Or is there some other solution to prevent the deployment script form timing out?
    Thanks

    You can change to deployment order by first obtaining a reference to your deployment by using
    deployments = cmo.getAppDeployments;Then the deployment order can be changed as follows:
    for deployment in deployments:
        deployment.setDeploymentOrder(1);The deployment order can be set after you have deployed the application.

  • Error while deploying a composite application

    Hi
    I have an error while deploying my composite application.
    It says
    java.lang.NoClassDefFoundError: com/sap/caf/ui/utils/cool/CoolConnectionProperties
    The versions of my NWDS and WAS are 7.0.Please help.
    Thanks,
    ms.

    Hi
    I have added references to libraries with hard reference type.I also added the dc
    tc/conn/connectorframework.
    I still have errors
    => deployment aborted : file:/C:/DOCUME1/pr46715/Local Settings/Temp/temp28823sap.comcarpool~permissions.sda
    Aborted: development component 'carpool/permissions'/'sap.com'/'local'/'20070702161445':
    Caught exception during access of archive "E:\usr\sap\NWS\DVEBMGS01\SDM\root\origin\sap.com\carpool\permissions\local\20070702161445\temp28823sap.comcarpoolpermissions.sda":
    java.lang.RuntimeException: ERROR: Cannot initialize EARReader: Error while initializing Extended Ear Reader using file: E:\usr\sap\NWS\DVEBMGS01\SDM\root\origin\sap.com\carpool\permissions\local\20070702161445\temp28823sap.comcarpoolpermissions.sda. Reason: Exception occurred while reading ear descriptor xml. Reason: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: </ expected(META-INF/application-j2ee-engine.xml, row:10, col:25)Exception is:
    => deployment aborted : file:/C:/DOCUME1/pr46715/Local Settings/Temp/temp28822sap.comcarpool.ear
    Aborted: development component 'carpool'/'sap.com'/'local'/'20070702165134':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/carpool.. Reason: Exception during generation of components of application sap.com/carpool in container EJBContainer.; nested exception is:      com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/carpool in container EJBContainer.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Regards
    ms.

  • Flex error while deploying a VC application

    Hi Experts,
    Though I have rarely worked on VC developments, I have to troubleshoot an issue wherein we are getting following error while deploying a VC Application.
    Error: Error in compiling flex application. Consult log file for details.
    I have got a log file and it has written out 100s of lines of log, however, following is the important part from the log file:
    #00145E9635CE0060000016940015E0C60004A07BE7C55172#1302353936732#/System/Server/VCServer
    #sap.com/VisualComposerServerEar04
    #com.sap.portal.vc.server#ganeshb#35216##n/a##b1528d4062a811e0aedc00145e9635ce
    #SAPEngine_Application_Thread[impl:3]_12##0#0#Debug#1#/System/Server/VCServer#Plain###
    Server Error:Failed to import model - attribute is missing in imported file bytes are <?xml version="1.0" encoding="UTF-8"?>
    Any help on how to resolve this?
    Thanks in advance,
    Ameya
    Edited by: Ameya Pimpalgaonkar on Nov 16, 2011 7:31 AM

    Hi Ameya,
         If its VC 7.0 then you must be using Flash Compiler.Try changing the compiler to Flash at this path
    Tools->Options->Compiler->Change 'Runtime filed to Flash'.I hope this should solve your problem.
    Naga

  • Cannot deploy "Hello World" application using SAP NW CE 7.1

    Hello,
    I am having problems deploying a simple application to NW CE 7.1 (Welcome application
    from NWDS tutorial).
    I try to deploy from the NWDS. When I am executing "Deploy new archive
    and run" I am asked for user and password.
    According to the documentation I give following credentials:
    SAP NetWeaver Application Server (e.g. for deploying applications)
    username: Administrator
    password: <your master password>
    However after typing that I get immediate error in NWDS.
    ConnectionException,cause=[ERROR CODE DPL.DCAPI.1144] NamingException.Cannot get initial context.Reason: Exception during getInitialContext operation. Cannot establish connection to the remote server.
    Then the browser opens with following URL: http://localhost:50100/webdynpro/dispatcher/local/Welcome/WelcomeAPP?SAPtestId=38 and the following stack trace is shown.
    "Application error occurred during the request procession."
    Details: com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/Welcome' is not deployed on the server. Please check the used URL for typos.
         at com.sap.tc.webdynpro.clientserver.task.Task.getDeployableObject(Task.java:364)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.initApplicationDeployableObjectPart(RequestManager.java:539)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.initTask(RequestManager.java:477)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doInitWdEnvironment(RequestManager.java:150)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:205)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object 'local/Welcome' since it is not a Web Dynpro object.
         at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObjectFactory.getDeployableObject(DeployableObjectFactory.java:87)
         at com.sap.tc.webdynpro.services.sal.deployment.core.DeployableObjectInternal.getDeployableObjectInternal(DeployableObjectInternal.java:37)
         at com.sap.tc.webdynpro.clientserver.task.Task.getDeployableObject(Task.java:362)
         ... 43 more
    Caused by: com.sap.tc.webdynpro.spi.WebDynproRuntimeException: No Web Dynpro application (deployable object) with name local/Welcome exists.
         at com.sap.engine.services.webdynpro.WebDynproRuntimeServiceImpl.getDeployableObject(WebDynproRuntimeServiceImpl.java:254)
         at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObjectFactory.getDeployableObject(DeployableObjectFactory.java:85)
         ... 45 more
    Please help.
    Best regards.
    Paweł

    Hi!
    For some reason, I am not able to deploy my application again (although it worked for a couple of weeks now)....
    The error is:
    com.sap.ide.eclipse.deployer.api.APIException: ConnectionException,cause=[ERROR CODE DPL.DCAPI.1144] NamingException.Cannot get initial context.
    Reason: Exception while trying to get InitialContext.
         at com.sap.ide.eclipse.deployer.dc.DCClientImpl.<init>(DCClientImpl.java:70)
         at com.sap.ide.eclipse.deployer.dc.DCClientFactoryImpl.createClient(DCClientFactoryImpl.java:142)
         at com.sap.ide.eclipse.deployer.DeployerPlugin.getClient(DeployerPlugin.java:195)
         at com.sap.ide.eclipse.sdm.threading.DeployThreadManager.deploy(DeployThreadManager.java:359)
         at com.sap.ide.eclipse.sdm.SDMManager.deployArchives(SDMManager.java:149)
         at com.sap.ide.j2ee.wtpserver.engineadapter.SapDeployer.deployArchives(SapDeployer.java:30)
         at com.sap.ide.j2ee.wtpserver.engineadapter.SAPPublisher$DeployRunnable.run(SAPPublisher.java:302)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: com.sap.engine.services.dc.api.ConnectionException: [ERROR CODE DPL.DCAPI.1144] NamingException.Cannot get initial context.
    Reason: Exception while trying to get InitialContext.
         at com.sap.engine.services.dc.api.session.impl.SessionImpl.getContext(SessionImpl.java:189)
         at com.sap.engine.services.dc.api.session.impl.SessionImpl.<init>(SessionImpl.java:115)
         at com.sap.engine.services.dc.api.session.impl.SessionFactoryImpl.newSession(SessionFactoryImpl.java:30)
         at com.sap.engine.services.dc.api.impl.ClientFactoryImpl.createClient(ClientFactoryImpl.java:74)
         at com.sap.ide.eclipse.deployer.dc.DCClientImpl.<init>(DCClientImpl.java:67)
         ... 7 more
    Caused by: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances:
    localhost:50004 Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 10.18.206.83 and port: 50004]
         at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:488)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at com.sap.engine.services.dc.api.session.impl.SessionImpl.getContext(SessionImpl.java:166)
         ... 11 more
    Caused by: com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances:
    localhost:50004 Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 10.18.206.83 and port: 50004
         at com.sap.engine.interfaces.cross.Destination.getNextAvailableBroker(Destination.java:59)
         at com.sap.engine.interfaces.cross.Destination.getRemoteBroker(Destination.java:35)
         at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:352)
         ... 16 more [ERROR: 01.02.2009 10:15:13 /userOut/daView_category (eclipse.UserOutLocation) [Thread[Thread-27,5,main]] ]
    Please help!

  • SSO - session time out while navigating across applications

    Hi,
    Problem statement
    Handling session time out while navigating across applications involving SSO
    Current approach
    Application 1
    1. Create session1.
    2. URL rewrite the sesssion ID1 into the link refering to App2.
    Application 2
    1. Create session2
    2. Get the session Id of App1.
    3. send the session ID of App1 in the header
    4. Invalidate the session2
    Application 1
    Get the ID from request and invoke getSession.
    I'm having a very large session timeout at App1.
    Is there a better approach. Ex: Having global session which is shared across multiple
    webapplications.

    "madhav" <[email protected]> wrote:
    >
    Hi,
    Problem statement
    Handling session time out while navigating across applications involving
    SSO
    Current approach
    Application 1
    1. Create session1.
    2. URL rewrite the sesssion ID1 into the link refering to App2.
    Application 2
    1. Create session2
    2. Get the session Id of App1.
    3. send the session ID of App1 in the header
    4. Invalidate the session2
    Application 1
    Get the ID from request and invoke getSession.
    I'm having a very large session timeout at App1.
    Is there a better approach. Ex: Having global session which is shared
    across multiple
    webapplications.
    I have similiar problems in my system. What do you do if the session 1 times out
    during ongoing operations in App 2 ?
    Thanks
    Kejuan

Maybe you are looking for