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.