blog-moon

          導航

          <2006年5月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          統計

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          Office

          Websphere

          數據庫

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          2006年5月14日 #

          安裝RAD后發現runtimes中沒有base_v6目錄

          解決方法
          (1)將安裝碟直接拷貝到硬盤上進行安裝,屢試屢爽
          (2)官方網站的解決方案(沒試過,留著以備不時之需),如下

          Problem
          The install of IBM? Rational? Application Developer (RAD) version 6.x completed except for the WebSphere? Test Environment (WTE) version 6.0 server. There was no { RAD Install Directory}/runtimes/base_v6 created in the installation process.
          ?
          Solution
          Here is a list of things to CHECK first and then re-install if your install completed without installing the WTE. A complete set of WTE V6 MANUAL INSTALL instructions also follows, to help you isolate the problem if required.

          Note: This information is also applicable if an update of the WTE WAS v6 server failed after an initial successful install of RAD v6 and WTE v6.

          CHECK [ and re-install ]
          1. Check for any space constraints - especially if you tried installing before. Check the disk space available as per the provided install instructions.
          2. On Microsoft? Windows? 2000 or XP machines, check to see if the RAD/WTE install path exceeds the path length of 255. See Related Information Items: You cannot delete a file or a folder on an NTFS file system volume and File Names Seem to Be Limited to Less Than 255 Characters.
          3. Check to see if the error log indicates that the problem appears to be occurring when copying files to install dir (such as, it does not get to profile creation). Log files can be checked for a successful installation:
            {RAD Install Dir}\logs\was_v6_out.log

            ,then if {RAD Install Dir}\base_V6 gets created, check:
            {RAD Install Dir}\base_V6\logs\log.txt
            {RAD Install Dir}\base_V6\logs\wsprofile\wasprofile_crreate_default.log

            Check for INSTCONFSUCCESS messages at end of file(s) for successful installation.


            It is possible that the install image could be corrupted. For example, the disk 4 WTE version 6 install image directory: disk4\external\was6 , contains 420,185,074 bytes, 1013 files, 416 folders. If you are installing from CD or a network drive, you might want to copy the image to a local drive, which sometimes avoids these problems. Or, download the V6 WTE again and re-extract to get a clean copy. If you are downloading from Passport Advantage, it should look something like this:

            Download 3 of 21:
            Rational Application Developer V6.0 Windows Part 3 - OPTIONAL: Contains WebSphere Application Server V6.0 Integrated Test Environment. Multilingual.
            File Name C81CKML.bin
            File Size 384,736,660 bytes

          4. Manually Clean up the WTE/WAS v6 install before retrying (It might not be necessary to uninstall/reinstall RAD itself):
            • Uninstall WebSphere Application Server (WAS) version 6, if it is still installed. It can be uninstalled by running :
              • the RAD uninstall GUI wizard at the command prompt or using Windows Explorer on the icon for uninstall.exe:

                <install_dir>/rad_prod/_uninst/uninstall.exe

                and uninstall only WAS V6 by insuring that only the IBM WebSphere Application Server V6.0 Integrated Test Environment checkbox is checked.

                OR . . .
              • Use the WAS v6 uninstall command directly if the RAD uninstall wizard has any problems.
                <at the command prompt> :

                <install_dir>\runtimes\base_v6\_uninst\uninstall.exe

            • Edit the following files:
              • Open %USERPROFILE%\.WASRegistry with a text editor.
                If you find any line containing <install_dir>\runtimes\base_v6, delete it.

                Example:
                C:\Documents and Settings\Administrator\.WASRegistry
              • Open %WINDIR%\vpd.properties.
                If you find any lines starting with WSBAA60 and containing: <install_dir>\runtimes\base_v6 , delete them.

                (For Windows2000: WINDIR=C:\WINNT , Windows XP : WINDIR=C:\WINDOWS)
            • Delete the following registry key:
              HKEY_LOCAL_MACHINE\SOFTWARE\IBM\WebSphere Application Server
            • Remove the following line from %WINDIR%\IBM\RAT60\.sdpinst\cdi_ref.properties:
              was6_ref.products=xxx
          5. [ re-install instructions]

            If the RAD v6.0.x install is otherwise well-behaved, try to just re-install WTE v6. This is a judgement decision local to your install and your use of RAD as it is now, that is, whether you can do most other things with it besides using the WTEv6. (Go to step 6 if your decision is to do a complete uninstall/install of RAD v6.)
            • Run the RAD install Launcher GUI Wizard from install disk1 by choosing IBM Rational Application Developer V6.0 and then install only WAS v6 by insuring that only IBM WebSphere Application Server V6.0 Integrated Test Environment box is checked.

              OR . . .
            • If there is any problem in using the RAD install Launcher GUI, go to the section WTE v6 MANUAL INSTALL and try to re-install WAS v6.0 from disk 4.
          6. If a complete uninstall/install of RAD v6.0 is necessary:
            1. Uninstall RAD version 6 using the Windows provided Add/Remove Programs from the Windows Control Panel, then delete the: {RAD Install Directory} and possibly: %WINDIR%\IBM\RAT60

              Note: %WINDIR%\IBM\RAT60 affects all Rational Software Development Platform (RSDP) products sharing this common platform, such as Rational Software Modeler, Rational Functional Tester and Rational Performance Tester. If that is not an issue, it is suggested that this directory be removed. Consult the related technote: How to manually un-install Rational Application Developer on Windows , if there are problems.
            2. Install RAD v6 again.
            3. There should be a fully populated { RAD Install Directory}/runtimes/base_v6 created in the installation process. Test that the WAS v6 server can be run:
              1. first standalone e.g.
                <at the command prompt> :

                <install_dir>\runtimes\base_v6\profiles\default\bin\startServer server1
                <install_dir>\runtimes\base_v6\profiles\default\bin\stopServer server1
              2. then Start it from the Servers view of RAD V6.
          7. [Optional] Apply any WAS server version 6.0.x provided update or RAD provided Rational Product Updater (RPU) WAS 6.0.x update again as required. If you have problems updating WTE/WAS version 6.0.x see the Related Information Item: Updating the WAS server instance in IBM RAD V6 fails

            Note: Update logs are kept in {RAD Install Dir}\runtimes\base_v6\logs\update\
            e.g. for WAS 6.0.2 Refresh Pack and WAS 6.0.2.5 Fix Pack for Windows:

            ...\runtimes\base_v6\logs\update\6.0-WS-WAS-WinX32-RP0000002.install
            ...\runtimes\base_v6\logs\update\6.0.2-WS-WAS-WinX32-FP0000005.install

          WTE v6 MANUAL INSTALL

          If the process above does not work, here are the manual steps to install the WTE using only WebSphere components (and if this still fails, then it will be necessary to consult RAD support, which at this point would most likely involve WebSphere Support to help resolve the issue.).

          The RAD v6 WTE v6 server install is a very thin layer on top of a true stand-alone WAS v6 Base install. The main difference is that RAD disables the Windows Start menu and it selects the optional features that need to be installed. To manually install:
          1. <at the command prompt>
            cd <install_image>/disk4/external/was6
          2. <at the command prompt>
            set DisableWASDesktopIntegration=false ,

            This environment variable disables the creation of Start Menu shortcut for WAS v6 in Windows.
          3. Remove the <install_dir>/runtimes/base_v6 directory, where <install_dir> is the location where RAD is installed. Clean up the registry as described earlier in CHECK . . . Step 4. Manually Clean up. . . if you have not done so already, and stop any Java? processes currently running that could interfere.
          4. Initiate the install:
            1. Using the GUI Install wizard :

              <at the command prompt>:
              install.exe -options "<install_image>\disk4\external\was6\rat_responsefile.txt"

              [Note: on the command line do not use the option:
              -P wasProductBean.installLocation="<install_dir>/runtimes/base_v6"
              There is a problem in the WAS installer in reading this option properly in a GUI install.]

              Then in the GUI Install wizard:
              1. When prompted for the install location, use:
                <install_dir>/runtimes/base_v6
                where <install_dir> is the location where RAD is installed.
              2. When prompted for features to install, select all the features except "Application Server Sample".
                The GUI Install, unlike the silent install, allows the user to directly see the install progress. If there is any problem related to user's machine, it will be shown to the user.

                OR
            2. This can also be done as a silent install:

              <at the command prompt>:
              install.exe -silent -options "<install_image>\disk4\external\was6\rat_responsefile.txt" -P wasProductBean.installLocation="<install_dir>/runtimes/base_v6"
              Note:-silentmust be placed before-options
          5. If the install succeeds but RAD does not automatically recognize the WTE, then add this WebSphere instance as a runtime, under the section Window > Preferences > Server > Installed Runtimes.

          posted @ 2006-06-09 18:59 moon 閱讀(1462) | 評論 (3)編輯 收藏

          插入時空指針,似乎與oracle driver的版本有關

          [06-5-28 8:46:11:594 CST] 00000041 ExceptionUtil E?? CNTR0020E: 在調用 bean“BeanId(AFCDAS_EAR#AFCDAS_FACADE.jar#LoginFacade, null)”上的方法“loginRegister”期間,EJB 拋出意外(未聲明的)異常。異常數據:java.lang.NullPointerException
          ?at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
          ?at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
          ?at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:3401)
          ?at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.resetStatement(WSJdbcConnection.java:2179)
          ?at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1830)
          ?at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1782)
          ?at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
          ?at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:93)
          ?at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:86)
          ?at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:171)
          ?at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2048)
          ?at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2427)
          ?at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
          ?at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
          ?at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
          ?at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
          ?at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
          ?at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
          ?at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
          ?at com.mtrc.afcdas.dao.base.HibernateDAOImpl.create(HibernateDAOImpl.java:70)
          ?at com.mtrc.afcdas.ejb.session.LoginFacadeBean.loginRegister(LoginFacadeBean.java:141)
          ?at com.mtrc.afcdas.ejb.session.EJSLocalStatelessLoginFacade_4ee4fc9e.loginRegister(EJSLocalStatelessLoginFacade_4ee4fc9e.java:152)
          ?at com.mtrc.afcdas.delegate.LoginDelegate.loginResgister(LoginDelegate.java:61)
          ?at com.mtrc.afcdas.web.struts.action.LoginAction.loginAction(LoginAction.java:78)
          ?at com.mtrc.afcdas.web.struts.action.LoginAction.appExecute(LoginAction.java:48)
          ?at com.mtrc.afcdas.framework.web.AppBaseAction.execute(AppBaseAction.java:55)
          ?at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
          ?at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
          ?at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
          ?at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
          ?at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
          ?at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
          ?at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
          ?at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
          ?at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
          ?at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
          ?at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
          ?at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
          ?at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
          ?at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
          ?at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
          ?at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
          ?at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
          ?at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
          ?at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

          posted @ 2006-05-28 09:27 moon 閱讀(1032) | 評論 (1)編輯 收藏

          Webshere 與log4J

          websphere v6有自己默認的日志處理。

          ?????? 這里引用一段譯自文章(http://www.webspherepower.com/issues/issue200405/00001281001.html )的話:
          ????? ?大部分的Log實現都有五種標準的日志消息級別,他們是DEBUG, INFO, WARN, ERROR,?和 FATAL。
          ?????? ?IBM的TrLog(Trace Log的簡寫)? 支持這五種級別,并且還額外支持一種級別TRACE。Trace級別比Debug要低,如果你設置你的日志級別為Debug ,那么Trace級別的信息就不會輸出到Log中。Trace 只是額外提供了一種用于解決復雜問題的日志級別。
          ?
          ??????? 要控制Trlog中的Trace級別的日志只能通過WAS的管理控制臺。不像Log4J等其他的日志實現使用屬性文件來配置參數,TrLog直接響應來自于控制臺的操縱。控制臺操作員可以通過內置于管理控制臺的工具來修改不同日志的日志級別。

          如果想用自定義的輸出方式來輸出日志信息(如:apache的commons-logging),需以下幾個步驟配置:
          1)在一個公共的項目(其他的項目都會引用它)中引入common-logging.jar ,log4j.jar
          ?? 并且把配置好的common-logging.properties 和log4j.properties 放在根目錄下面
          2)在websphere自己提供的集成開發環境RAD中,在EAR項目的應用程序部署描述描述符中,選擇“部署”頁,在應用程序區域,
          ??? 選中EAR項目,并將其類載入方式由原來的Parent_First改為Parent_Last ,其他的維持不變
          3)在管理控制臺中有待嘗試,這里先引用他人的一段話(http://forum.javaeye.com/bloglist.php?userid=8514)
          ??? 在控制臺中的"環境->共享庫"頁面中添加一個共享庫,類路徑指向要采用的日志文件,這里是添加commons-logging.jar和Log4j.jar,保存設置.
          ??? 在"企業應用程序 > 你的應用程序 > 庫引用"下添加剛才創建的共享庫,將"類裝入器方式 "改為最后裝入父類


          參考的文章有:
          Utilizing the IBM Trace Log in Websphere Appliation?Server?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ( http://www.webspherepower.com/issues/issue200405/00001281001.html )
          Integrating Jakarta Commons Loggin
          (
          http://www-1.ibm.com/support/docview.wss?uid=swg27004610 )
          雖然這些文章里面介紹的是基于WAS 5 ,但是原理都是相同的

          posted @ 2006-05-14 09:25 moon 閱讀(725) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 石嘴山市| 嘉黎县| 旬阳县| 颍上县| 阜新市| 平安县| 新田县| 连南| 太和县| 霍城县| 淮北市| 大邑县| 宁陕县| 赤城县| 安福县| 将乐县| 靖江市| 收藏| 花莲县| 鄂伦春自治旗| 辽阳县| 宣化县| 华池县| 廉江市| 忻州市| 汽车| 镇远县| 齐河县| 土默特左旗| 安宁市| 淄博市| 盐津县| 苏州市| 华容县| 五台县| 呼伦贝尔市| 开原市| 百色市| 吐鲁番市| 栾川县| 阳江市|