|
困在这儿一晚上了,大家帮看看,谢了.
jboss 4.0.4GA 我写了一个EJB3的程序.反复的查看,可是还是没有找出在哪错了.有人遇到过相同的异常吗? 拜托了
代码:
----------------------------------
/*
* Copyright(c) by Chiron
* all rights reserved
*/
package edu.neu.chiron.ejb.hello;
/**
* @author lycn
*
*/
public interface Hello {
public String sayHello();
}
-----------------------------------
/*
* Copyright(c) by Chiron
* all rights reserved
*/
package edu.neu.chiron.ejb.hello;
import javax.persistence.*;
import javax.ejb.*;
/**
* @author lycn
*
*/
@Stateless
@Remote ({Hello.class})
public class HelloBean implements Hello{
public String sayHello(){
return "hello EJB 3.0";
}
}
-----------------------------------------------------
System.out.println("----------------------- 1 here Ok");
Hello hello = (Hello) context.lookup("HelloBean/remote");
System.out.println("----------------------- 2 here Ok");
...........................
file:/C:/jboss/server/default/deploy/webexam.war
2007-05-22 23:00:49,703 INFO [STDOUT] ----------------------- 1 here Ok
2007-05-22 23:00:49,781 ERROR [STDERR] java.lang.ArrayStoreException: org.jboss.ejb3.remoting.IsLocalInterceptor
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
2007-05-22 23:00:49,781 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
2007-05-22 23:00:49,781 ERROR [STDERR] at edu.neu.chiron.action.LogonAction.execute(Unknown Source)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
2007-05-22 23:00:49,781 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2007-05-22 23:00:49,781 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2007-05-22 23:00:49,781 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2007-05-22 23:00:49,781 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) |
|