8 Replies Latest reply on Feb 9, 2011 7:46 AM by YE

    Unable to access the selected application.

    YE
      Hi,

      I read Maxence Button's blog and need to deploy Hudson.ear to weblogic 10.3.3.
      hudson.ear contains META-INF folder, application.xml, hudson.war, Manifest.mf, and weblogic-application.xml. I zip the hudson folder and change .zip to .ear
      However, I get the following errors when I deploy this EAR.

      ==============error=====================
      Unable to access the selected application.
      Exception in AppMerge flows' progression
      Exception in AppMerge flows' progression
      Could not find End Of Central Directory with : D:\Hudson.ear
      Could not find End Of Central Directory with : D:\Hudson.ear

      ============application.xml=================
      <?xml version="1.0" encoding="UTF-8"?>
      <application version="1.4"
      xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
      <display-name>hudson</display-name>
      <module>
      <web>
      <web-uri>hudson.war</web-uri>
      <context-root>/hudson</context-root>
      </web>
      </module>
      </application>

      ==========weblogic-application.xml=============

      <?xml version="1.0" encoding="UTF-8"?>
      <wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"


      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://www.bea.com/ns/weblogic/weblogic-application


      http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
      <!-- server-version: 10.3 -->
      <wls:application-param>
      <wls:param-name>webapp.encoding.default</wls:param-name>
      <wls:param-value>UTF-8</wls:param-value>
      </wls:application-param>


      <wls:prefer-application-packages>
      <wls:package-name>org.apache.*</wls:package-name>
      </wls:prefer-application-packages>
      </wls:weblogic-application>
        • 1. Re: Unable to access the selected application.
          Ravish Mody_MiddlewareMagic
          Hi YE,

          I would suggest you to check the directory structure for the EAR and WAR as shown in the below link which has an image

          http://middlewaremagic.com/weblogic/wp-content/uploads/2010/06/EAR_Application_Diagram.jpg

          Also would suggest you to go through the below post to have a look which might help you out with your issue.

          Topic: How to Build EAR Application for WebLogic
          http://middlewaremagic.com/weblogic/?p=1952

          Regards,

          Ravish Mody
          http://middlewaremagic.com/weblogic/?page_id=1749
          Come, Join Us and Experience The Magic…
          • 2. Re: Unable to access the selected application.
            YE
            Hi,

            I move the application.xml and weblogic-application.xml to META-INF. Howeve, I still get errors as follow.

            Unable to access the selected application.
            Exception in AppMerge flows' progression
            Exception in AppMerge flows' progression
            Could not find End Of Central Directory with : D:\Hudson.ear
            Could not find End Of Central Directory with : D:\Hudson.ear
            • 3. Re: Unable to access the selected application.
              user161771 - oracle
              Something is not correct with the structure of your application and deployment descriptors.

              You can get more detail from appmerge by running it yourself with the -verbose option, call setDomainEnv before running this to set up your classpath.
              d:\temp>java weblogic.appmerge
              Usage: java weblogic.appmerge [options] <ear, jar or war file or directory>
              
              where options include:
                  -help             Print the standard usage message.
                  -version          Print version information.
                  -output <file>    Specifies an alternate output archive or
                                    directory.  If not set, output will be
                                    placed in the source archive or directory.
                  -plan <file>      Specifies an optional deployment plan.
                  -verbose          More output
                  -writeInferredDescriptors Write out the descriptors with inferred
                                    information including annotations.
                  -library <file>   Comma-separated list of libraries. Each
                                    library may optionally set its name and
                                    versions, if not already set in its
                                    manifest, using the following syntax: <file>
                                    [@name=<string>@libspecver=<version>
                                    @libimplver=<version|string>]
                  -librarydir <dir> Registers all files in specified directory
                                    as libraries.
              
              Only options were given, additional arguments are required.
              • 4. Re: Unable to access the selected application.
                YE
                I try:
                C:\Users\Administrator>java weblogic.appmerge -verbose D:\HudsonEARworkspace\test\deploy\hudson3.ear
                Created working directory: C:\Users\ADMINI~1\AppData\Local\Temp\.appmergegen_1296512162090_hudson3.ear

                But I get errors when I deploy the ear to weblogic.
                ============================================
                Unable to access the selected application.
                Exception in AppMerge flows' progression
                Exception in AppMerge flows' progression
                Invalid signature file digest for Manifest main attributes
                Invalid signature file digest for Manifest main attributes
                • 5. Re: Unable to access the selected application.
                  user161771 - oracle
                  Your server log should have more detailed information. This is in the $domain_home\servers\[serverName]\logs\[serverName].log directory.

                  This message:
                  Invalid signature file digest for Manifest main attributes
                  seems to indicate that one of the manifest.mf files has an incorrect format.
                  • 6. Re: Unable to access the selected application.
                    YE
                    ####<Jan 31, 2011 6:26:33 PM PST> <Info> <JDBC> <WIN-IT8WDLG81KH> <examplesServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <55211ca27b9d1dfd:-7779b51:12dddbff8ab:-8000-0000000000000445> <1296527193892> <BEA-001156> <Stack trace associated with message 001129 follows:

                    java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
                         at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
                         at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
                    • 7. Re: Unable to access the selected application.
                      user161771 - oracle
                      Ok, so I can tell a couple of things from that log snippet.
                      1) You're using the "examples server" domain.
                      2) The log has an error that Apache Derby is not available on localhost:1527
                      3) Based on your earlier post, it's seems you're trying to deploy Hudson. I'm unclear whether that has a database or not and where it is configured to look for one.

                      Is there a reason you're using the "examples server" instead of your own domain?
                      Is there more to that stack trace that would show that error is related to the Hudson deployment error?
                      • 8. Re: Unable to access the selected application.
                        YE
                        Hi,

                        Thanks. I create a new weblogic domain without any extension using Jdeveloper 11.1.1.3.
                        I create the ear file of Hudson using the same version jdeveloper in the same machine. Then, I can deploy Hudson to weblogic.
                        Why I cannot deploy its ear file to sample domain?