PIXNET Logo登入

MISTECH 技術手抄本

跳到主文

歡迎光臨 MIS 工作者在痞客邦的小天地

部落格全站分類:圖文創作

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 05 週三 201515:59
  • Oracle Linux 上安裝JDK(Java Development Kit) & 註冊 JBoss EAP 6.x standalone 為 Service

Linux_JDK.png之前的 JBoss 的 JBoss EAP6 Domain Mode Setup 與 JBoss EAP6.x Standalone Mode Cluster Configuration 都在 Windows 平台上作測試,現在起將拋棄 微軟 擁抱 Linux,因為後續的資料庫也是使用 Oracle DataBase,因此 Linux 平台選擇 Oracle Linux,大致的安裝過程可以查看 Oracle Linux Install Using LVM 。
安裝檔下載:
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(650)

  • 個人分類:JBoss
▲top
  • 6月 11 週四 201508:47
  • Extending partitions in Windows using DiskPart 擴展磁碟空間:Extend Data Volume on a Windows 2003 Virtual Machine (VMware ESXi)

VMware-diskpart.pngWindows Server 2003 為 VMware 的 guset ,若要擴展 disk 空間,可以使用 diskpart 的指令來作。作業大致如下:
 
Step 01:Add Additional Space to the Virtual Hard Drive



- Using the vSphere Client, connect to vCenter server or your host.
- Once connected, select your Virtual Machine from the Hosts & Clusters or VMs & Templates view.
- Click "Edit Settings"
- Select your Virtual Disk, and increase the Provisioned Space.
- Click OK


