RANDY

          Nothing is difficulty if you put your heat into it!!!
          posts - 3, comments - 1, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          日歷

          <2006年10月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          隨筆檔案

          相冊

          搜索

          •  

          最新評論

          ??????? 進幾天在看EJB然后就找了一個簡單的例子進行測試可是老出錯!
          最后才發(fā)現(xiàn)是jboos4.02自己到的問題郁悶啊!
          ??????? 我建立了一個簡單的stateless EJB功能就是將小寫的字符串轉(zhuǎn)換為大寫的字符串!
          很簡單的!可是老是調(diào)不通:出錯信息為:
          ??????? java.lang.ClassCastException
          com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
          javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
          org.apache.jsp.common_jsp.jspInit(common_jsp.java:28)
          org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:78)
          org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:155)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          開始我在百度里搜索后將所有的鏈接都看了一便遇到這個問題的人還不算多!
          經(jīng)過檢索和測試發(fā)現(xiàn)都不對!無賴中就進google進行搜索才發(fā)現(xiàn)了一點線索
          java技術(shù)論壇上有這么一個帖子:
          http://forum.java.sun.com/thread.jspa?threadID=742861&messageID=4258493
          是這么回答的:
          The class files loaded on the Client side is mismatching the class files from the Server.

          Ensure that the version of the class files are same and try again.

          Thanks and regards,
          Pazhanikanthan. P
          我看了一下盡管不懂不過我猜測可能是版本的問題至于是java還是jboos就不清除了!
          然后又在jboos的技術(shù)論壇上找到這么一個帖子:
          ?http://staging.jboss.com/index.html?module=bb&op=viewtopic&p=3880890
          是這么回答的:
          Hi, after reading a lot of articels now i new, that this is not a bug and i didn't make a mistake. the problem is, that there is a change of settings between jboss 4.0.2 RC1 and 4.0.2 Final, but i don't know what. it has something to do with classloading and virtual machines. everybody says this but nobody says what to do to resolve this problem :-( .
          know i use jboss 4.0.3 RC1 and everything works fine.

          Grü?e aus Deutschland,
          Sven
          看后發(fā)現(xiàn)他說是jboos4.0.2有bug
          然后我就在網(wǎng)上下載了jboos最新版4.0.4GA重新發(fā)布就成功了!^_^

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 芮城县| 枝江市| 祁东县| 琼海市| 连云港市| 陇西县| 义乌市| 鲁甸县| 宾川县| 曲松县| 北京市| 林甸县| 望奎县| 乐清市| 凤台县| 广丰县| 西乌珠穆沁旗| 读书| 凤翔县| 郧西县| 藁城市| 巴林左旗| 杂多县| 常宁市| 五大连池市| 山东| 上犹县| 道真| 上杭县| 和田市| 滁州市| 古浪县| 东方市| 昌宁县| 南涧| 襄垣县| 上高县| 弋阳县| 扶绥县| 咸宁市| 太康县|