[jboss-user] [JBoss Seam] - javax.el.PropertyNotFoundException: Target Unreachable, iden
I am using seam 2 and sun app server 9. I have two seemingly identical configurations. On one version my ear works fine and on the other I get this exception whenever any seam @Name object is referenced i.e. even if I remove the authentication. javax.el.PropertyNotFoundException: Target Unreachable, identifier 'authenticator' resolved to null | at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38) | at org.jboss.el.parser.AstValue.invoke(AstValue.java:95) | at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174) | at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:108) | 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:597) | at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) | at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) | at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706) | at java.security.AccessController.doPrivileged(Native Method) | at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703) | at javax.security.auth.login.LoginContext.login(LoginContext.java:575) | at org.jboss.seam.security.Identity.authenticate(Identity.java:335) | at org.jboss.seam.security.Identity.authenticate(Identity.java:324) | at org.jboss.seam.security.Identity.quietLogin(Identity.java:265) | at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:182) | at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:172) | at org.jboss.seam.security.Identity.authenticate(Identity.java:322) | at org.jboss.seam.security.Identity.login(Identity.java:237) | 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:597) | 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:184) | at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162) | at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350) | 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 org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | 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) |
[jboss-user] [JBoss Tools (users)] - Seam Runtime {0) resource templates directory doesn't exist
On attempting to create a seam project this error appears at the top of the Seam Facet dialogue page. This is against 4.2 and with seam 2. any advice appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105968#4105968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105968 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Eclipse dynamic web project, seam, glassfish, hibernate
Hi I am struggling with the hardest part of development nowadays, the setting up of the project. Could someone please give me some pointers (or link). I need to use glassfish (with hibernate not JSP) all within a usable eclipse project and I am trying seam 2 for the first time. I am sure there used to be a glassfish example although this is no longer in version2. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104632#4104632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104632 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable
| nrg2Datasource | jdbc:mysql://localhost:3306/db | com.mysql.jdbc.Driver | db | pass | | org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter | | | mySQL | | com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker | SELECT count(warehouseId) FROM warehouse | SELECT count(warehouseId) FROM warehouse | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073108#4073108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception handling problem
4.0.5GA JBoss, 1.2.1 Seam, Icefaces 1.6.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073036#4073036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073036 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Exception handling problem
I cannot seem to get the exception handling working even with the basic catch all in the pages.xml | | | | Catch-all exception | | | Before I add this I get the usual 500 tomcat page with the thrown exception stack printed. After adding this I get the following javax.servlet.ServletException: Stack must not be null | org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:103) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73) | halvor.filter.TimerFilter.doFilter(TimerFilter.java:46) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | root cause | | java.lang.IllegalArgumentException: Stack must not be null | org.jboss.seam.core.ConversationEntry.(ConversationEntry.java:40) | org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:50) | org.jboss.seam.core.Manager.createConversationEntry(Manager.java:685) | org.jboss.seam.core.Manager.beforeRedirect(Manager.java:834) | org.jboss.seam.core.Manager.beforeRedirect(Manager.java:852) | org.jboss.seam.core.Manager.redirect(Manager.java:1067) | org.jboss.seam.core.Navigator.redirect(Navigator.java:45) | org.jboss.seam.exceptions.RedirectHandler.handle(RedirectHandler.java:45) | org.jboss.seam.core.Exceptions.handle(Exceptions.java:79) | org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:91) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73) | halvor.filter.TimerFilter.doFilter(TimerFilter.java:46) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | The error page is just a bit of very basic html so nothing fancy to trip it up on there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073034#4073034 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073034 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable
SELECT 1 is actually valid mysql syntax (although I have never understood why). I will switch to that and save some cpu cycles. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072925#4072925 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072925 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable
anonymous wrote : I'm getting the same problem. I'm wondering whether it's mySql because I've been told it's concurrent transaction handling is poor. I'm going to move to Postgres today to see if there are any improvements. | | Thanks, AL. I am pretty sure it isn't down to mysql's concurrency ability but I did think it might be some configuration issue or one with the drivers. Grateful for the feedback. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072920#4072920 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072920 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Connection handle has been closed and is unusable
Hi. There is a huge amount of noise relating to this error all over the place. I'm not really sure if it is a seam/AS/Hibernate issue. The stack is as follows Caused by: java.sql.SQLException: Connection handle has been closed and is unusable | at org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConnection.java:537) | at org.jboss.resource.adapter.jdbc.WrappedConnection.checkTransaction(WrappedConnection.java:524) | at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:184) | at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497) | at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415) | at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139) | at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1560) | at org.hibernate.loader.Loader.doQuery(Loader.java:661) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) | at org.hibernate.loader.Loader.loadCollection(Loader.java:1918) This was occurring frequently and I added com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker | SELECT count(warehouseId) FROM warehouse which I dont think had an effect (the errors were still common). I upgraded the hibernate versions in Seam 1.2.1 to the latest hibernate which definitely reduced the frequency however they are still there. Any suggestions welcome. (Just in case it helps) One thing I did notice which admittedly is likely a red herring is that the errors seem to happen where concurrent modification is likely i.e. separate threads modifying the same data. As one thread is only reading ever then I cant see that this could be an issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072233#4072233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: identity.logout from javascript
I think my url-pattern is incorrect in my components.xml can anyone tell me what it should be. logout /logout I think I have tried most combinations now... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067377#4067377 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067377 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: identity.logout from javascript
I was trying this as a servlet but any attempts to reference Identity from inside the doGet results in java.lang.IllegalStateException: No active session context View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067369#4067369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067369 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - identity.logout from javascript
Hi is there any way I can call indentity.logout from javascript? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067358#4067358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067358 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:fileUpload working locally but not remote
Is this possibly a path issue? I remember reading a bug report but cant remember if it was seam/icefaces/tomahawk / linux \ windows View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066255#4066255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Entity subquery
Sean 1.2.1, AS 4.0.5, Mysql5 Basically after loading an entity I want to be able to do a 'subquery' inside a transient method or something that achieves the same thing. The motivation is that the state of the entity is made up of many many sub table joins and lines. I want to replace the VERY heavy code that must load and iterate 100's of lines for each of my top level entities before deciding on its state. We have tried caching the states which does work sort of but we are spending most of our lives chasing around state updates which is not fantastic. Is there a sanctioned way of doing this sort of thing? It has to crop up a fair amount of times. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066253#4066253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam version vs. hibernate version
I have been upgrading seam and have now moved on to 1.2.1 GA. Has there been any hibernateall.jar upgrades since say version 1.1? Would you advise against upgrading to the later 3.2.4.sp1 for example. I notice there are a lot of bugfixes between that and the version that I am currently on. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065800#4065800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Timer / Scheduling in Seam
What are you recommending for task scheduling now in seam? Last time I used quartz but if memory serves there was somthing you were working on earlier in the year which wasnt ready last time I asked. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054298#4054298 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054298 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Icefaces + fileupload
Hi what is the current state regarding file upload? Last time I checked neither worked. I am on 1.2.1GA and 1.5.4 Icefaces If anyone has got either tag working I would be extremely grateful for advice particularly regards the commons lib placement and config. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043196#4043196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043196 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Navigation conceptual question
Thanks very much, I will give this go. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041405#4041405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041405 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Navigation conceptual question
In this case I decided that I could use a icefces modal dialogue... how very web 2.0. I would still like a nice way to do this however and I cant help but think seam has a solution. Passing parameters around is so old school ;0) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041217#4041217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how do i get the size of collection in .xhtml with facel
Are you susre that your collection supports getSize() ? Iterator and a few others do not View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040927#4040927 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040927 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Possible to Stream Object to user in Seam?
I had a look arround and decided that a sevlet was the only option although I am far from an expert. One word of advice - when you are doing your database ensure that you have your blob in a separate table. I was unable to convince hibernate to lazy load blobs. This meant a 20 line file listing was causing memory errors all over the place. Also I had to use java.sql.Blob as the datatype - byte[] wouldnt play nicely although thats probably more likely a mysql database driver issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040795#4040795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: failed to lazily initialize a collection
You need to use an extended persisten context otherwise is is closed on forwarding to the view. @PersistenceContext(type=EXTENDED) EntityManager em; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040666#4040666 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040666 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Navigation conceptual question
This sort of situation crops up a lot of the time for me so I would be interested in the seam solution to this problem. I am in the middle of a long conversational process but midway need to view some details. I start a new converstion with nested=true so that the previous state is maintained. The page is then viewed and we can link back with another action that closes the top level conversation and pops the other one. So far so good. However the page I just viewed needs to be visited from three other pages and in each case i need to go back to that page. Is there a nice seam way to do this sort of thing? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040665#4040665 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040665 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Remoting exception
Hi I am trying my hand a bit of remoting and am stuck here. It is so close to the example code in section 19 I really cant see a problem. This is 1.2.0 PATCH + Icefaces + 4.0.5 AS + JAAS Cheers Exception: 00:10:50,328 ERROR [Remoting] Error | java.lang.RuntimeException: Type cannot be determined for component [Component(stockCheck)]. Please ensure that it has a local interface. | at org.jboss.seam.remoting.InterfaceGenerator.appendComponentSource(InterfaceGenerator.java:284) | at org.jboss.seam.remoting.InterfaceGenerator.generateComponentInterface(InterfaceGenerator.java:131) | at org.jboss.seam.remoting.InterfaceGenerator.handle(InterfaceGenerator.java:101) | at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:110) | at org.jboss.seam.servlet.ResourceServlet.doPost(ResourceServlet.java:76) | at org.jboss.seam.servlet.ResourceServlet.doGet(ResourceServlet.java:58) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at halvor.filter.RoleFilter.doFilter(RoleFilter.java:48) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at halvor.filter.TimerFilter.doFilter(TimerFilter.java:42) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 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(Unknown Source) | Javascript (the ../ is correct) | | | | // | | java : | package halvor.session; | | import javax.ejb.Stateless; | | import org.jboss.seam.annotations.Name; | | | @Stateless | @Name("stockCheck") | public class StockChecker implements StockCheckerI { | | public String checkStock (String itemCode) { | return "jkjhjk"; | } | | } | | package halvor.session; | | import org.jboss.annotation.ejb.Local; | import org.jboss.seam.annotations.WebRemote; | | @Local | public interface StockCheckerI { | | @WebRemo
[jboss-user] [JBoss Seam] - Re: Conceptual/Best Practice Question
That should have read... conversation as it lacks the '' part such as for pageflows org.jboss.seam.endPageflow. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032187#4032187 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032187 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conceptual/Best Practice Question
Thanks for the response Gavin. As the refresh is a potentially expenisve operation I wanted to limit it to just the conversation that bean is involved in. I noticed the org.jboss.seam.endConversation in the docs before but assumed it was any conversation as it lacks the '' part such as for pageflows org.jboss.seam.endPageflow.. Am I misreading (unlikely as whoever write the docs does a great job ;0)) or is there a way to limit the event interception to a single bean, or perhaps examine the event trigger on processing? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032184#4032184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032184 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JAAS login with JBoss Seam
It might be true now but I had configuration hell... | | http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd";> | | | |java:/jaas/fooSecurityPolicy | | | | | | | | | | | http://www.jboss.org/j2ee/dtd/security_config.dtd";> | | | | | | java:/fooDatasource | | | SELECT password FROM user WHERE userId=?; | | | SELECT role, 'Roles' FROM role r | INNER JOIN user u ON u.userID = r.userID | WHERE u.userId=? | | true | UTF-8 | hex | MD5 | | | | | | | | | foo-login-config.xml | | jboss.security:service=XMLLoginConfig | | | jboss.security:service=JaasSecurityManager | | | | | | | Secure Area | Security for Protected Pages | /secure/* | POST | GET | | | Only valid users can use the secure resources | fooUser | | | NONE | | | | | | Admin Area | Administrator Protected Pages | /admin/* | POST | GET | | | Only valid admin users can use the secure resources | fooAdmin | | | NONE | | | | | FORM | fooSecurityPolicy | | /login.seam | /loginError.seam | | | | | An foo system user | fooUser | | | | An foo admin user | fooAdmin | | | | |java:/jaas/fooSecurityPolicy | | | * | org.jboss.seam.ejb.SeamInterceptor | | | | | | | foo-login-service.xml | | | seam.jboss.org:loader=foo | | | Personally I would use the simplified version if you can. I have always disliked JAAS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032124#4032124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conceptual/Best Practice Question
I am getting greedy now. Is there somewhere I can place the event call inside a @Conversational bean so that it will get fired on any @End call? I have many many ways to end a conversation here. I thought like this... | @Remove @Destroy @RaiseEvent("YOUR_EVENT_NAME") | public void destroy() {} | | | | ... although I suspect someone will call me naughty for doing this? This also requires me to ask if @Destroy is called directly after @End. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032074#4032074 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conceptual/Best Practice Question
I love elegant solutions. Thanks a lot View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032051#4032051 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032051 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Conceptual/Best Practice Question
I have home page view that displays a list of orders as a @DataModel. The user can customise the view via a drop list to display different versions of this data model. This therefore requires state to maintain the selection choice. Users are also potentially altering the results viewable in the DataModel all over the place in the application. Obviously I need to refresh the view under these circumstances. My thoughts so far -: 1) Observable type data pattern but cant see how I can integrate this nicely. Are there 'hooks' anywhere i can use inside seam/hibernate? Ok i realise this is a bit off topic. 2) Re-populate the data set on every view. How do I do this considering that I am using a DataModel? Currently I initalise the DataModel using a factory method. 3) Something I have not thought of... Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032043#4032043 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032043 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Validation - Best Practices
I just realised that sounded a bit like a moan. Just to clarify I really like seam (beats spring hands down) and you are doing a great job. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029887#4029887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029887 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Validation - Best Practices
We are using Seam 1.2 + Icefaces (after trying tomahawk and trinidad) and have used a number of validation techniques over the last few months. It just seems that there are so many ways to validate (some of which are semi-deprecated) for ejb, seam, and jsf that I am not sure what is best. Typically we will have valid data types (lends itself to ejb annotations) and non-duplicate key type validations (requires bean based validation) but as with all software projects there are exceptions. Could you please advise what is the best way to validate the data and also to display this nicely to the user? I realise there is a lot of documentation about this, however from my end it seems to be like hitting a moving target. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029886#4029886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029886 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Quartz TimerService
I have the calendar defined in jobs.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994585#3994585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Quartz TimerService
This worked fine for me. I have the quartz jar in the lib folder and I believe that was it. This is on 4.0.5 GA. I noticed that I have jobs.xml, .properties and the xsd in my WEB-INF from an earlier attempt to run it the non-ejb way. Maybe it requires this? @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "0/15 * * * * ?") }) | @ResourceAdapter("quartz-ra.rar") | | public class TestQuartzTarget implements Job { | | @PersistenceContext | EntityManager em; | | private static final Logger log = Logger | .getLogger(TestQuartzTarget.class); | | public PendingOrderQuartzTarget() { | super(); | System.out.println("Quartz-bean is constructed()"); | } | | public void execute(JobExecutionContext jobExecutionContext) | throws JobExecutionException { | | long start = System.currentTimeMillis(); | | log.debug(this.getClass().getName() + " STARTING RUN"); | log.debug(em); | | //Do your work here | | log.debug(this.getClass().getName() + " FINISHING RUN"); | log.debug("RUNTIME: " + (System.currentTimeMillis() - start) + " ms"); | } | | } >From web.xml | QuartzInitializer | org.quartz.ee.servlet.QuartzInitializerServlet | | |config-file |quartz-nrg2.properties | | | |shutdown-on-unload |true | | | |start-scheduler-on-load |true | | 1 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994405#3994405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994405 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Manager Woes
I am using Quartz to invoke methods but I will have to admit to the inner working being 'magic' to me. I have just gone back to square one and tried a completely different approach as, since I last looked, quartz has EJB3 initilisation support. Ok I will not get the bijection capabilities I assume but will get a working EntityManager hopefully. Is this a far better approach? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993888#3993888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993888 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to get EnitityManager in SLSB without injection??
I have manged through jndi lookup EntityManagerFactory emf = (EntityManagerFactory) jndi.lookup("java:/myEntityManagerFactory"); em = emf.createEntityManager(); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993861#3993861 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993861 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Entity Manager Woes
Ok I have oficially downgraded myslef to n00b after a large amount of previous success with seam. Basically I am trying to use the entity manager from an external thread. I have the entity manager. | EntityManager em = null; | | try { | jndi = new InitialContext(); | //TODO get name from settings | EntityManagerFactory emf = (EntityManagerFactory) | jndi.lookup("java:/myEntityManagerFactory"); | em = emf.createEntityManager(); | NrgOrder nrgOrder = em.find(NrgOrder.class, 1); | nrgOrder.setState(NrgOrder.SEND_ERR); | em.persist(nrgOrder); | log.debug(nrgOrder.getState()); | em.close(); | } catch (Exception e) { | e.printStackTrace(); | } finally { | try { | if(jndi!=null) jndi.close(); | } catch (NamingException e) { | e.printStackTrace(); | } | } the myEntityManagerFactory is the same one as seam references (I think) as defined by the following... | | org.hibernate.ejb.HibernatePersistence | java:/myDatasource | | | | | | | | | | | | and... | | | | | true | true | my/#{ejbName}/local | | | | java:/myEntityManagerFactory | | | | 30 | | | | | | I am able to load using the above snippet but no updates are taking place. I am calling close() with no joy. I tried calling flush() but i get 14:17:30,375 ERROR [STDERR] javax.persistence.TransactionRequiredException: no transaction is in progress | 14:17:30,375 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:293) | 14:17:30,375 ERROR [STDERR] at halvor.schedulers.PendingOrderQuartzTarget.execute(PendingOrderQuartzTarget.java:95) | 14:17:30,375 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:203) | 14:17:30,375 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) If i try and use transaction EntityTransaction et = em.getTransaction(); et.begin(); I get... 14:19:00,156 ERROR [STDERR] java.lang.IllegalStateException: JTA EntityManager cannot access a transactions | 14:19:00,156 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.getTransaction(AbstractEntityManagerImpl.java:316) | 14:19:00,156 ERROR [STDERR] at halvor.schedulers.PendingOrderQuartzTarget.execute(PendingOrderQuartzTarget.java:91) | 14:19:00,156 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:203) | 14:19:00,156 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) I am clearly missing something obvious so can someone point it out to me plesae. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993857#3993857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993857 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using Seam from External Invocation
Thanks Gavin but I think that might require a slightly better understanding that I have. Taking the broader problem, running repeated actions from antoher thread and still having access to the seam beans . Can anyone suggest something please? I have tried Component.getInstance("testBean") for example but I get java.lang.IllegalStateException: No application context active | at org.jboss.seam.Component.forName(Component.java:1534) | at org.jboss.seam.Component.getInstance(Component.java:1584) | at org.jboss.seam.Component.getInstance(Component.java:1567) | at org.jboss.seam.Component.getInstance(Component.java:1561) | at halvor.schedulers.db.PendingOrderQuartzTarget.execute(PendingOrderQuartzTarget.java:11) | at org.quartz.core.JobRunShell.run(JobRunShell.java:203) | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) | I am assuming I need to configure something with this approach but do not know where to start. Any other approach suggestions are welcome; i am not tied to quartz in any way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993360#3993360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993360 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using Seam from External Invocation
So far my progress with seam has been rapid and I have enjoyed using it. I have just stumbled with the following problem. I am invoking Jobs using Quartz that act upon all my entities. I wanted to do nice things like @Logger and @PersistenceContext and use the entity manager to do the manipulation but unsuprisingly bijection does not take place. Can someone advise me on the best/better way(s) to deal with this scenario please? Kind Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993099#3993099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:dataTable DataModel
Hi could someone let me know the prefered way of using hibernate backed collections in a DataTable type way please. I realise I can copy the hibernate collection back in and out of the conversation bean to DataModel and DataModelSelection but that seems a bit silly. Other attempts I have made result errors usually involving the backing bean being of the incorrect type (PersistentSet for example) Also an example of multiple DataModels in a pojo would be great. Kind Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991051#3991051 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991051 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Paths and web file references
Hi. In all the examples I have seen hardcoded references to web files e.g. /seam-booking/images/logo.gif In other projects on tomcat paths are resolved against the context root so /images/logo.gif would be fine. How can I achieve the same thing either by having them auto resolve or el referencing the root... something like #{appContext.name}/images/logo.gif? Of course any other methods would be welcome. Kind Regards, Mark View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982418#3982418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user