6 Replies Latest reply on Nov 27, 2006 2:38 AM by David Richmond

    Problem with redeploying titan.jar (ex04_1)

    Przemyslaw Madzik Newbie

      Hello,

      First time after launching jboss:

      workbook\ex04_1>ant
      [...]
      workbook\ex04_1>ant run.client
      Buildfile: build.xml
      
      prepare:
      
      compile:
      
      ejbjar:
      
      run.client:
       [java] Master Suite
       [java] 1
       [java] 1
       [java] 3
      
      BUILD SUCCESSFUL
      Total time: 2 seconds
      


      All OK.

      But now:
      workbook\ex04_1>ant clean[...]
      workbook\ex04_1>ant
      [...]
      workbook\ex04_1>ant run.client
      Buildfile: build.xml
      
      prepare:
      
      compile:
      
      ejbjar:
      
      run.client:
       [java] Exception in thread "main" javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class com.titan.travelagent.TravelAgentBean for public void com.titan.travelagent.TravelAgentBean.createCabin(com.titan.domain.Cabin)
       [java] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
       [java] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
       [java] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
       [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
       [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
       [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
      [...]
      


      ???