Friday, August 6, 2010

Common SOA composite deployment errors from Jdeveloper

In this post I would like to share few deployment errors I faced with SOA composites from Jdeveloper and their resolutions. This will be helpful to people starting work on SOA 11g.

Error 1 :

Preparing to send HTTP request for deployment
Creating HTTP connection to host:xxxx, port:yyyy
Sending internal deployment descriptor
Sending archive - sca_HelloWorld_rev1.0.jar
Received HTTP response from the server, response code=500
Error deploying archive sca_HelloWorld_rev1.0.jar to soa_server1 [xxxx:yyyy]  
HTTP error code returned [500]
Error message from server: 
Unknown Host
Description: Unable to locate the server named "xxxx" --- the server does not have a DNS entry.  Perhaps there is a misspelling in the server name, or the server no longer exists.  Double-check the name and try again.

OR

Error 2 :

Problem in sending HTTP request to the server. Check standard 
HTTP response code for 502
No error message is returned from the server.
#### Deployment incomplete. ####
Error deploying archive file:/C:/JDeveloper/mywork/Sample/HelloWorld/deploy/sca_HelloWorld_rev1.0.jar
 (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)


Solution :

1. Go to weblogic console. Server->click on managed Server and select configuration->General tab
    There in listen address provide the listen address to the ip address and restart the server.

2. Go to jdeveloper 11g and disable the proxy settings there.
    Go to tools->Preferences->Web Browser and proxy and disable the use proxy http server

3. Exit and start the jdeveloper once again.


Error 3 :

Received HTTP response from the server, response code=500
Error deploying archive sca_HelloWorld_rev1.0.jar to soa_server1 [xxxx:yyyy]  
HTTP error code returned [500]
 Error message from server:


javax.servlet.ServletException: java.lang.OutOfMemoryError: Java heap space
 at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
 at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
 at java.security.AccessController.doPrivileged(Native Method)
 at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
 at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
 at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
 at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
 at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
 at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
 at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.OutOfMemoryError: Java heap space


Solution :

The JVM Memory arguments are in the file " setDomainEnv.sh " in the folder $MW_HOME/user_projects/domains/<domain_name>/bin

You can open the file in any Text Editor and add the below line :-
     USER_MEM_ARGS="-Xms512m -Xmx1024m" (alter as per need)


Error 4 :

Preparing to send HTTP request for deployment
Creating HTTP connection to host:xxxx, port:yyyy
Sending internal deployment descriptor
Sending archive - sca_HelloWorld_rev1.0.jar
Received HTTP response from the server, response code=401
Problem in sending HTTP request to the server. Check standard HTTP response code for 401
Error deploying archive sca_HelloWorld_rev1.0.jar to soa_server1 [xxxx:yyyy]  
HTTP error code returned [401]
No error message is returned from the server.
####  Deployment incomplete.  ####
Error deploying archive file:/C:/JDeveloper/mywork/Sample/HelloWorld/deploy/sca_HelloWorld_rev1.0.jar 
 (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

Solution :


HTTP 401 Unauthorized is similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. Double-check the weblogic username/password prompted during deployment from Jdeveloper.

4 comments:

  1. [04:16:20 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\ProjectPlan\deploy\Preliminary_Design_UI.ear
    [04:16:42 PM] Deploying sca_Project_Plan_rev1.0.jar to partition "default" on server soa_server1 [Tigerwoods-PC:8001]
    [04:16:42 PM] Processing sar=/C:/JDeveloper/mywork/ProjectPlan/Project_Plan/deploy/sca_Project_Plan_rev1.0.jar
    [04:16:42 PM] Adding sar file - C:\JDeveloper\mywork\ProjectPlan\Project_Plan\deploy\sca_Project_Plan_rev1.0.jar
    [04:16:42 PM] Preparing to send HTTP request for deployment
    [04:16:43 PM] Creating HTTP connection to host:Tigerwoods-PC, port:8001
    [04:16:43 PM] Sending internal deployment descriptor
    [04:16:43 PM] Sending archive - sca_Project_Plan_rev1.0.jar
    [04:17:59 PM] Received HTTP response from the server, response code=500
    [04:17:59 PM] Error deploying archive sca_Project_Plan_rev1.0.jar to partition "default" on server soa_server1 [Tigerwoods-PC:8001]
    [04:17:59 PM] HTTP error code returned [500]
    [04:17:59 PM] Error message from server:
    Error during deployment: Deployment Failed: Error occurred during deployment of component: PlanProcess to service engine: implementation.bpmn, for composite: Project_Plan: ORABPEL-05250

    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "C:\Oracle\Middleware1033\user_projects\domains\BPM\deployed-composites\Project_Plan_rev1.0\sca_Project_Plan_rev1.0\soa_ce93a593-bcc7-464b-b6df-24e466dc6c18"; the exception reported is: java.lang.StackOverflowError

    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    .
    [04:17:59 PM] Check server log for more details.
    [04:17:59 PM] Error deploying archive sca_Project_Plan_rev1.0.jar to partition "default" on server soa_server1 [Tigerwoods-PC:8001]
    [04:17:59 PM] #### Deployment incomplete. ####
    [04:17:59 PM] Error deploying archive file:/C:/JDeveloper/mywork/ProjectPlan/Project_Plan/deploy/sca_Project_Plan_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

    ReplyDelete
  2. narasimha, any update on this error

    ReplyDelete
    Replies
    1. Narasimha, did you find any resolution for the above error

      Delete
  3. Hi Gurus,
    While deploying my application on soa_server1 i got the following error.
    Error deploying archive sca_SelfRegistrationApproval_rev1.0.jar to partition "default" on server soa_server1 [http://YI1150DT.Yash.com:8001]
    [02:47:27 PM] HTTP error code returned [500]
    [02:47:27 PM] Error message from server:
    There was an error deploying the composite on soa_server1: Deployment Failed: Error occurred during deployment of component: ApprovalProcess to service engine: implementation.bpel, for composite: SelfRegistrationApproval: ORABPEL-01005

    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "ApprovalProcess" of composite "default/SelfRegistrationApproval!1.0*soa_55d2fce9-9cf5-46d4-87d3-2ac9cbbefef0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    .

    [02:47:27 PM] Check server log for more details.
    [02:47:27 PM] Error deploying archive sca_SelfRegistrationApproval_rev1.0.jar to partition "default" on server soa_server1 [http://YI1150DT.Yash.com:8001]
    [02:47:27 PM] #### Deployment incomplete. ####
    [02:47:27 PM] Error deploying archive file:/D:/Oracle/Middleware/Oracle_IDM1/server/workflows/new-workflow/process-template/SelfRegistrationApprovalApp/SelfRegistrationApproval/deploy/sca_SelfRegistrationApproval_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)


    Does any one how to solve this error.Thanks in advance.

    Regards,
    Sunil

    ReplyDelete