[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Handling Multipart Request
You can use the javax.mail.internet.MimeMultipart class to parse the multipart mime body yourself or... you can cheat to some degree and use apache commons file-upload to parse the body. it will treat everything as a FileItem, but if the parameters are small enough (like simple string) it will keep them in memory. You will have to access the parts like they were file, but, all the parsing is done for you...or you could look at the FileUploadBase.parseRequest method and see how they are parsing the multipart body and steal from there and make it your own... There are probably other packages out there that provide similar behavior. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964118#3964118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - HTTP 405 Error
How do I get rid of this error? My is rendered useless by the servlet returning a 405 every time I try to get the input stream on the response. I'm doing a POST to a servlet. Everything I've read on the net points to a configuration issues with the web server/servlet engine. However, there is no mention of this in any of the JBoss documents (at least that I can find). Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964112#3964112 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964112 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Explicit document source root using context/docbase
I have the same issue. I would really like to know how to do this. JBoss guys. How do we do this? Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963334#3963334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963334 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can't get DELETE_ORPHAN to work with java.persistence.Ca
the answer is... | @OneToMany(mappedBy="remittancePackage", cascade=CascadeType.ALL) | @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN) | where @Cascade os a hibernate Cascade object. Would be nice if these hints were in the documention. It really helps those of use who are not experienced with hibernate. Thanks Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962937#3962937 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962937 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Can't get DELETE_ORPHAN to work with java.persistence.Cascad
I need to annotate a OneToMany relationship like so... | @OneToMany(mappedBy="remittancePackage", cascade= {CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN}) | However, this does not compile becuse the "cascade" parameter is of type java.persitence.CascadeType. How do I do this? I need this behavior... anonymous wrote : | If the child object's lifespan is bounded by the lifespan of the parent object, make the parent a full lifecycle object by specifying CascadeType.ALL and org.hibernate.annotations.CascadeType.DELETE_ORPHAN (please refer to the Hibernate reference guide for the semantics of orphan delete) | And yes, I've read the Hibernate docs. Good for reference but doesn't tell you how to do this in EJB3 with annotations. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962905#3962905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Updating a Collection of entities
some code snippets would help in any case, when you outject a component that compent and it's data is always available in the seam context. hard to say what you need without the code but this is a little more typical... | @In(required=false) | @Out(require=false, scope=ScopeType.XXX) | private Collection myEntityList | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962887#3962887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962887 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with SFSB passivation
Is this problem similar or the same as when the session times out and the @Destroy method is invoked. Then when a user access that page after the time out an exception is thrown and the application is unrecoverable. In doing some testing I discoverd that if when the user is logged in and the session times out, the application becomes unusable. I thought the application server would handle this timeout gracefully and redirect to the login page identifed in the security settings in the web.xml Curious to know. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962513#3962513 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962513 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext
Righto. Because SessionContext is probably package access only and I must use the Context Interface. I'll give it a shot. Thanks for the help. Eric View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962502#3962502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Help injecting the SessionContext
I need the SessionContext an this isn't working @In(required=false,value="sessionContext") private SessionContext sessionContext; I get the following error. In fact, I get this error everytime I use @In(required=false) regardless of what property it's annotating. | javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set field value: packages.sessionContext | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | at $Proxy410.init(Unknown Source) | 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:13) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) | at org.jboss.seam.Component.callComponentMethod(Component.java:1334) | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1293) | at org.jboss.seam.Component.getInstance(Component.java:1260) | at org.jboss.seam.Component.getInstance(Component.java:1246) | at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44) | at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) | at com.sun.el.parser.AstValue.getValue(AstValue.java:85) | at com.sun.el.parser.AstEqual.getValue(AstEqual.java:20) | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183) | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) | at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) | 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.apache.catalina.core.Sta
[jboss-user] [JBoss Seam] - Re: Cannot get @In to work
No luck resolving the exception when using @In(required=false) Any ideas on what is wrong. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962272#3962272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Cannot get @In to work
Tried that already and got the following exception... | javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set field value: packages.delete | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | at $Proxy841.init(Unknown Source) | 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:13) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) | at org.jboss.seam.Component.callComponentMethod(Component.java:1334) | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1293) | at org.jboss.seam.Component.getInstance(Component.java:1260) | at org.jboss.seam.Component.getInstance(Component.java:1246) | at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44) | at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) | at com.sun.el.parser.AstValue.getValue(AstValue.java:85) | at com.sun.el.parser.AstEqual.getValue(AstEqual.java:20) | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183) | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) | at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) | 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.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:86
[jboss-user] [JBoss Seam] - Cannot get @In to work
code snippet... | @In @Out(scope=ScopeType.SESSION) | private boolean delete = false; | jsf snippet... | | | | | | | exception... | javax.ejb.EJBException: org.jboss.seam.RequiredException: In attribute requires value for component: packages.delete | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | at $Proxy661.init(Unknown Source) | 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:13) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) | at org.jboss.seam.Component.callComponentMethod(Component.java:1334) | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1293) | at org.jboss.seam.Component.getInstance(Component.java:1260) | at org.jboss.seam.Component.getInstance(Component.java:1246) | at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44) | at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) | at com.sun.el.parser.AstValue.getValue(AstValue.java:85) | at com.sun.el.parser.AstEqual.getValue(AstEqual.java:20) | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183) | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) | at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) | 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.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
[jboss-user] [JBoss Seam] - Re: Interesting problem with seam and DataModel and hibernat
Solved my own problem. I apologize if I've wasted your time. needed to modify my query from | from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code = 'OPN' and o.id = 1" | to this | select p from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code = 'OPN' and o.id = 1" | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961991#3961991 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961991 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Interesting problem with seam and DataModel and hibernate
Here's the session bean snippet... | @Out(scope=ScopeType.SESSION) | private DataModel openPackages = new ListDataModel(); | | private String opQuery = "from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code = 'OPN' and o.id = 1"; | | @Create | @Factory("openPackages") | public void init() { | openPackages.setWrappedData(em.createQuery(opQuery).getResultList()); | openPackages.addDataModelListener(this); | openPackages.setRowIndex(0); | } | the jsf snippet | | | | | | | | | | more columns ... | | the exception i receive... | java.lang.NumberFormatException: For input string: "id" | at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) | at java.lang.Integer.parseInt(Integer.java:447) | at java.lang.Integer.parseInt(Integer.java:497) | at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:138) | at com.sun.el.parser.AstValue.getValue(AstValue.java:96) | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183) | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) | at javax.faces.component.UICommand.getValue(UICommand.java:170) | at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:87) | at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307) | at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:441) | at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:427) | at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:448) | at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.renderColumnBody(HtmlTableRendererBase.java:195) | at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java:168) | at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:154) | at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:94) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:557) | at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) | 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.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(Thread.java:595) | I believe I know what's wrong but I'm not sure why or how to fix it. So, if you guys will bear with me and read along I'll explain as best I can. I think the problem lies in the query which does a join and the resultant List actually consists of both entity (PackageEntity and OfficeEntity) objects retreive from the database (u
[jboss-user] [JBoss Seam] - Re: Problem testing seam using EntityManager
has anyone experienced this problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961955#3961955 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problem with Starting conversations with GET requests
try | @In(create=true) @Out(scope=ScopeType.SESSION) | private Reguser reguser; | the create=true will instantiate Reguser when seam trys to inject it the @Out annotation will allow reguser to live across multiple requests View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961952#3961952 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961952 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem testing seam using EntityManager
I've have test like so... | package com.vicor.dcap.integration.test; | | import javax.persistence.EntityManagerFactory; | import javax.persistence.Persistence; | | import org.junit.AfterClass; | import org.junit.Assert; | import org.junit.BeforeClass; | import org.junit.Test; | | | public class PackageActionTest { | | private static EntityManagerFactory emf; | | @BeforeClass | public static void init() { | try { | emf = Persistence.createEntityManagerFactory("DC"); | } | catch(Exception e) { | e.printStackTrace(System.err); | Assert.fail(e.getMessage()); | } | } | | @AfterClass | public static void destroy() | { | try { | //emf.close(); | } | catch(Exception e) { | e.printStackTrace(System.err); | Assert.fail(e.getMessage()); | } | } | | @Test | public void loadPackages() { | Assert.fail("not implemented yet..."); | } | } | when I run it I get the following exception stack | FATAL 28-07 12:40:35,250 (Log4JLogger.java:fatal:124) -default.persistence.propertiesO-:-Ofalse | FATAL 28-07 12:40:35,250 (Log4JLogger.java:fatal:124) -ejb3-interceptors-aop.xmlO-:-Ofalse | FATAL 28-07 12:40:35,250 (Log4JLogger.java:fatal:124) -embedded-jboss-beans.xmlO-:-Ofalse | FATAL 28-07 12:40:35,250 (Log4JLogger.java:fatal:124) -jboss-jms-beans.xmlO-:-Ofalse | FATAL 28-07 12:40:35,250 (Log4JLogger.java:fatal:124) -jndi.propertiesO-:-Ofalse | FATAL 28-07 12:40:35,265 (Log4JLogger.java:fatal:124) -log4j.xmlO-:-Ofalse | FATAL 28-07 12:40:35,265 (Log4JLogger.java:fatal:124) -META-INF/ejb-jar.xmlO-:-Ofalse | FATAL 28-07 12:40:35,265 (Log4JLogger.java:fatal:124) -META-INF/jboss-app.xmlO-:-Ofalse | FATAL 28-07 12:40:35,265 (Log4JLogger.java:fatal:124) -META-INF/MANIFEST.MFO-:-Ofalse | FATAL 28-07 12:40:35,265 (Log4JLogger.java:fatal:124) -META-INF/persistence.xmlO-:-Ofalse | ERROR 28-07 12:40:35,343 (Log4JLogger.java:error:119) -Could not obtain initial context | javax.naming.NamingException: Local server is not initialized | at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45) | at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) | at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) | at javax.naming.InitialContext.init(InitialContext.java:223) | at javax.naming.InitialContext.(InitialContext.java:175) | at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28) | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) | at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) | at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) | at com.vicor.dcap.integration.test.PackageActionTest.init(PackageActionTest.java:19) | 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.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74) | at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50) | at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33) | at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52) | at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) | at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) | at org.eclipse.jd
[jboss-user] [JBoss Seam] - Re: org.hibernate.LazyInitializationException: Seam or Hiber
see http://forum.hibernate.org/viewtopic.php?p=2315877#2315877 on the hibernate forum View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961093#3961093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: org.hibernate.LazyInitializationException: Seam or Hiber
Okay, I figured out where to annotate for EAGER. However, I still need to better understand lazy initialization. Advice and suggestions greatly appreciated. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961072#3961072 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - org.hibernate.LazyInitializationException: Seam or Hibernate
Not sure where to post this so it's on the hibernate forum as well. I'm new to ejb, seam and hibernate so please excuse my ignorance. I have a simple query that retrieves an entity from the database. Within that object I call a method to get a collection of different entitys. Like so... | List l = entity.getCollection(); | >From searching google and reading posts I understand that I have a session >issue and could fix the problem by using and EAGER strategy. However, I cannot >get the eager to work either. I get the same error regardless of what I do. I'm running the lastest version of JBoss AS and Seam. Here's the actual code. | | @DataModel | private Set remitItems; | | remitItems = packages.getSelectedClosedPackage().getRemittanceItems(); | | - | | Here is the entity bean method with annotations | | @OneToMany(mappedBy="remittancePackage") | public Set getRemittanceItems() { | return remittanceItems; | } | | | Here's the exception...although I'm sure you guys have seent this one before... | Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.vicor.DistributedCapture.ejb.PackageEntity.remittanceItems, no session or session was closed | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) | at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97) | at org.hibernate.collection.PersistentSet.size(PersistentSet.java:114) | at java.util.ArrayList.(ArrayList.java:133) | at org.jboss.seam.jsf.SetDataModel.setWrappedData(SetDataModel.java:96) | at org.jboss.seam.jsf.SetDataModel.(SetDataModel.java:33) | at org.jboss.seam.databinding.DataModelBinder.wrap(DataModelBinder.java:48) | at org.jboss.seam.databinding.DataModelBinder.wrap(DataModelBinder.java:19) | at org.jboss.seam.Component.outjectDataModelList(Component.java:980) | at org.jboss.seam.Component.outjectDataModels(Component.java:937) | at org.jboss.seam.Component.outject(Component.java:857) | at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:41) | 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:13) | at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90) | at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60) | at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82) | 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:13) | at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90) | at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60) | at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60) | 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:13) | at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90) | at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60) | at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39) | 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:13) |
[jboss-user] [JBoss Seam] - Re: Injecting UserPrincipal
"DOH" ... I'll change my import statement. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959996#3959996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959996 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can i do this...
works just like you said. a few thoughts... so i can outject a property and reference the property directory. i thought i had to name the component with @Name and then outject the property. then i would reference as follows - component.property. however, by outjecting a property, i bypass the need to access the property via the component meaning i can just access the property directly. correct? i guess i'm a little unclear on the semantics of it all... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959987#3959987 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959987 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Injecting UserPrincipal
I'm trying to inject the UserPrincipal object and I get an exception instead. I've tried everything I know and I can't get this to work. Is this legal? here's the code | @In | public UserPrincipal userPrincipal; | | public UserPrincipal getUserPrincipal() { | return userPrincipal; | } | | | public void setUserPrincipal(UserPrincipal userPrincipal) { | this.userPrincipal = userPrincipal; | } | | here's the exception...warning...it's long... | 12:28:39,515 ERROR [STDERR] javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set property value: package.userPrincipal | 12:28:39,515 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | 12:28:39,515 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | 12:28:39,515 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197) | 12:28:39,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 12:28:39,515 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | 12:28:39,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 12:28:39,515 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81) | 12:28:39,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 12:28:39,515 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) | 12:28:39,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 12:28:39,515 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | 12:28:39,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 12:28:39,515 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | 12:28:39,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 12:28:39,515 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188) | 12:28:39,515 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | 12:28:39,515 ERROR [STDERR] at $Proxy722.init(Unknown Source) | 12:28:39,515 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 12:28:39,515 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 12:28:39,515 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 12:28:39,515 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.callComponentMethod(Component.java:1334) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.callCreateMethod(Component.java:1322) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1312) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1263) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1246) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1292) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1260) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1246) | 12:28:39,515 ERROR [STDERR] at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44) | 12:28:39,515 ERROR [STDERR] at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | 12:28:39,515 ERROR [STDERR] at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) | 12:28:39,515 ERROR [STDERR] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183) | 12:28:39,515 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | 12:28:39,515 ERROR [STDERR] at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) | 12:28:39,515 ERROR [STDERR] at j
[jboss-user] [JBoss Seam] - Re: can i do this...
btw, i've already used the @DataModel and @Factory annotations and it all works great. i'm just exploring here to make sure i understand what it is i'm doing thanks. eric ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959977#3959977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959977 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can i do this...
The docs say if you annotate the property you don't need getters and setters. ...from the manual... anonymous wrote : The next two annotations control bijection. These attributes occur on component instance variables or property accessor methods. | | @In I'll add G/S and see if that works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959975#3959975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959975 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - can i do this...
I know I can use @DataModel but I want try the following and it seems logical to me but it doesn't work. | @Name("package") | class ... { | @In(create=true) @Out(scope=ScopeType.CONVERSATION) | private List packages; | } | then in my web page do this... | http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959959#3959959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959959 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem starting converstaion and setting state from HTT
I was using a url fragment and that is incorrect. You should use the filename of the view that contains the component in question. However, petemuir suggested an even cleaner solution (IMO) because it's contained in the code and alleviates the need for the xml file. Here's what I did instead of using the pages.xml file. | @DataModel | private List packages; | | @Factory("packages") | public void load() { | packages = em.createQuery("from PackageEntity").getResultList(); | } | the load() method, annotated with @Factory("packages"), is used to initalize the "named" property (that property being "packages"). This is done before the page is rendered making this a great way to initialize state before the page is display. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959898#3959898 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem starting converstaion and setting state from HTT
Thanks petemuir. Worked like a charm. I though I could only use the @Factory if I was using jBPM. No I know better. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959613#3959613 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem starting converstaion and setting state from HTT
I resolved this using Page Actions. Although, I might try what you suggest petemuir just to see what happens. My guess is that it won't work. I think the problem is the the Seam component "package" not "packages" is not being referenced in the web page so it never gets instantiated and the @Create method is never called. This particualr page only references the @DataModel "packages" property. Since the component is never instantiated I have to use a page action to get the behavior I need. This may not be acurate, but it appears to be what is happening. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959587#3959587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I have come to the conclusion that Page Actions do not w
Yes, I agree. It works. It wasn't clear to me that the view-id property was the actual name of the file. I'm using facelets and was replacing the file extension with .jsf. I needed to leave it as .xhtml. Once I figured that out, it worked just fine. I though I needed to use the DEFAULT_SUFFIX in the view-id. I didn't. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959586#3959586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - I have come to the conclusion that Page Actions do not work
anyone else with the same experience...and how did you work around this to get the behavior that page actions are supposed to give. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959398#3959398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem starting converstaion and setting state from HTT
dumming down the question...i really need to do this when the pages loads and without the user doing anything public void load() { packages = em.createQuery("from PackageEntity").getResultList(); } then display the result of the query in a dataTable. Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959394#3959394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959394 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem starting converstaion and setting state from HTTP GE
I have a simple page using the standard login form using j_security_check. JBoss is configured to authenticate against an LDAP server. Once authenticated the is rendered and it simply does this... When index.jsf is rendered I need some data retrieved from the database so I can display it immeditately. That's where I have a problem. I can't get the data loaded from the database and displayed in my page. I've tried all recommendations in Section 3.3 of the SEAM documentation. Nothing works. I'm sure I'm doing something wrong. Any ideas. Here's the code... | @Stateful | @Name("package") | public class PackageAction implements Package { | | @DataModel | private List packages = null; | | @PersistenceContext(unitName="DC") | private EntityManager em; | | | public PackageAction() {} | | @Begin(join=true) @Create | public void load() { | packages = em.createQuery("from PackageEntity").getResultList(); | } | | @Destroy @Remove | public void destroy() {} | } | I even added a pages.xml file like so... | | | | and that doesn't work either. Here's the web page... | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:c="http://java.sun.com/jstl/core"; | xmlns:ui="http://java.sun.com/jsf/facelets";> | | | | | | | | | | | | | | | | | | | | | | | | | | ... | | | | | | Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959386#3959386 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959386 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Credential caching question
Hi guys, I'm have a problem that I'm unable to solve regarding credentials caching. I have an ldap user that can authenticate with ldap but is not authorized to use the application. I want to let the user know that they have authenticated but failed authorization and to trying logging in with another username and password that has authorization. The problem is that the credentials are cached and I cannot get JBoss to serve the login page again. I'm using form based authentication with the j_security_check action combined with the LdapLoginModule for jboss. Here's what my security-service.xml looks like. | | | org.jboss.security.plugins.JaasSecurityManager | anonymous | | 0 | | 0 | | >From my perspective JBoss behaves the same regardless of what I set these >values too. Basically, I want to force authentication everytime a certain url >is accessed. I don't care if the user has already logged in or not. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958117#3958117 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958117 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user