5 Replies Latest reply on Dec 3, 2007 10:57 PM by Petterson Paula

    Problem locating resources

    Petterson Paula Newbie

      Hello,

      I have an application working fine in JBoss AS and I am migrating it to Tomcat 5.5 without embedded jboss.

      I got an resource not exists hen I try to render an email using

      Renderer.render(my_email_template)


      I checked the path several times and it is right, I checked the generated war and the resource is there.

      Any ideas about what can be wrong?

      Thanks in advance,

      Petterson

        • 1. Re: Problem locating resources
          Petterson Paula Newbie

          I am trying to post the stack trace but I am getting a 404 error ...

          • 2. Re: Problem locating resources
            Petterson Paula Newbie


            java.lang.IllegalArgumentException: resource doesnt exist: /registration/validation_email.xhtml
            at org.jboss.seam.ui.facelet.FaceletsRenderer.resourceURL(FaceletsRenderer.java:184)
            at org.jboss.seam.ui.facelet.FaceletsRenderer$1.process(FaceletsRenderer.java:160)
            at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78)
            at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
            at br.com.liax.core.action.util.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:36)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
            at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
            at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
            at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
            at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
            at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
            at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
            at br.com.liax.core.action.util.AsynchronousMailProcessor_$$_javassist_1.scheduleSend(AsynchronousMailProcessor_$$_javassist_1.java)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
            at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
            at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
            at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
            at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
            at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:114)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
            at java.util.concurrent.FutureTask.run(FutureTask.java:123)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
            at java.lang.Thread.run(Thread.java:595)

            • 3. Re: Problem locating resources
              Petterson Paula Newbie

              It was the quotes :-(

              • 4. Re: Problem locating resources
                Petterson Paula Newbie

                It was a problem sending the emai using assyncrhonousEmailProcessor. When I send directly in my action the problem does not occur.

                Any ideas about why?

                Regards,

                Petterson

                • 5. Re: Problem locating resources
                  Petterson Paula Newbie

                  I still couldn't figure out why I get this error when I send it through an @Asynchronous call.