(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(811)

  • 個人分類:VMware
▲top
  • 6月 11 週四 201508:37
  • VMware Esxi:Disk Consolidation Needed - Unable to access file since it is locked

環境是 VM vSphere Esxi 5.x Standard
在 vCenter 中看到,系統出現 "Virtual machine disks consolidation is needed" ,代表 vdk 檔要作 consolidation 。但在執行的過程中發生 Unable to access file since it is locked 的錯誤訊息。
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(512)

  • 個人分類:VMware
▲top
  • 6月 08 週一 201514:30
  • jQuery-File-Upload with Struts2 的結合使用

upload-1.pngFrom: Polin Wei
經實作測試,可以正常運作。故記錄之.....
環境:
struts2: 2.3.16.3
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(1,361)

  • 個人分類:JAVA - Struts2
▲top
  • 5月 25 週一 201516:54
  • Struts2 的 異常處理 Exception & UnknownHandler & UnderConstruction

在 Struts2 的異常處理有兩種,一種是程式撰寫的邏輯出錯,另一種是找不到 action Name : There is no Action mapped for namespace...,避免系統出錯的改善作法如下:
 
程式撰寫的邏輯出錯:
在 Struts.xml 內加入
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(272)

  • 個人分類:JAVA - Struts2
▲top
  • 5月 14 週四 201512:41
  • JSP - EL 基本用法

JSP 的 EL 與 JSF 的 EL( 如 JSF EL ( Expression Language ) 的介紹),大致相同,參考 http://penguin1989930.pixnet.net/blog/post/236537248 ,後整理如下:
 
使用EL存取資料
如果想要顯示application隱含物件中的count變數時,可以使用JSP這樣做:
<%=application.getAttribute("count")%>
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(2,902)

  • 個人分類:JAVA - BASIC
▲top
  • 4月 13 週一 201514:19
  • Struts2: 在freemark頁面裡嵌入action class & parameters

在 freemark 的頁面要嵌入 action 及 參數( Parameters) 有兩種方式
1. 使用 struts2 tag: action



<img width='100px' src='
    <@s.action name="Picout" executeResult="success">  
           <@s.param name="name">${Session.userInfo['PHOTO_PATH']}</@s.param>  
    </@s.action>  
'/>


(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(83)

  • 個人分類:JAVA - Struts2
▲top
  • 3月 18 週三 201510:19
  • Windows Server 2012 AD 移除 Sub Domain 的方法

ntdsUtil_removeSubDomain_description.jpgWindows Server 2012 AD 移除 Sub Domain 的方法,有兩種方式:
方法一:利用 ntdsutil 指令
ntdsutil 指令操作說明如下
 
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(2,087)

  • 個人分類:OS
▲top
  • 3月 16 週一 201511:04
  • Java 對於LDAP: Windows Server AD (Active Directory) 的認證整合

Java 要對 Windows Server AD (Active Directory) 的認證整合,程式碼如下:
 
Step 01: 準備一個共用函數 LDAP_AUTH_AD



    /**
     * AD LDAP 登入認證
     *
     * @param ldap_url
     *            like ldap://912.168.2.1:389/DC=WEI,DC=COM
     * @param account
     * @param password
     * @return String[2] array 0 :0 success,1 fail,2 LDAP connect fail,3 unknow
     *         error array 1 :useremail
     */
    public String[] LDAP_AUTH_AD(String ldap_url, String account, String password) {
        String[] returnStr = new String[2];
        Hashtable<String, String> env = new Hashtable<String, String>();
        env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
        env.put(Context.PROVIDER_URL, ldap_url);
        env.put(Context.SECURITY_AUTHENTICATION, "simple");
        env.put(Context.SECURITY_PRINCIPAL, account);
        env.put(Context.SECURITY_CREDENTIALS, password);
        LdapContext ctx = null;
        try {
            ctx = new InitialLdapContext(env, null);
            returnStr[0] = "0";
            SearchControls searchCtls = new SearchControls();
            searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
            String searchFilter = "(sAMAccountName=" + account + ")";
            String searchBase = "";
            int totalResults = 0;
            String returnedAtts[] = { "mail" };
            searchCtls.setReturningAttributes(returnedAtts);
            try {
                NamingEnumeration answer = ctx.search(searchBase, searchFilter, searchCtls);
                while (answer.hasMoreElements()) {
                    SearchResult sr = (SearchResult) answer.next();
                    Attributes Attrs = sr.getAttributes();
                    if (Attrs != null) {
                        try {
                            for (NamingEnumeration ne = Attrs.getAll(); ne.hasMore();) {
                                Attribute Attr = (Attribute) ne.next();
                                for (NamingEnumeration e = Attr.getAll(); e.hasMore(); totalResults++) {
                                    returnStr[1] = e.next().toString();
                                }
                            }
                        } catch (NamingException e) {
                            System.err.println("Throw Exception : " + e);
                        }
                    }
                }
                loger.debug("Number: " + totalResults);
            } catch (Exception e) {
                loger.error("Can't find Email Address");
            }
            return returnStr;
        } catch (javax.naming.AuthenticationException e) {
            returnStr[0] = "1";
            e.printStackTrace();
            return returnStr;
        } catch (javax.naming.CommunicationException e) {
            // System.out.println("Can't connect to ldap server!");
            returnStr[0] = "2";
            return returnStr;
        } catch (Exception e) {
            System.out.println("error");
            e.printStackTrace();
            returnStr[0] = "3";
            return returnStr;
        } finally {
            if (ctx != null) {
                try {
                    ctx.close();
                } catch (NamingException e) {
                }
            }
        }
    }


(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(5,604)

  • 個人分類:JAVA - BASIC
▲top
  • 2月 26 週四 201511:18
  • JBOSS 與 Wildfly 常用設置

JBoss interface 對外JBOSS & Wildfly 常用設置
1. JBoss伺服器改成支援外網訪問
在standalone.xml文件中找到
(繼續閱讀...)
文章標籤

MIS 發表在 痞客邦 留言(0) 人氣(5,159)

  • 個人分類:JBoss
▲top
«1...56715»

Google Search 站內文章搜尋

熱門文章

  • (21,798)Certificate Authority(CA) 憑證簡介
  • (8,533)AppServ + OpenSSL Setup SSL(https) in Win32 憑證建立
  • (37,424)Apache - VirtualHost 架設虛擬網站
  • (3,101)Oracle External Table
  • (11,461)Oracle SQL Loader
  • (25,442)Linux 檔案格式 ext2 ext3 ext4 比較
  • (171)Oracle EBS ORG_ID (ORGANIZATION ID) 是向 SEQUENCE HR.HR_ORGANIZATION_UNITS_S 取值
  • (2,611)Oracle EBS Profile 的參數
  • (7,735)MSSQL 2008 R2 MSSQLSERVER_701:資源集區 'internal' 中的系統記憶體不足,無法執行此查詢
  • (12,666)IP Address & CIDR 概念

bloggerads-header

BloggerADs

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章分類

toggle PTC-Windchill (1)
  • System系統類 (1)
toggle Server (6)
  • OS (2)
  • VMware (3)
  • Tomcat (1)
  • JBoss (13)
  • Apache (2)
  • Weblogic (1)
toggle Java (5)
  • Java - Spring (2)
  • JAVA - BASIC (9)
  • JAVA - Struts2 (16)
  • Struts2 + Spring4 + Hibernate4 (10)
  • JAVA - ADF (3)
toggle Oracle EBS (4)
  • EBS - Interface (1)
  • EBS - INV (1)
  • EBS - BASIC (4)
  • EBS - OAF (3)
toggle PL/SQL (1)
  • PL/SQL - BASIC (1)
toggle DataBase (2)
  • DB - MSSQL (10)
  • DB - ORACLE (11)
toggle PHP (2)
  • Yii2 (1)
  • PHP - BASIC (6)
toggle HTML (2)
  • HTML - CSS (1)
  • HTML - SSL (6)
toggle JavaScript (1)
  • JS - BASIC (5)
toggle XOOPS (2)
  • 架站前的準備工作 (8)
  • XOOPS2 的安裝與使用 (1)
toggle Linux (1)
  • Linux - BASIC (7)
  • Python (1)
  • 未分類文章 (1)

個人資訊

MIS
暱稱:
MIS
分類:
圖文創作
好友:
累積中
地區:

誰來我家