??????? 進幾天在看EJB然后就找了一個簡單的例子進行測試可是老出錯!
最后才發現是jboos4.02自己到的問題郁悶啊!
??????? 我建立了一個簡單的stateless EJB功能就是將小寫的字符串轉換為大寫的字符串!
很簡單的!可是老是調不通:出錯信息為:
??????? 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)
開始我在百度里搜索后將所有的鏈接都看了一便遇到這個問題的人還不算多!
經過檢索和測試發現都不對!無賴中就進google進行搜索才發現了一點線索
java技術論壇上有這么一個帖子:
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的技術論壇上找到這么一個帖子:
?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
看后發現他說是jboos4.0.2有bug
然后我就在網上下載了jboos最新版4.0.4GA重新發布就成功了!^_^
最后才發現是jboos4.02自己到的問題郁悶啊!
??????? 我建立了一個簡單的stateless EJB功能就是將小寫的字符串轉換為大寫的字符串!
很簡單的!可是老是調不通:出錯信息為:
??????? 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)
開始我在百度里搜索后將所有的鏈接都看了一便遇到這個問題的人還不算多!
經過檢索和測試發現都不對!無賴中就進google進行搜索才發現了一點線索
java技術論壇上有這么一個帖子:
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的技術論壇上找到這么一個帖子:
?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
看后發現他說是jboos4.0.2有bug
然后我就在網上下載了jboos最新版4.0.4GA重新發布就成功了!^_^