Thursday, September 6, 2018

WAS pmt opening issue in AIX

Error :

./pmt.sh
XIO:  fatal IO error 57 (The specified file descriptor is not a socket.) on X server "localhost:12.0"
      after 413 requests (408 known processed) with 39 events remaining.
Eclipse:
JVM terminated. Exit code=1
/opt/IBM/WebSphere/AppServer/java/jre/bin/javaw
-Xbootclasspath/a:/opt/IBM/WebSphere/AppServer/lib/bootstrap.jar
-Djava.endorsed.dirs=/opt/IBM/WebSphere/AppServer/endorsed_apis:/opt/IBM/WebSphere/AppServer/java/jre/lib/endorsed
-Declipse.refreshBundles=true
-DJAVA_NATIVE_LIB_DIR=/opt/IBM/WebSphere/AppServer/lib/native/aix/ppc_64/
-DWAS_HOME=/opt/IBM/WebSphere/AppServer
-jar /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/eclipse64//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-os aix
-ws gtk
-arch ppc64
-showsplash
-launcher /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/eclipse64/eclipse
-name Eclipse
--launcher.library /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/eclipse64/plugins/org.eclipse.equinox.launcher.gtk.aix.ppc64_1.0.0.R36x_v20101102/eclipse_1311.so
-startup /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/eclipse64//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-exitdata 200400
-clean
-perspective com.ibm.ws.pmt.views.standalone.perspectives.standAlonePerspective
-vm /opt/IBM/WebSphere/AppServer/java/jre/bin/javaw
-vmargs
-Xbootclasspath/a:/opt/IBM/WebSphere/AppServer/lib/bootstrap.jar
-Djava.endorsed.dirs=/opt/IBM/WebSphere/AppServer/endorsed_apis:/opt/IBM/WebSphere/AppServer/java/jre/lib/endorsed
-Declipse.refreshBundles=true
-DJAVA_NATIVE_LIB_DIR=/opt/IBM/WebSphere/AppServer/lib/native/aix/ppc_64/
-DWAS_HOME=/opt/IBM/WebSphere/AppServer
-jar /opt/IBM/WebSphere/AppServer/bin/ProfileManagement/eclipse64//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar



Issue :

-nosplash attribute not available in below line inside pmt.sh file.

./eclipse -perspective com.ibm.ws.pmt.views.standalone.perspectives.standAlonePerspective  -vm "${JAVA_HOME}/jre/bin/javaw" "$@" -vmargs -Xbootclasspath/a:"${WAS_HOME}/lib/bootstrap.jar" -Djava.endorsed.dirs="${WAS_HOME}/endorsed_apis":"${JAVA_HOME}/jre/lib/endorsed" -Declipse.refreshBundles=true -DJAVA_NATIVE_LIB_DIR="${JAVA_NATIVE_LIB_DIR}" -DWAS_HOME="${WAS_HOME}"
cd "${CUR_DIR}"


Resolve :

Add -nosplash in the below line inside pmt.sh file.


./eclipse -perspective com.ibm.ws.pmt.views.standalone.perspectives.standAlonePerspective -nosplash -vm "${JAVA_HOME}/jre/bin/javaw" "$@" -vmargs -Xbootclasspath/a:"${WAS_HOME}/lib/bootstrap.jar" -Djava.endorsed.dirs="${WAS_HOME}/endorsed_apis":"${JAVA_HOME}/jre/lib/endorsed" -Declipse.refreshBundles=true -DJAVA_NATIVE_LIB_DIR="${JAVA_NATIVE_LIB_DIR}" -DWAS_HOME="${WAS_HOME}"
cd "${CUR_DIR}"

Saturday, October 11, 2014


Apache Webdav Configuration in Window or Linux


  1. Download Apache Server :httpd-2.4.10-win64(https://www.apachelounge.com/download/win64/) 
  2.  Unzip the downloaded file .  
  3.  Copy the folder Apache24 into your preferred location. 
  4.   Load Web Dav in Apache Server 
  5.  Edit “%APACHE_PATH%/conf/httpd.conf“, uncomment the following load and include           statements.
            File : httpd.conf
            LoadModule alias_module modules/mod_alias.so
            LoadModule auth_digest_module modules/mod_auth_digest.so
            LoadModule authn_file_module modules/mod_authn_file.so
            LoadModule dav_module modules/mod_dav.so
            LoadModule dav_fs_module modules/mod_dav_fs.so
            LoadModule dav_lock_module modules/mod_dav_lock.so
            LoadModule setenvif_module modules/mod_setenvif.so
            Include conf/extra/httpd-dav.conf



       6.      Create User & Password for WebDAV

            For WebDAV authentication access, issue this command :
            htpasswd -c "%APACHE_INSTALLED_PATH%/users.passwd" administrator
            See sample output :
            %APACHE_INSTALLED_PATH%\bin>htpasswd -c                                                                  "%APACHE_PATH%/users.passwd" administrator
            Adding password for administrator in realm Users.
            New password: ********
            Re-type new password: ********
           
            It means, create an user “administrator” with password “given by user” and stored it               in file – “%APACHE_INSTALLED_PATH%/users.passwd“.

       7.   Configure WebDAV folder

            Created a “data” folder under “%APACHE_PATH%/data“. Edit                                                 “%APACHE_PATH%/extra/httpd-dav.conf” , add following content :


             Go To File : httpd-dav.conf configure the following

                Alias /data "%APACHE_PATH%/data"
                <Directory "%APACHE_PATH%/data">
                Dav On
                AuthType Basic 
                AuthName "Users"
                Options Indexes
                AuthUserFile "%APACHE_PATH%/users.passwd"
                AuthDigestProvider file
                # Allow universal read-access, but writes are restricted
                # to the admin user.
            
                <Limit GET OPTIONS PROPFIND>
                require user administrator
                </Limit>
                </Directory>
          
               It means enable the WebDAV access for “data” folder, and use “users.passwd” file                for authentication.

               Note : AuthType can be any of the following Basic(default),Digest,Windows.

      8.  Restart Apache Server

            Done, restart Apache server service. Now, WebDAV service is enabled in your                     server’s  “data” folder.
            For example
            If your server ip is 127.0.0.1, then you can WebDAV access your “data” folder via             this URL : “http://127.0.0.1/data”


       9.    Verify with WebDAV Client

            Download and install bitkinex, a powerful free WebDAV client for Windows.

            OR

            Browser(http://127.0.0.1/data--->Enter Username & Password).

           OR

            Windows Explorer
             Go To Computer ----->Right Click ---->Add Network location--->Enter location                         (http://hostname/data) ----->Enter Username & Password.
            
          Note: To map network drive you need to have windows desktop feature enable for                          some operating systems like 2008,2008 R2 servers.