0 Replies Latest reply on Jan 8, 2007 10:00 PM by yoonhyung jang

    problem publishing App in Eclipse

    yoonhyung jang Newbie

      hi~!

      I'm trying to develop small Ejb app using using jboss recently.

      Eclipse 3.1.2

      jboss 4.0.5

      Ejb 2.0

      The App is working well right after starting the jboss and modifying App

      and publish it once in eclipse.

      However the problem( Exception below) happens when I publish App twice

      and more. And if I restart the server, it works well but publishing more

      than twice it throw the same Exception.

      I'm very new to start develope Ejb in jboss so I'm not sure whether it

      caused by jboss setting or IDE.

      Could anyone save me from this error?

      Exception :

      -01-09 10:33:39,370 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract com.dy.scm.um.UserInfo com.dy.scm.um.UserManagementLocal.getUserInfo(java.lang.String) throws javax.ejb.EJBException, causedBy:
      java.lang.ClassCastException
      at com.dy.scm.um.UserManagementBean.getUserInfo(UserManagementBean.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:954)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      at $Proxy109.getUserInfo(Unknown Source)
      at com.dy.scm.web.um.UserManagementServlet.onGetUserInfo(UserManagementServlet.java:92)
      at com.dy.scm.web.um.UserManagementServlet.doPost(UserManagementServlet.java:63)
      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 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:153)
      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(Unknown Source)
      2007-01-09 10:33:39,380 ERROR [STDERR] javax.ejb.EJBException: Error :
      2007-01-09 10:33:39,380 ERROR [STDERR] at com.dy.scm.um.UserManagementBean.getUserInfo(UserManagementBean.java:103)
      2007-01-09 10:33:39,380 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2007-01-09 10:33:39,380 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      2007-01-09 10:33:39,380 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      2007-01-09 10:33:39,380 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      2007-01-09 10:33:39,380 ERROR [STDERR] at $Proxy109.getUserInfo(Unknown Source)
      2007-01-09 10:33:39,380 ERROR [STDERR] at com.dy.scm.web.um.UserManagementServlet.onGetUserInfo(UserManagementServlet.java:92)
      2007-01-09 10:33:39,380 ERROR [STDERR] at com.dy.scm.web.um.UserManagementServlet.doPost(UserManagementServlet.java:63)
      2007-01-09 10:33:39,380 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2007-01-09 10:33:39,380 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:153)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-09 10:33:39,380 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-09 10:33:39,380 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
      2007-01-09 10:33:39,390 ERROR [STDERR] Caused by: java.lang.ClassCastException
      2007-01-09 10:33:39,390 ERROR [STDERR] at com.dy.scm.um.UserManagementBean.getUserInfo(UserManagementBean.java:76)
      2007-01-09 10:33:39,390 ERROR [STDERR] ... 43 more

      thank you for your help...