[JBoss Seam] - Re: DocumentStore usage
by nickarls
"norman.richards(a)jboss.com" wrote : They should be in the WAR.
|
| I was just trying to understand what the ClassCastException you are getting is. There isn't enough information there to understand what problem you are seeing.
I'm trying to do a
| public String getInstructionManualURL() {
| String id = DocumentStore.instance().newId();
| DocumentData data = new DocumentData("manual.pdf",DocumentData.DocType.PDF, manualBytes);
| DocumentStore.instance().saveData(id, data);
| return DocumentStore.instance().preferredUrlForContent("manual.pdf", DocumentData.DocType.PDF, id);
| }
|
But the bean action is in a JAR file and if just have the seam-pdf.jar in my WAR then the JAR can't see it. The classcast just came from moving around seam-jar trying to see what worked. But if it should be in WEB-INF/lib, how can you make the JAR see it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089480#4089480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089480
18 years, 6 months
[JBoss Seam] - Seam2 CR1 - javax.faces.FacesException: #{identity.login}
by seamdev
Seam 2 CR1
My webapp seems to be working fine on localhost. However, when deployed to Weblogic92 cluster, it gives following exception on login. Any ideas what went wrong?
| Root cause of ServletException. javax.faces.FacesException: #{identity.login}: java.lang.IllegalStateException: No active conversation context at
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107) at
| javax.faces.component.UICommand.broadcast(UICommand.java:383) at
| org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186) at
| org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164) at
| rg.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352) at
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at
| weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
| weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at
| weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at
| org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at
| org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) at
| weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
| weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26) javax.faces.el.EvaluationException: java.lang.IllegalStateException: No active conversation context at
| javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91) at
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) at
| javax.faces.component.UICommand.broadcast(UICommand.java:383) at
| org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186) at
| org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164) at
| org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352) at
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at
| weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at
| weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
| weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at
| weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at
| weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at
| org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at
| org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at
| org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) at
| weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) java.lang.IllegalStateException: No active conversation context at
| org.jboss.seam.faces.FacesMessages.instance(FacesMessages.java:440) at
| org.jboss.seam.security.Identity.addLoginSuccessfulMessage(Identity.java:296) at
| org.jboss.seam.security.Identity.login(Identity.java:242) 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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328) at
| org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341) at
| org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) at
| org.jboss.el.parser.AstValue.invoke(AstValue.java:96) at
| org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at
| com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) at
| javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77) at
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) at
| javax.faces.component.UICommand.broadcast(UICommand.java:383) at
| org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:186) at
| org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:164) at
| org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:352) at
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at
| weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at
| weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at
| weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at
| weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at
| weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at
| org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089477#4089477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089477
18 years, 6 months
[EJB 3.0] - Re: Inheritence and EJBQL
by tynor
I don't want to be a pest, but could someone at least tell me if what I'm trying to do should work (hence I should try harder to understand what I've misconfigured), or if I should just give up and use my work around (separate queries for each subclass)?
I'm using JBoss AS 4.2.1.GA and Seam 2.0.0.CR1
Thanks
anonymous wrote : Can EJBQL be used to query polymorphically? I cannot find any examples in the spec or in Bill Burke's EJB3 book, and my attempts are always returning null.
|
| Code:
| l = entityManager.createQuery("SELECT s FROM Security s").getResultList();
|
|
| Here I'm trying to find all rows of all security subclasses. Even though the database has many such entries, the query always returns null. I can find each subclass independently - eg.:
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089470#4089470
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089470
18 years, 6 months
[JBoss Seam] - Re: Can I manually commit a Transaction?
by JakeC
I tried dustismo's code and it worked without having to start another Transactcion. I'd be VERY surprised if committing the Transaction actually closed it.
I haven't tried Christian's code yet because Matt's idea is precisely what I was looking for! I don't have a problem doing manual commits if it is on a Transaction I started, but I really don't like messing with a container's Transaction.
However, even after adding <core:transactionListener/> to my components.xml to get past the "org.jboss.seam.core.transactionListener is not installed" exception, my method still isn't getting called. I'm using the form of raiseTransactionSuccessEvent() that has parameters (a single parameter, in my case), but it isn't being called.
| Events.instance().raiseTransactionSuccessEvent("filesUploaded", uploadedFiles);
|
... and in the same file I have ...
@Observer("filesUploaded")
| public void filesUploaded(Map<File,UploadDocument> uploadedFiles) {
| log.info("filesUploaded entered");
| ...
| }
|
... but the log message never prints, and my files don't get moved, although the Document records get into the database without any manual commits.
What am I missing?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089469#4089469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089469
18 years, 6 months