[jboss-user] [Beginners Corner] - Re: JBoss failed JNDI lookup without any error
horunkoya
do-not-reply at jboss.com
Thu Dec 14 10:49:36 EST 2006
Hello there,
I am still experiencing this problem and it is now becoming a joke as I have tried everything I know. Could somebody please help as I am quickly running out of options here. the latest exception which is no different from the previous is :
| $Proxy57
| java.lang.ClassCastException: $Proxy57
| at com.janes.jf.action.LoginAction.process(LoginAction.java:52)
| at com.janes.jf.action.RequestAction.execute(RequestAction.java:21)
| 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:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at com.janes.jf.filter.LoginFilter.doFilter(LoginFilter.java:24)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
The line of code that throws this exception is:
| InitialContext ic = new InitialContext();
| Object obj = ic.lookup("ejb/MAPDelegate");
| MAPDelegateHome mapHome = (MAPDelegateHome)obj;
|
ejb-jar.xml is as follows:
| ejb-jar>
| <enterprise-beans>
| <session>
| <description>Session Bean ( Stateful )</description>
| <display-name>MAPDelegate</display-name>
| <ejb-name>ejb/MAPDelegate</ejb-name>
| <home>com.janes.jf.ejb.MAPDelegateHome</home>
| <remote>com.janes.jf.ejb.MAPDelegate</remote>
| <local-home>com.janes.jf.ejb.MAPDelegateLocalHome</local-home>
| <local>com.janes.jf.ejb.MAPDelegateLocal</local>
| <ejb-class>com.janes.jf.ejb.MAPDelegateBean</ejb-class>
| <session-type>Stateful</session-type>
| <transaction-type>Container</transaction-type>
| </session>
| </enterprise-beans>
| </ejb-jar>
|
Please HELP!!!!!.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993902#3993902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993902
More information about the jboss-user
mailing list