[JBoss-user] [JBoss Seam] - Yet another newbie question...
Okay, I think I'm starting to figure things out. However, now I'm having problems with a one to many relationship. Here are some source snippets... (from User.java) @NotNull @ManyToOne @JoinColumn(name="Id", nullable=false) public Role getRole() { return role; } public void setRole(Role role) { this.role = role; } (from Role.java) @Entity @Name("role") @Scope(EVENT) @Table(name="roles") public class Role implements Serializable { private String name; private Integer id; public Role(String name, Integer id) { this.name = name; this.id = id; } public Role() {} @Id @GeneratedValue public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } @NotNull @Length(min=1, max=15) public String getName() { return name; } public void setName(String name) { this.name = name; } public String toString() { return "Role(" + name + ")"; } } (from YaRBImpl.java) @Stateful @Name("yarb") @Scope(APPLICATION) @Interceptors(SeamInterceptor.class) public class YaRBImpl implements YaRB { List roles; Map roleMap; @PersistenceContext EntityManager em; @Create public void loadData() { roles = em.createQuery("from Role r").getResultList(); Map results = new TreeMap(); for(Role role: roles) { results.put(role.getName(), role); } roleMap = results; } public Map getRoles() { return roleMap; } public Converter getConverter() { return new RoleConverter(roles); } public Role getNullRole() { return new Role(); } static public class RoleConverter implements Converter, Serializable { List roles; public RoleConverter(List roles) { this.roles = roles; } public String getAsString(FacesContext facesContext, UIComponent component, Object obj) throws ConverterException { if (obj == null) return null; return String.valueOf(((Role) obj).getId()); } public Object getAsObject(FacesContext facesContext, UIComponent component, String str) throws ConverterException { if(str == null || str.length()==0) return null; Integer id = new Integer(str); for (Role role: roles) { if(role.getId().equals(id)) { return role; } } return null; } } } (from SSBImpl.java) @Stateless @Name("ssb") @Interceptors(SeamInterceptor.class) public class SSBImpl implements SSB { @In(required=false) @Valid private User user; @In(required=false) @Valid private Role role; @PersistenceContext private EntityManager em; @IfInvalid(outcome="index") public String invoke() { List existing = em.createQuery("select username from User where username=:username").setParameter("username", user.getUsername()).getResultList(); if(existing.size()==0) { em.persist(user); return "go"; } else { return "oops"; } } @IfInvalid(outcome="role") public String createRole() { List existing = em.createQuery("select name from Role where name=:name").setParameter("name", role.getName()).getResultList(); if(existing.size()==0) { em.persist(role); return "bob"; } else { return "role"; } } } (from index.xhtml) It lists my roles correctly, and I can see that my converter is actually returning a role object when I try and
[JBoss-user] [JBoss Seam] - Updating JSF components via Seam remoting...
I have a stateful session bean with a method annotated with @WebRemote that returns a string which is being used to dynamically update a h:selectOneListbox. However, because the options didn't exist when the page was initially rendered (passed through the facelets view resolver), when I attempt to submit the form, the page fails validation. Is there a way to update the servers knowledge of the rendered view to contain the newly created options? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945921#3945921 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945921 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Updating JSF components via Seam remoting...
Well, in that case, would it be possible for me to pass the serialized form to my @WebRemote method, deserialize it, update the object graph, and reserialize it, and update the page with the new version of the serialized form? Also, if I changed javax.faces.STATE_SAVING_METHOD client to save state on the server, would that give me a way to do what I want? It seems as if this should be possible somehow. One of the greatest uses for AJAX is to update form fields with dynamicall retreived information. I really like the way that Seam integrates with AJAX so nicely, it'd be great if I could get this to work. Thanks for all your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946108#3946108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946108 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Problem with server side state saving...
When I change my application from client side state saving to server side state saving, nothing works. Even something as simple as an h:commandButton that forwards to an outcome (the action attribute is a string that matches a defined outcome in faces-config.xml) doesn't work. Instead, clicking on said command button just reloads the page I'm on. If I switch back to client, though, everything works. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947628#3947628 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947628 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problem with server side state saving...
Latest from their SVN as of a week ago. It doesn't give any errors or throw any exceptions. It's really, really weird. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947796#3947796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947796 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problem with server side state saving...
All the faces documentation I can find says that changing it from client to server should Just Work(tm). I'm wondering if there isn't some JBoss or Seam specific setting that I'm missing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947798#3947798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947798 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - @RequestParameter?
I have the following SLSB... @Stateless @Name("infozapAction") public class InfozapActionImpl implements InfozapAction { @RequestParameter("schoolList") private String schoolList; @Out private InfoZapDTO izdto; public void createInfoZapDTO() { System.out.println(schoolList); izdto = new InfoZapDTO(schoolList); } } and the following pages.xml... However, when I navigate to the following url... http://ben.gradview.com:8080/ben/onepageiz.jsf?schoolList=2525 The console outputs "null". Is my usage of @RequestParameter correct? Could this possibly be a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953422#3953422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953422 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @RequestParameter?
Anyone? This seems to be the correct setup based on the example of a RESTful app in the Seam documentation. Unless I'm being completly stupid, which, knowing me, isn't beyond possability. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953500#3953500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953500 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @RequestParameter?
Doh... Apparently I didn't search hard enough before. My SLSB was missing the... @Interceptors(SeamInterceptor.class) at the top of the class. In my defense, the documentation for Seam doesn't show this in the SLSB from the example of a RESTful application. I'm sure if this were added to the documentation, it could save some people (like me) many headaches. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953554#3953554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953554 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Request parameter arrays?
When submitting a form that has a multi-select, I'm noticing that @RequestParameter is only ever getting the first value of the multi-select. For example, let's say I have the following html snippet... School 1 School 2 ... ... ... And the following SLSB... @Stateless @Name("infozapAction") @Interceptors(SeamInterceptor.class) public class InfozapActionImpl implements InfozapAction { @RequestParameter private String[] schoolList; @Out private InfoZapDTO izdto; public void createInfoZapDTO() { System.out.println("Length = " + schoolList.length); izdto = new InfoZapDTO(schoolList); } } In the console I get something like... 08:23:51,101 INFO [STDOUT] Length = 1 And the array only contains the first "shoolList" parameter in the request. Is there a way around this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954349#3954349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954349 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?
Thanks for your helpful reply. I didn't know how to get access to the actual request object. Unfortunantly, I can't use a faces component, as I'm not allowed to rewrite the page that the request comes from. I do think that @RequestParamater should support a mutli-select however. It seems silly that what I tried originally didn't work. Oh well. Thanks again for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954439#3954439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954439 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?
Well, trying the above code results in an exception being thrown. I think that the faces context might not be available yet. Basically, I'm using pages.xml to require a SLSB method to be invoked before my my page loads. Inside that SLSB method, I'm trying to get the "schoolList" request parameter. Anyways, here's the exception that's thrown... 12:50:48,523 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase. javax.faces.el.EvaluationException: Exception while invoking expression #{infozapAction.createInfoZapDTO} at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153) at org.jboss.seam.core.Pages.callAction(Pages.java:156) at org.jboss.seam.core.Pages.callAction(Pages.java:138) at org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:125) at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:100) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:47) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) 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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) 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.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: javax.ejb.EJBException: org.jboss.seam.RequiredException: In attribute requires value for component: infozapAction.context 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:192) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor
[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?
Nevermind, I'm a dork. I forgot that Seam bases injection off of the name of the private member variable. I should have more carefully copied your code. Remember class, shorcuts == bad. :-/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954450#3954450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954450 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?
Thank you so much for your help. The way you suggested getting it didn't quite work, but the following did. ServletRequest req = (ServletRequest)facesContext.getExternalContext().getRequest(); String schoolList[]=req.getParameterValues("schoolList"); Anyways, I'll definitely file a bug report. Thanks again for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954460#3954460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954460 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?
Bug entered as JBSEAM-291. I probably didn't file it quite correctly. Oh well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954467#3954467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954467 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Request parameter arrays?
This is now fixed in CVS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955630#3955630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955630 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Problems with pages.xml...
I'm replacing part of a struts web application with Seam and I'm having some strange problems with pages.xml Problem one: I have a pages.xml that runs an action on pageload that grabs some request values and stores them in a session scoped Seam component so that I can use them later. However, when I preform any action on said page that would navigate me to a new page, the action defined for this page runs again. Since the request parameters are now lost, this results in all the values in my bean being nulled out, and my application throws null pointer exceptions. pages.xml InfoZap action: @Stateless @Name("infozapAction") @Interceptors(SeamInterceptor.class) public class InfozapActionImpl implements InfozapAction { @RequestParameter String[] schoolList; @RequestParameter String productAreaID; @RequestParameter String infozapType; @RequestParameter String productTypeID; @Out private InfoZapDTO izdto; //@In(create=true) //private Redirect redirect; public void createInfoZapDTO() { izdto = new InfoZapDTO(); if(schoolList != null) { izdto.setSchoolList(schoolList); } if(productAreaID != null) { izdto.setProductAreaID(productAreaID); } if(infozapType != null) { izdto.setInfozapType(infozapType); } if(productTypeID != null) { izdto.setProductTypeID(productTypeID); } //redirect.setViewId("/ben/infozap.jsf"); //redirect.execute(); } } infozap.xhtml ... ... Problem two: In light of the above, I made a dummy page and edited the URL pattern in pages.xml to fire my action when the dummy page is navigated to. I edited the action to redirect to the correct page after it grabs the request values. I can see in my code that the method is fired, but even though I outject the member variable, after the redirect, it's no longer available pages.xml InfoZap action: same as above with redirect lines uncommented Any help would be greatly appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956646#3956646 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956646 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problems with pages.xml...
Problem 3: So, trying it a new way, I had the pages action start a conversation by invoking a method with the following annotation... @Begin(id=1) in a stateful conversational bean. However, when submitting the form on the page, the following exception is thrown... 14:15:21,805 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase. javax.faces.el.EvaluationException: Exception while invoking expression #{processInfozapAction.createInfoZapDTO} at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153) at org.jboss.seam.core.Pages.callAction(Pages.java:169) at org.jboss.seam.core.Pages.callAction(Pages.java:151) at org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:135) at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:106) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:53) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) 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.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.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: javax.ejb.EJBException: java.lang.IllegalStateException: begin method invoked from a long running conversation, try using @Begin(join=true) 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
[JBoss-user] [JBoss Seam] - Re: Problems with pages.xml...
Gavin... I think you misunderstood me. There is no form action that starts a conversation. That method annotated with @Begin is the method that the page action is calling... not the form action. Either way, the documentation clearly states that calling a method annotated with @Begin(id="something") where something = a currently running conversation id that the user session will seamlessly join the conversation and the @Begin method will never be invoked. What's happening for me is that any form action is causing the page action to be run again... which is causing the @Begin annotated method to be called again. Even though this method is given a hard coded conversation ID, it's still throwing this exception. Sorry if I was unclear. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956694#3956694 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956694 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problems with pages.xml...
It's happening when right before the render-response phase after a form submission. I guess I'm still misunderstanding the way conversation works. It definitely still throws the exception when I remove the (id=1) part. I'm not sure what you mean by "calling the method twice", but either way, I'm trying a different solution now. It doesn't make sense to me that the page action is getting invoked again after the form submission. Anyways, thanks for your help so far. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956741#3956741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956741 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problems with pages.xml...
Gavin... Does @Begin(join=true) still invoke the code in the annotated method if you're joining an existing conversation? If not, that definitely would be a solution to my problem. Either way, what you just said pointed me to the real problem (yes, I feel pretty dumb now). When I changed folder structure inside my web app, I forgot to update faces-config.xml where I had my navigation rules defined. This is most likely what was causing the page action to fire even when form actions were executed that should have resulted in navigating to a new page. I was also misunderstanding the part of the documentation that said if you called an @Begin method where the (id="some el") "some el" expression evaluated to an already existing conversation ID to say that even if you were already in a conversation, that you'd be rejoined to that conversation. I'm now guessing that the documentation was speaking of a user who wasn't in a conversation at all, joining a still running conversation that the user had left without closing earlier during the user session. Thanks again for your patience. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956767#3956767 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956767 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - JBoss class load order/application class dependancy question
I apologize in advance if this is in the wrong place. I have a question about the order in which JBoss loads classes in the class path, and whether or not there is a way to force JBoss to load web-application classes first, and/or keep each web applications classes seperate from eachother/JBoss. I'm in the process of developing a small web application that runs functional testing on web applications in developement here at my company. I'm using an open source project called HTMLUnit (version 1.4), and I'm finding that several of the classes that HTMLUnit depends on are also classes being used by JBoss. The problem is that HTMLUnit is using the latest releases of said classes, including some beta releases (or so I believe). Because JBoss uses older versions of these classes, my web application won't run. I experimented a little with updating some of the classes that JBoss uses in order to be compatible with HTMLUnit, but I've had no success. Is there a way for me to force JBoss classes to be kept seperate from application classes? Is there a way for me to update JBoss to the latest version of these classes? Any help would be greatly appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869733#3869733 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869733 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JBoss class load order/application class dependancy ques
Thanks for your advice, but unfortunantly, that doesn't seem to work. In fact, JBoss won't even start when that's the case, due to major class conflicts. A temporary work-around has been to make a web application which basically spawns it's own Java VM in order to do any "dirty" work, and an admittedly crude hack to communicate across VM's. If you or anyone else has any other ideas, I'd still sure like to know, especially since the above solution doesn't seem very "clean" to me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870349#3870349 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870349 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JBoss class load order/application class dependancy ques
Thank you! That information is exactly what I need. P.s. It's pretty cool that the 3 reply to this post came from the C.T.O of JBoss... if I were superstitious, I would say that this means I'm destined for great doings. :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870402#3870402 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870402 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Newb needs help...
I'm new to Seam (and web application programming in general) and I'm having troubles deploying one of the Seam example applications from within Eclipse. I've set up the project to (as closely as I can tell) mirror the structure of the example project, and I can indeed navigate to register.jsf (obviously, I'm trying to use the registration example). The problem, however, is that whenever I try to submit the form, I get a bulleted list of conversion errors. I'm fairly certain that I'm just missing something silly and obvious, but I just can't quite put my finger on it. If anyone has some suggestions on where to look, I'd be greatly appreciative. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915367#3915367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915367 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
I have gotten the sample applications to run from deploying in ant. I havn't tried checking out a project into eclipse as you've suggested above however. I can post the startup log from JBoss, but there arn't any noticeable errors there. If the log would be helpful, I'll post it ASAP. I did realize one mistake I was making was that MyEclipse was liking to deploy the EJB jar with the .jar extension instead of the .ejb3 extension. I fixed this problem, and it says that it's deploying the EJB's, but I have a feeling that the problem lies somewhere in there. Lemme poke around and see if I can't get that log. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915375#3915375 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915375 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
Does that mean that the actual deployment and development of Seam applications isn't really done from Eclipse (I have MyEclipse and all it's J2EE goodness)? I guess I should go get JBoss IDE. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915499#3915499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915499 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
I see I'm being more brilliant than ever today. :) I'll download the plugin anyways and see how it helps. Oh, and here's the log that I promised. Somehow, I'm pretty sure I'm still missing something stupid and obvious. *sigh* 09:56:55,031 INFO [Server] Starting JBoss (MX MicroKernel)... 09:56:55,031 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054) 09:56:55,031 INFO [Server] Home Dir: C:\seam-stuff\jboss-4.0.3SP1 09:56:55,031 INFO [Server] Home URL: file:/C:/seam-stuff/jboss-4.0.3SP1/ 09:56:55,046 INFO [Server] Patch URL: null 09:56:55,046 INFO [Server] Server Name: all 09:56:55,046 INFO [Server] Server Home Dir: C:\seam-stuff\jboss-4.0.3SP1\server\all 09:56:55,046 INFO [Server] Server Home URL: file:/C:/seam-stuff/jboss-4.0.3SP1/server/all/ 09:56:55,046 INFO [Server] Server Temp Dir: C:\seam-stuff\jboss-4.0.3SP1\server\all\tmp 09:56:55,046 INFO [Server] Root Deployment Filename: jboss-service.xml 09:56:55,562 INFO [ServerInfo] Java version: 1.5.0-rc,Sun Microsystems Inc. 09:56:55,562 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0-rc-b63,Sun Microsystems Inc. 09:56:55,562 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 09:56:56,517 INFO [Server] Core system initialized 09:57:00,474 INFO [WebService] Using RMI server codebase: http://Ops_1001930:8083/ 09:57:00,505 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 09:57:00,943 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server [EMAIL PROTECTED] 09:57:04,776 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.hbm2ddl.auto=create-drop, hibernate.connection.datasource=java:/DefaultDS, hibernate.connection.release_mode=after_statement} 09:57:04,776 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://172.27.50.113:3873/0.0.0.0:3873] 09:57:05,996 INFO [AspectDeployer] Deployed AOP: file:/C:/seam-stuff/jboss-4.0.3SP1/server/all/deploy/ejb3-interceptors-aop.xml 09:57:11,049 INFO [SnmpAgentService] SNMP agent going active 09:57:12,347 INFO [DefaultPartition] Initializing 09:57:12,425 INFO [STDOUT] --- GMS: address is Ops_1001930:3896 (additional data: 18 bytes) --- 09:57:14,459 INFO [DefaultPartition] Number of cluster members: 1 09:57:14,459 INFO [DefaultPartition] Other members: 0 09:57:14,459 INFO [DefaultPartition] Fetching state (will wait for 3 milliseconds): 09:57:14,459 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [172.27.50.113:1099] 09:57:14,474 INFO [DefaultPartition] I am (172.27.50.113:1099) received membershipChanged event: 09:57:14,474 INFO [DefaultPartition] Dead members: 0 ([]) 09:57:14,474 INFO [DefaultPartition] New Members : 0 ([]) 09:57:14,474 INFO [DefaultPartition] All Members : 1 ([172.27.50.113:1099]) 09:57:14,537 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0 09:57:14,537 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=172.27.50.113:1100 09:57:16,398 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45551;mcast_recv_buf_size=8;mcast_send_buf_size=15;ucast_recv_buf_size=8;ucast_send_buf_size=15):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=2;min_interval=1):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=2;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false) 09:57:16,430 INFO [TreeCache] setEvictionPolicyConfig(): [config: null] 09:57:16,445 WARN [TreeCache] No transaction manager lookup class has been defined. T
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
Here's the problem I'm experiencing... 1) I navigate to the web app URL (in my case, http://localhost:8080/SampleAppWeb/register.jsf) 2) I fill out the form from the sample seam application (a username field, real name field, and password field) 3) I submit the form. When I submit the form, it reloads the form with the following addition: an unordered list containing three list items, each of which read "Conversion Error". From what I've been able to Google, this is a standard JSF validation error message when the data entered into a form field doesn't match the expected type. My theory is that the user bean is not being deployed correctly, and therefore when it trys to do the seam component lookup it gets nothing, and JSF is mis-interpreting this as a validation error. Or, I could be entirely off my rocker... which has, on occasion, been known to happen. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915649#3915649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915649 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
Doh! I forgot the seam.properties file in my SampleAppEJB.ejb3 jar. However, it still doesn't work. Maybe you can explain this to me? From my logs, I see the following... 09:13:19,524 INFO [Scanner] scanning: /C:/seam-stuff/jboss-4.0.3SP1/server/all/tmp/deploy/tmp38060SampleApp.ear-contents/SampleAppEJB.ejb3 09:13:19,524 INFO [Scanner] scanning: C:\seam-stuff\jboss-4.0.3SP1\server\all\tmp\deploy\tmp38060SampleApp.ear-contents\SampleAppWeb-exp.war 09:13:19,539 INFO [Seam] done initializing Seam I noticed that for the booking example application that comes with seam that seam does lots of nice things (like, you know... actually deploying beans and stuff) after scanning the ejb3 jar file. For me, it seems as if it's not finding anything inside the .ejb3 file. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915820#3915820 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915820 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
Here's the source from my user bean. Please note that it's identical to the one used in the examples/registration from seam. package org.jboss.seam.example.registration; import static org.jboss.seam.ScopeType.SESSION; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import org.hibernate.validator.Length; import org.hibernate.validator.NotNull; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; @Entity @Name("user") @Scope(SESSION) @Table(name="users") public class User implements Serializable { private static final long serialVersionUID = 1881413500711441951L; private String username; private String password; private String name; public User(String name, String password, String username) { this.name = name; this.password = password; this.username = username; } public User() {} @NotNull public String getName() { return name; } public void setName(String name) { this.name = name; } @NotNull @Length(min=5, max=15) public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Id @NotNull @Length(min=5, max=15) public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String toString() { return "User(" + username + ")"; } } It' doesn't use the conversation scope, but that doesn't prevent it from working in the registration example. :-/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915846#3915846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915846 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
Don't worry... I'm pretty sure it's a silly error myself. I'll see what I can do about the debug process outlined above. If there was an error loading a class or somesuch, wouldn't it get reported in the console? Is there a way to set the logger output to a more eplicit level? Would that even help? Thanks again for all your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916119#3916119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916119 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Newb needs help...
Interesting stuffs... 2006-01-05 09:13:16,555 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Process annotated classes 2006-01-05 09:13:16,711 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column TYPE unique false 2006-01-05 09:13:16,743 DEBUG [org.hibernate.cfg.annotations.EntityBinder] Import with entity name=User 2006-01-05 09:13:16,805 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing org.jboss.seam.example.registration.User per property access 2006-01-05 09:13:16,821 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null 2006-01-05 09:13:16,821 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0} 2006-01-05 09:13:16,836 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null 2006-01-05 09:13:16,836 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0} 2006-01-05 09:13:16,852 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null 2006-01-05 09:13:16,852 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0} 2006-01-05 09:13:16,852 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null 2006-01-05 09:13:16,852 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0} 2006-01-05 09:13:16,868 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of org.jboss.seam.example.registration.User.username 2006-01-05 09:13:16,868 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column username unique false 2006-01-05 09:13:16,883 DEBUG [org.hibernate.cfg.AnnotationBinder] username is an id 2006-01-05 09:13:16,883 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for username 2006-01-05 09:13:16,883 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property username 2006-01-05 09:13:16,899 DEBUG [org.jboss.cache.eviction.LRUAlgorithm] processing the node events in region: Regions--- fqn: /_default_/ maxNodes 100 TimeToIdleSeconds 300current eviction queue size is 0 2006-01-05 09:13:16,899 DEBUG [org.jboss.cache.eviction.LRUAlgorithm] processed 0 node events 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading username with null 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.AnnotationBinder] Bind @EmbeddedId on username 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of org.jboss.seam.example.registration.User.name 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column name unique false 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] binding property name with lazy=false 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for name 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property name 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading name with null 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of org.jboss.seam.example.registration.User.password 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column password unique false 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] binding property password with lazy=false 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for password 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property password 2006-01-05 09:13:16,899 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading password with null 2006-01-05 09:13:16,930 DEBUG [org.hibernate.cfg.AnnotationConfiguration] processing manytoone fk mappings ...and then later... 2006-01-05 09:14:20,303 DEBUG [org.jboss.seam.contexts.BusinessProcessContext] Created BusinessProcessContext 2006-01-05 09:14:20,303 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user 2006-01-05 09:14:20,303 DEBUG [org.jboss.seam.Component] seam component not found: user 2006-01-05 09:14:20,303 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name 2006-01-05 09:14:20,334 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user 2006-01-05 09:14:20,334 DEBUG [org.jboss.seam.Component] seam component not found: user 2006-01-05 09:14:20,334 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name 2006-01-05 09:14:20,334 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user 2006-01-05 09:14:20,334 DEBUG [org.jboss.seam.Component] seam component not found: user 2006-01-05 09:14:20,334 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name 2006-01-05 09:14:20,334 DEBUG [org.jbos
[JBoss-user] [Beginners Corner] - Deploying web-apps under JBoss...
Ocassionally when I deploy my app under JBoss I get the following exception... 16:29:24 [org.jboss.web.localhost.Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.jsp.JspException: ServletException in '/reports/ProductionHome.jsp': tried to access class org.apache.commons.collections.IteratorUtils$EmptyIterator from class org.apache.commons.collections.IteratorUtils at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) at org.apache.jsp.tiles.TabbedMain_jsp._jspx_meth_tiles_get_5(TabbedMain_jsp.java:604) at org.apache.jsp.tiles.TabbedMain_jsp._jspService(TabbedMain_jsp.java:240) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) at org.apache.strut
[JBoss-user] [Beginners Corner] - Re: Deploying web-apps under JBoss...
No ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918655#3918655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918655 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Deploying web-apps under JBoss...
Hmmm... well, we've configured jboss-app.xml to allow for class localization. Would Eclipse show if there were multiple jars on the classpath that defined the same class? It still seems kind of odd that this conflict only shows up sometimes. Here's my jboss-app.xml (well, the relevant part) tim.hobsons.com:loader=TIM_CLASS_ARCHIVE java2ParentDelegation=true View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918761#3918761 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918761 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user