blog-moon

          導(dǎo)航

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          統(tǒng)計(jì)

          常用鏈接

          留言簿(1)

          隨筆分類(lèi)

          隨筆檔案

          文章分類(lèi)

          文章檔案

          收藏夾

          Office

          Websphere

          數(shù)據(jù)庫(kù)

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          2006年6月9日 #

          安裝RAD后發(fā)現(xiàn)runtimes中沒(méi)有base_v6目錄

          解決方法
          (1)將安裝碟直接拷貝到硬盤(pán)上進(jìn)行安裝,屢試屢爽
          (2)官方網(wǎng)站的解決方案(沒(méi)試過(guò),留著以備不時(shí)之需),如下

          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) | 評(píng)論 (3)編輯 收藏

          2006年5月28日 #

          插入時(shí)空指針,似乎與oracle driver的版本有關(guān)

          [06-5-28 8:46:11:594 CST] 00000041 ExceptionUtil E?? CNTR0020E: 在調(diào)用 bean“BeanId(AFCDAS_EAR#AFCDAS_FACADE.jar#LoginFacade, null)”上的方法“l(fā)oginRegister”期間,EJB 拋出意外(未聲明的)異常。異常數(shù)據(jù):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) | 評(píng)論 (1)編輯 收藏

          2006年5月14日 #

          Webshere 與log4J

          websphere v6有自己默認(rèn)的日志處理。

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

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


          參考的文章有:
          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) | 評(píng)論 (0)編輯 收藏

          僅列出標(biāo)題  
          主站蜘蛛池模板: 龙海市| 甘孜县| 明溪县| 五寨县| 淮南市| 滦南县| 孝感市| 宁南县| 北安市| 常山县| 普陀区| 青浦区| 郴州市| 大理市| 丹巴县| 富民县| 松潘县| 巩义市| 苍山县| 泗阳县| 新巴尔虎左旗| 临武县| 泰兴市| 阿克苏市| 三都| 南宁市| 苏尼特左旗| 阳谷县| 秦安县| 衡山县| 鄂尔多斯市| 塔城市| 将乐县| 九龙坡区| 贵港市| 周至县| 灵璧县| 安化县| 红原县| 通山县| 双牌县|