[jboss-user] [JBoss Seam] - keeping context using external webapp
Hi there, I want to integrate an external payment system into my seam application. What would be the best way to keep the conversational context? I can call the payment server using a POST request, but it is answering only using a GET. I suppose I have to send somekind of id with the request, that can be returned even using a GET call, but does that have to be the java session id, or some seam internal id, like the "cid", that shows up on get requests? Thanks for any help :ollix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032748#4032748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: keeping context using external webapp
gavin, the problem is more complicated. the payment server by contract reads my callback page, parses it to enter some payment provider specific information and displays it. That means, that my server gets no jsessionId from that payment server and thus cannot assign the request to the correct session. the solution, of course is to send the jsessionId explictily to the payment server and create a callback URL that contains it ala ".../callback.seam;jsessionId=xxx?cid=3". My problem now is how to programmatically retrieve the current jsessionId inside a helper bean. Can you give me a hint how to get a hold on that id? Thanks a lot :ollix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032848#4032848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: keeping context using external webapp
ok, i found a solution. not very elegant, but it works. | @Name("jsessionId") | public class SessionIdHelper { | | @Override | public String toString() { | return ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getSession().getId(); | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032875#4032875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032875 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: keeping context using external webapp
just in case someone needs to do the same, I wrap up my last post. I created that ugly helper, to enable to use the web container's jsessionid. I use it to create a simple link, that contains both the jsessionid and the conversation id. The remote server uses this information to setup a callback URL : .../callback.seam;#{jsessionId}?cid=#(cid)... The cid component is a second ugly helper, that returns the current conversationId: | @Name("cid") | public class ConversationIdHelper { | | @Override | public String toString() { | return Conversation.instance().getId(); | } | | } | The remote server calls this URL, retrieves the resulting HTML and injects some payment information using predefined provider specific tags. The resulting HTML is than represented to the user. The URL seen by the user will be a payment provider one, but the content looks just like the stuff from our website. The only "problem" left is the need to use absolute URLs for all Images, stylesheets etc. I used a second template for this. If somebody knows a more elegant way to do the same, I would be happy to get some feedback. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032940#4032940 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032940 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - pdf - IllegalStateException
Hi, I try to render PDFs. I use the lists.xhtml form the seam examples. I configured the SeamServeltFilter and DocumentStoreServelt as documented (1.2.0 GA). It seems, that the pdf is created, but cannot be retrieved. I see, that the extension is changed to *.pdf, but I get the following error: | avax.servlet.ServletException | org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:103) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | root cause | | java.lang.IllegalStateException | org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:432) | org.jboss.seam.mock.MockExternalContext.redirect(MockExternalContext.java:477) | org.jboss.seam.core.Manager.redirect(Manager.java:993) | org.jboss.seam.core.Redirect.execute(Redirect.java:137) | org.jboss.seam.exceptions.DebugPageHandler.handle(DebugPageHandler.java:30) | org.jboss.seam.core.Exceptions.handle(Exceptions.java:70) | org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:91) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | I guess it's a config problem, but AFAIK my configuration is as it should be... thanks for any help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033113#4033113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033113 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: pdf - IllegalStateException
in the log there is another root cause to the above exceptions: | 13:13:51,641 ERROR [ExceptionFilter] uncaught exception | java.lang.IllegalStateException: No active event context | at org.jboss.seam.core.Manager.instance(Manager.java:264) | at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:412) | at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:328) | at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:63) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2 | I have no idea, what could be wrong here. again, thanks for any help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033119#4033119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033119 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: pdf - IllegalStateException
ok, again just for the record and in case there are some other seam dummies like me: A pdf file can only be viewed if there is an existing converstation. That means, at least in my case, that a simple call to /test.pdf does not work, unless there is a long running conversation, that was started by any component. hope that helps someone... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033407#4033407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: pdf - IllegalStateException
than I don't understand the behaviour here. If I call the pdf's URl fist thing after server startup, i.e. e new session, I get the above error. If I first call a page, that uses a conversational component, I can afterwards call the pdf and get it. Maybe, if you find some time, you could document more on how to use the DocumentStore and explain the runtime situation, so one can more understand what exactly is going on. Besides that - using iText in seam is damn easy and a joy to work with. Thanks for your work! regards :ollix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033510#4033510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033510 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Render PDF to binary
hi there, is there an easy way to user the/a renderer to produce a binary PDF rather than the implicit usage of the document store and the renderer returnin a redirect html page? That would be using the "view pipeline" as a means to produce binary data and further process that programmatically (such as storing into a database or file). btw. this question is partly based on the fact, that I still don't grab the runtime specifics of the whole pdf thing in seam. I configured everything ok, and sometimes I can retrieve a PDF, sometimes not. I still get those IllegalStateExceptions every now and than and I just don't understand why and based upon which exact runtime conditions. I would be very much interested, if I am the only one with those PDF problems. Maybe I'm just too stupid. It drives me mad thanks a lot for you feedback and happy eastern! :ollix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035642#4035642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - ajax and internet explorer 6.0
I notived, that the ajax4jsf stuff I built runs fine with safari and mozilla, but completly fails on internet explorer 6.0 (SP2). Is this a known issue? Are there any work arounds? I mean besides throwing the pc out the window? Thanks for any help on this one. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035878#4035878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035878 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Serialization Exception after Session timeout
Hi there, I am having problems after a session timeout. When a session times out, my web page tries to access a property in an Stateful Session Bean in Session Scope and I get the following Exception: top: Exception getting value of property headline.line1 of base of type : de.greenmiles.website.words.SessionWords$$EnhancerByCGLIB$$a4daa20d ... Caused by: javax.ejb.EJBTransactionRolledbackException: java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.seam.persistence.EntityManagerProxy - org.jboss.seam.persistence.EntityManagerProxy It seams to me, that this is some follow-up problem, but I have no idea, what could be wrong. The exotic part in my setup is, that the session bean accesses another Stateful Session Bean in Application Scope, that is used as a cache for the data used in the Session Bean in Session Scope. I hope, someone can give me a hint, why the Serialization Exception is happening. Thanks for any help :oliver View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031269#4031269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Serialization Exception after Session timeout
phew... I'm glad... thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031320#4031320 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031320 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - NPE in RepositoryClassLoader
I get an exception, that I cannot relate to where it is thrown. It happens, when I try to read a property of a stateful session bean inside a JSP using the EL. This property is a simple getter inside the component. The component has an "@In" refrence to the seam identity component, but it is not used inside the getter. The exception shows up spontaniously - the behaviour is NOT consistent and cannot reliably reproduced. The same exception happens for the '#{org.jboss.seam.core.localeSelector}' component. My first guess is, that the components are not yet instantiated, when the getter is read. But since that happens automagically, I have no idea, what could cause this behaviour. I hope somebody can give me a hint on where to look for the cause of the exception Thanks this is the last part of the stack trace. | | Caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{org.jboss.seam.security.identity}' | at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402) | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69) | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1684) | at org.jboss.seam.Component.getInstance(Component.java:1633) | at org.jboss.seam.Component.getInstance(Component.java:1610) | at org.jboss.seam.Component.getValueToInject(Component.java:1885) | at org.jboss.seam.Component.injectAttributes(Component.java:1368) | at org.jboss.seam.Component.inject(Component.java:1195) | at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) | at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53) | at sun.reflect.GeneratedMethodAccessor8647.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126) | ... 93 more | Caused by: java.lang.NullPointerException | at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | at org.jboss.seam.jsf.SeamApplication11.getPropertyResolver(SeamApplication11.java:197) | at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532) | at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) | at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383) | ... 119 more | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045263#4045263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045263 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Support for project
Hi there, I work on a project, that uses seam. After finishing implementing we are experiencing strange errors, that we cannot really nail down. One of those I already posted some days ago - with no response from the community. Because of a lack of time we are looking for someone, who can help us analysing and fixing our code. please contact me: [EMAIL PROTECTED] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045894#4045894 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045894 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user