[jboss-user] [JBoss jBPM] - Forked processing in jBPM
Hi All, I am trying to use forked processing so that a single task can be split into multiple tasks. the number of transitions from the fork should also be dynamic based on the value the user chooses. Please let me know how this can be done and the corresponding java class in which the process is started. If possible please provide any links which has examples of this type. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044874#4044874 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: one persistence.xml multiple jars with entity beans
I tried jar-file element as well but it seems to be buggy because it seek for jar in $JBOSS_HOME/bin rather than in EAR It is jira issue http://jira.jboss.com/jira/browse/EJBTHREE-560 but with resolution Cannot Reproduce Bug. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044877#4044877 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044877 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: How to do webclipping of any page using Portletbridge po
Hi All, I am having problem with Portletbridge, actually it opens URL HTML page on some fixed size iFrame window and I need to change the size of window as per my requirement. Can anyone help me out on how to change the size of the window.I have downloaded the source code. Anyone there??? Ritesh Gupta. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044878#4044878 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044878 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Getting Id of Presisted object.
hii. i am using entitymanger to presist Object as: Customer cust; em.presist(cust); the id of customer is auto generated (in my case it is Oracle Sequence). after presistance i want to get the id of the presisted Object. like Customer cust; em.presist(cust); // Want to get the Id here; cust.getId(); it returns null (as object is not syncronized with the database). thanks for you help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044879#4044879 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Conditional navigation in pages.xml
I am trying to use navigation in pages.xml. | page view-id=/emailvalidate.xhtml action=#{account.validateEmail} | param name=tk value=#{token.hash}/ | navigation from-action=#{account.validateEmail} | rule if-outcome=success | render view-id=/login.xhtml/ | /rule | /navigation | /page | if the action returns success, seam renders /login.xhtml This is what I expected. What I would like to do, is if the outcome is null, render /validate.xhtml I tried this: | page view-id=/emailvalidate.xhtml action=#{account.validateEmail} | param name=tk value=#{token.hash}/ | param name=src value=email/ | navigation from-action=#{account.validateEmail} | rule if-outcome=success | render view-id=/login.xhtml/ | /rule | rule | render view-id=/validate.xhtml/ | /rule | /navigation | /page | For any outcome other than success, I expected /validate.xhtml to be rendered, but instead, seam renders the original view-id which is /emailvalidate.xhtml How can I render one page for a specific outcome from an action, and a different page for any other outcome including null? Glenn View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044880#4044880 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044880 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Parameter passing for page action
That's what even I thought but may be I'm doing something wrong. Here is the simple code I'm trying to run but it does not seem to work with event scope. Both category and id are always null unless I change the scope of categoryAction to session. Could you spot anything wrong with this approach? Thanks | @Name(home) | Class Home | { | private String category; | | public getCategory() | { | if (null == category) | category = new String(Testing Event Scope); | return category; | } | } home.xhtml: | h:commandLink action=#{categoryAction.action} value=#{home.category} | f:param name=category value=#{home.category} / | /h:commandLink | | @Name(categoryAction) | @Scope(ScopeType.Event) | Class CategoryAction | { | @RequestParameter(category) | private String category; | | public String getId() | { | if (null == id) |System.out.println(id is null); | return Id; | } | | public String getCategory() | { | if (null == category) | System.out.println(category is null); | return category; | } | | public void setCategory(String category) | { |this.category = category; | } | | public String action() | { | this.id = 1; | return category.xhtml | } | } category.xhtml: | | h:outputText value=categoryAction.id / | h:outputText value=categoryAction.category / View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044881#4044881 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044881 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to authenticate user by department?
I'm trying to extend org.jboss.seam.security.Identity class to append some fields as previous posts advice (many thanks for your help), but I get runtime exception in JBoss AS 4.0.5 GA when I explode my project from Eclipse by running ant script that provided by seam-gen. The exception is java.lang.IllegalArgumentException: no such setter method: com.js.floody.adapter.seam.FloodyIdentity.securityRules which com.js.floody.adapter.seam.FloodyIdentity class is the subclass of the Identity class. After study chapter 12 (security) of Seam documentation and trace the source code of Identity and it's precedence classes (namely the Selector and AbstractMutable), I can't find the securityRules() method too. Thus I start to trace component initialization logic (namely the Component, Seam and Initialization classes), but I still can't figure it out what's happen. What can I do next? Any suggestion is welcome. Source code: package com.js.floody.adapter.seam; import org.jboss.seam.annotations.Name; import org.jboss.seam.security.Identity; @Name(org.jboss.seam.security.identity) public class FloodyIdentity extends Identity { private static final long serialVersionUID = 2007050500L; private String department = null; public FloodyIdentity() { super(); } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } } Exception stack trace: 11:13:43,523 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration 11:13:43,536 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: com.js.floody.adapter.seam.FloodyIdentity 11:13:43,573 ERROR [[/Floody]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.RuntimeException: Could not create Component: org.jboss.seam.security.identity at org.jboss.seam.init.Initialization.addComponent(Initialization.java:865) at org.jboss.seam.init.Initialization.installComponents(Initialization.java:796) at org.jboss.seam.init.Initialization.init(Initialization.java:503) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at
[jboss-user] [JBoss Portal] - Re: JBoss WSRP consumer and file uploads
Hello, Chris! Give me some time. I'll prepare you the requests/responses. Best regards, Andrey View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044885#4044885 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044885 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss WSRP consumer and file uploads
BTW. NetUI tags are tightly integrated with BEA because it was originally their product, but then they opened the source and donated it to Apache. NetUI is always part of BEA Portal installation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044886#4044886 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044886 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm process deployment error
Hi, I was deploying a process definition and I got exception saying --- and exception happened during the deployment of the process. Look in the error log for more info. I want to know where is this log file created? I searched my jboss root folder and there is no error log. Naseem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044888#4044888 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044888 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - bug in seam setup?
I have done setup my project with seam setup (jboss-seam-1.2.1GA). I set as jboss dir D:/Programs/jboss-1.2.0CR2 (I know that it doesn't work, but I have tried it :) ) Then I started 'seam setup' one more time and setted jboss dir to D:/Programs/jboss-4.0.5.GA But when I start seam deploy or seam explode, my project is still deployed to old dir of jboss. (D:/Programs/jboss-1.2.0CR2) If I start seam setup then I see D:/Programs/jboss-4.0.5.GA as jboss dir there. Any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044889#4044889 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044889 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: how to start remote jboss server
Well, on linux/unix/cygwin you could use the ssh (secure shell) command: http://en.wikipedia.org/wiki/Ssh View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044890#4044890 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044890 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to authenticate user by department?
Sorry, this problem is solved. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044891#4044891 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to authenticate user by department?
Extend RuleBasedIdentity instead of Identity if you want rule-based authorization. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044892#4044892 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044892 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Parameter passing for page action
f:param name=category value=#{home.category} / ?! What is that supposed to do? It renders the toString() method of the Category class as a URL parameter. Seriously, you need to read up on conversations. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044893#4044893 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044893 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conditional navigation in pages.xml
You can't, null outcome means re-render. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044894#4044894 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044894 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Getting Id of Presisted object.
em.persist(o); em.flush(); o.getId(); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044895#4044895 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
Hi, with the default settings in JBoss, the name of the log is 'server.log' and can be found in the /$JBOSS_HOME/server/SERVER_CONFIG_NAME/log directory (where SERVER_CONFIG_NAME defaults to 'default'). Regards, Martin View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044896#4044896 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Weblogic to Jboss portal portlet
Hello I am from Belgium so please forgive my english. I am new to jboss portal and i have a question about portlet interoperability. Is there any utility that can make a Weblogic portal portlet work with jboss portal ? Thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044897#4044897 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044897 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Pass JavaScript method outcome to server?
Hi, I'm working with the richfaces gmap component. I need to send some data to the server that is the outcome of some JavaScript method call, along with calling an action method. I would like this to be as easy as the following: h:commandButton action=#{bean.method(par1,par2,par3)}/ where parX is a JavaScript method outcome. EL doesn't work this way so I have to figure out something. I was thinking of using a JavaScript onclick event on the commandButton that triggers some JavaScript code that somehow exposes parX to EL. Another thought was as onclick that calls a Seam @Remote-method with the correct JavaScript parameters. Or maybe create a custom component. Any thoughts on what would be the best and cleanest solution? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044898#4044898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - org.hibernate.ObjectNotFoundException: No row with the given
Hi there, we use JMS/MDB instead of the scheduler servlet. After creating a new process instance and if the first process step is asynchronous, a org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jbpm.graph.exe.Token#677214] at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27) at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:65) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:98) at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:133) at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$85898e65.getProcessInstance() at org.jbpm.command.MessageWrapper.toString(MessageWrapper.java:65) at java.lang.String.valueOf(String.java:2131) at java.lang.StringBuffer.append(StringBuffer.java:370) at de.tonline.ccms.msg.mdb.JbpmMessageListener.onMessage(JbpmMessageListener.java:62) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370) at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678) at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) occurs. As work- around, we added a sleep of 10 secs in JbpmMessageListener onMessage. Is there a better solution avaliable for this issue? Thanks Heiko View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044901#4044901 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044901 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: programmatically apply a template to UIDecorate?
I would suggest not doing this via binding, but via a facelets component handler - it's harder to understand, but plays with the JSF lifecycle much better afaics. The work is done by faceletContext.includeFacelet(/path/to/facelet.xhtml) , but facelets is quite fragile as to how use this call (without components getting pruned from the tree). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044902#4044902 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044902 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Problem with licenseFile JBoss ON
The problem is that im running JBossOn in a xen enviroment, does anyone know how to solve this? /Blomman View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044903#4044903 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044903 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
I checked it here... C:\jboss-4.0.4\server\default\log This folder is blank. There is no server.log file created here. and in C:\jboss-4.0.4\server\jbpm\log folder I have one file boot.log but here no deployment exception is there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044904#4044904 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044904 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss WSRP consumer and file uploads
Hello, Chris! I have sent to your e-mail zipped requests/responses as well as view of consumed portlet both on JBoss and BEA consumer. There is a very simple portlet that has one link with one parameter and one form with one field. I performed extacly the same actions on both consumers: 1) Entered name Andrey in the field and pressed submit 2) Clicked Go to begin link 3) Clicked Press to use default name link that has a parameter encoded First 2 steps worked fine on both consumers, but the last step does not pass the parameter. Best regards, Andrey View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044909#4044909 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044909 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Lookup SLSB from external war
Hi, It seems the EJB interfaces are on the classpath twice. So for developing using the EJBs and the War file in the same container, we must remove the interfaces in the War file. This means the War file will use the interfaces from the EJB Jar instead. Strange because it works on non-cluster environment ! Bruno View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044905#4044905 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem of Multi selectOneMenu
Hi, all. I want to setup 4 level category selectOneMenu. When the first category value change, the second category selectItems will change automaticlly according to the value of the first category. I use QuoteHisSearch to store search infomation: package com.baida.beans; import java.util.Date; import java.util.LinkedList; import java.util.List; import javax.persistence.EntityManager; import org.jboss.seam.annotations.In; import org.jboss.seam.annotations.Logger; import org.jboss.seam.annotations.Name; import org.jboss.seam.log.Log; @Name(quoteHisSearch) public class QuoteHisSearch { /* * search parameters */ private Category topCategory; private Category secondCategory; private Category thirdCategory; private Category fourthCategory; private List topCategories; private List secondCategories; private List thirdCategories; private List fourthCategories; public Category getTopCategory() { return topCategory; } public void setTopCategory(Category topCategory) { this.topCategory = topCategory; } public Category getSecondCategory() { return secondCategory; } public void setSecondCategory(Category secondCategory) { this.secondCategory = secondCategory; } public Category getThirdCategory() { return thirdCategory; } public void setThirdCategory(Category thirdCategory) { this.thirdCategory = thirdCategory; } public Category getFourthCategory() { return fourthCategory; } public void setFourthCategory(Category fourthCategory) { this.fourthCategory = fourthCategory; } public List getTopCategories() { return topCategories; } public void setTopCategories(List topCategories) { this.topCategories = topCategories; } public List getSecondCategories() { return secondCategories; } public void setSecondCategories(List secondCategories) { this.secondCategories = secondCategories; } public List getThirdCategories() { return thirdCategories; } public void setThirdCategories(List thirdCategories) { this.thirdCategories = thirdCategories; } public List getFourthCategories() { return fourthCategories; } public void setFourthCategories(List fourthCategories) { this.fourthCategories = fourthCategories; } } In QuoteHisList.java, I add these two function: public void updateCategories(){ quoteHisSearch.setTopCategories(getChildrenCatgorys(null)); if(quoteHisSearch.getTopCategory() != null) quoteHisSearch.setSecondCategories(getChildrenCatgorys(quoteHisSearch.getTopCategory())); if(quoteHisSearch.getSecondCategory() != null) quoteHisSearch.setThirdCategories(getChildrenCatgorys(quoteHisSearch.getSecondCategory())); if(quoteHisSearch.getThirdCategory() != null) quoteHisSearch.setFourthCategories(getChildrenCatgorys(quoteHisSearch.getThirdCategory())); } public List getChildrenCatgorys(Category category){ EntityManager entityManager = getEntityManager(); List children = null; if(category == null){ children = entityManager.createQuery(from Category where category=null).getResultList(); }else{ children = (List)entityManager.createQuery(from Category where category=:category) .setParameter(category, category) .getResultList(); } if(children == null){ children = new LinkedList(); } return children; } Then add in QuoteList.page.xhtml. QuoteList.xhtml's code is like that: s:decorate id=categoryDecoration template=layout/display.xhtml ui:define name=label#{messages['category.category']}/ui:define h:selectOneMenu id=topCategory value=#{quoteHisList.quoteHisSearch.topCategory} onchange=submit()
[jboss-user] [JBoss Seam] - javax.ejb.EJBNoSuchObjectException
Hi, In the last couple of days we've started seeing EJBNoSuchObjectExceptions happening and cannot work out why. I note a bunch of JIRA issues relating to this, but they are all marked as resolved, and as we are using the latest version of Seam think it must be something else. In the below stacktrace, the session bean has the following annotations: @Name(mySessionBean) @Scope(ScopeType.EVENT) @Stateful(name = mySessionBean) @Restrict(#{s:hasPermission('admin','search',null)}) Any ideas? Thanks and regards, Sean 09:52:22,211 WARN [Contexts] Could not destroy component: mySessionBean javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: a1ti30-dry6bf-f1ketavl-1-f1kevak9-10 at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268) at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.removeSession(StatefulRemoveInterceptor.java:127) at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:87) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203) at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) at $Proxy323.destroy(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57) at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50) at org.javassist.tmp.java.lang.Object_$$_javassist_40.destroy(Object_$$_javassist_40.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123) at org.jboss.seam.Component.callComponentMethod(Component.java:1834) at org.jboss.seam.Component.callDestroyMethod(Component.java:1765) at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231) at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:439) at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:315) at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRender(AbstractSeamPhaseListener.java:256) at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:115) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391) 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.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at
[jboss-user] [JBoss Seam] - submit on enter
hi all I have an xhtml page that has an h:form element and in it I have alot of h:commandButtons and h:commandLinks and I have two h:inputText values so the user can enter his user/pass to login..the problem is that if he press enters when finished with his pass the page is reloaded..In order to login he must click the login commandLink...is there another way to bind the users enter in password field to call the login function without using another h:form for this View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044908#4044908 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044908 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how check if process definition deployed?
correct View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044912#4044912 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044912 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Captcha
Hi using the captcha provided with Seam (and used as suggested in the Seam documentation), I have the following problem. If I submit a page which contains the captcha, and having filled in the catpcha response field, but validation fails due to a problem in another field on the page, the page is redisplayed but with a NEW captcha image. However the captcha response field is repopulated with what I previously put there, even though the image has now changed. I would like for the response text to be cleared when a new captcha image is generated. Is there a way to do this at the moment? Thanks in advance, Paul View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044914#4044914 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Getting Id of Presisted object.
This is how i have used oracle sequence. sequenceName=CUSTOMER_SEQ: Is the name is the name of your database sequence. name=CUSTOMER_SEQUENCE: U will use in Entity as i have used it with id field. / @Entity @Name(Customer) @Scope(EVENT) @Table(name=Customer) @SequenceGenerator(name=CUSTOMER_SEQUENCE, sequenceName=CUSTOMER_SEQ) public class ERegCustomer implements Serializable { private Integer id; @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator=CUSTOMER_SEQUENCE) public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044923#4044923 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044923 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - where i find the jboss jbpm runtime?
hi, i want to creat a new process project but i have to provide a jboss jbpm runtime, where i find it? think's a lot View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044936#4044936 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044936 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conversation Picker Component seems to have stopped work
Jira Updated.. Its even more weired! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044932#4044932 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044932 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to deal with complex Action children (configInfoElem
John filed issue http://jira.jboss.com/jira/browse/GPD-78 for this. So seems to be GPD related View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044931#4044931 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
Thanks kukeltje, Yeah I got the log file in my eclipse workspace. Thanks once again Rgds View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044929#4044929 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - XOP testCase
Greetings! I'm trying to produce a webservice according to the XOP testcase in examples. I implemented endpoint interface and implementing bean. | | package si.zejn.agentpro.core.ws; | | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.xml.ws.BindingType; | | @WebService(targetNamespace = http://ws.core.agentpro.zejn.si/;) | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE) | @BindingType(value = http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true;) | public interface MTOMEndpoint | { | public DHResponse getSlikaByID(); | | | | } | | | @WebService(name = MTOMEndpoint, serviceName = MTOMService, endpointInterface = si.zejn.agentpro.core.ws.MTOMEndpoint) | public class WServiceAP_Pictures { | | | @Resource |WebServiceContext wsCtx; | | | public DHResponse getSlikaByID() { | | | FileDataSource fds=new FileDataSource(c:/pics/slika.jpg); | DataHandler dh=new DataHandler(fds); | return new DHResponse(dh); | } | | | | } | But when invoking the service i get IllegalAnnotationsException. Any ideas? Eternally greatful.. :) PS. which way is more intuitive and better to use MTOM/XOP or SwA. I'm trying to provide interfaces for a Delphi Client | 11:49:56,984 ERROR [AbstractServiceEndpointServlet] Error processing web service request | javax.xml.ws.WebServiceException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions | javax.activation.DataHandler does not have a no-arg default constructor. | this problem is related to the following location: | at javax.activation.DataHandler | at public javax.activation.DataHandler si.zejn.agentpro.core.ws.DHResponse.getDataHandler() | at si.zejn.agentpro.core.ws.DHResponse | | at org.jboss.ws.core.jaxws.JAXBSerializer.handleMarshallException(JAXBSerializer.java:109) | at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:89) | at org.jboss.ws.core.jaxrpc.binding.SerializerSupport.serialize(SerializerSupport.java:61) | at View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044926#4044926 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044926 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to deal with complex Action children (configInfoElem
I'm not sure I totally get where what exactely your problem is. Is it just the GPD? Since complext structure like this should work in 3.2 engine, at least if the variable parent is of type org.dom4j.Element. You can read this in chapter 18.2.3.1 of the 3.2 docs and also have a look at the FieldInstantiatorTest.java in org.jbpm.instantiator package of the tests. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044925#4044925 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044925 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Getting Id of Presisted object.
Thanks for your reply christian well and injecting EntityManager like this in my action class @PersistenceContext(unitName=myDatabase) protected EntityManager em; i think it will not allow me to use em.flush function as i think so i have tried it before and it throughs exception.(As per my information it is managed by the seam and it does not allow it.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044924#4044924 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044924 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Dynamic children process on fork
see other post on this subject a few topics later.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044921#4044921 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044921 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Getting Id of Presisted object.
Hello, can someone give me some advice on how to setup a generated ID with Oracle, hibernate and SEAM... I have been trying to do a variety of ways - like before insert triggers and coupled with @GeneratedValue(strategy=GenerationType.IDENTITY) or @GeneratedValue(strategy=GenerationType.AUTO), but that didn't work. I have tried going straight to the sequence with: @Id @Column(name = LISTINGTYPE_ID, unique = true, nullable = false, precision = 22, scale = 0) @SequenceGenerator(name=identifier, sequenceName=LISTINGTYPE_SEQ, allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE, generator=identifier) @NotNull That didn't work, it kept complaining the sequence didn't exist, although it did exist. I have read a dozen or more postings and can't get the right recipe working for Oracle. I really appreciate your help. Thanks!!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044919#4044919 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044919 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Regarding customize portal creation
hi i am very new to the jboss-portal-2.4.2.i am trying to create a portal for my company. Now when i type localhost:8080/portal in browser i found three tabs on the left,NEWS,DEFAULT,TEST,instead of this i want to create my own cpmpanies pages,Video,News,Audio,etc.I also want to change the GUI of the .please guide me how to chnage this things View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044939#4044939 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044939 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Problem with licenseFile JBoss ON
From my server.log: 2007-05-11 13:17:25,310 ERROR [com.jboss.jbossnetwork.ui.action.license.LicenseUpdateAction] Backing store unavailable, allowing license to be written to disk unconditionally 2007-05-11 13:17:25,647 INFO [net.hyperic.hq.common.shared.license.LicenseManager] [License owner=Jan Groning [EMAIL PROTECTED] phone=+46 8 401 90 00 expiration=2009-12-30 platforms=unlimited serverIPs=any plugins=all support=3] 2007-05-11 13:17:27,231 INFO [STDOUT] May 11, 2007 1:17:27 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could not lock User prefs. Unix error code 2. 2007-05-11 13:17:27,231 WARN [net.hyperic.hq.common.shared.license.LicenseManager] Error: software license validation failed. Please contact support to resolve the issue. 2007-05-11 13:17:28,894 INFO [STDOUT] May 11, 2007 1:17:28 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could not lock User prefs. Unix error code 2. 2007-05-11 13:17:28,894 ERROR [net.hyperic.hq.bizapp.server.session.AuthzBossEJBImpl] Error: software license validation failed. Please contact support to resolve the issue. 2007-05-11 13:17:30,470 INFO [STDOUT] May 11, 2007 1:17:30 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could not lock User prefs. Unix error code 2. /Blomman View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044915#4044915 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how list processes?
Simon, I'd like to follow up on this, but would you want to start a new topic for this with a sujbject like 'general concepts' or something like this. That way if the search works better people can find this new 'interesting' thread. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044916#4044916 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044916 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
Martin, Naseem, The logfile mentioned here is the eclipse logfile, which can be found in the workspace the .metadata subdir View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044917#4044917 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044917 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: org.hibernate.ObjectNotFoundException: No row with the g
how and why do you use jms/mdb instead of the scheduler servlet? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044918#4044918 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044918 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Forked processing in jBPM
(@Ed: here I go again, now in a different way) @vedavyas: use google to search this forum (right ed ;-) ) and look in the wiki. Has been discussed before View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044920#4044920 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044920 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Conversation Picker Component seems to have stopped work
And not related to IceFaces View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044933#4044933 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044933 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.4.2 CR1 Release
2.6 CR2 is very stable so it is a good choice to start a project with. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044934#4044934 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: where i find the jboss jbpm runtime?
if you have the latest starterkit, it is the rootdir of that View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044937#4044937 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044937 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: submit on enter
I could be wrong but I think seam finds the nearest command button and automagically presses that when you hit enter! Shuffle the button round so that submit is nearest the password field. Works for me! (I have asked for a way of saying which I want the default button to be on a page with no luck so far so ask for that and it might get considered. Basically set breakpoints on all handlers for you buttons/links and see which is being called when the user presses enter ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044938#4044938 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044938 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
Thanks, Ronald, for straightening this out - my JBoss biased way-of-thinking wasn't helpful here ;-) Sorry for the confusion. Regards, Martin View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044943#4044943 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044943 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - SEAM EJB JAAS
I encountered problem and I don't know how to resolve it. I have an application deployed on jboss-4.0.5GA (jbossws upgaded to jbossws-1.2.1.GA). Part of application is stateless session bean deployed as WebService. @WebService(name = CtxManager, serviceName = CtxManagerService, targetNamespace = WSConstants.TARGET_NAMESPACE) @WebContext(contextRoot = ctxWS, authMethod = BASIC, transportGuarantee = CONFIDENTIAL, secureWSDLAccess = true) @Stateless @SecurityDomain(myApplicationPolicyName) @RolesAllowed(cuser) public class CtxManagerBean implements CtxManager{ ... @WebMethod public boolean hasActiveCall(@WebParam(name = dialNumber){...} ... } Same application also has seam component: @Stateless @Name(orgUnitBrowser) @Restrict(#{s:hasRole('cuser')}) public class OrgUnitBrowserBean implements OrgUnitBrowserLocal{...} When I try to invoke CtxManagerBean.hasActiveCall method from orgUnitBroswer I get authorization failure ([RoleBasedAuthorizationInterceptor] Insufficient permissions, principal=null, requiredRoles=[cuser], principalRoles=[]). When I invoke WS method from my WS client, authentication/authorization works fine. Web page (a JSF page that invokes orgUnitBrowser method that invokes ctxManager method) is also protected. login-config.xml: ... | application-policy name = myApplicationPolicyName | login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule | flag = required | module-option name = unauthenticatedIdentityguest/module-option | module-option name = dsJndiNamejava:/myDataSource/module-option | module-option name = principalsQuerySELECT password FROM USERS WHERE username=?/module-option | module-option name = rolesQuerySELECT r.description, 'Roles' | FROM USERS u | JOIN USERS_ROLE ur ON ur.users_id=u.id | JOIN ROLE r ON ur.roles_id=r.id | AND u.username=? | /module-option | /login-module | login-module code = org.jboss.security.ClientLoginModule flag = required/ | /authentication | /application-policy | ... components.xml: ... |drools:rule-base name=securityRules |drools:rule-files |value/security.drl/value |/drools:rule-files |/drools:rule-base | |security:identity jaas-config-name=myApplicationPolicyName |security-rules=#{securityRules}/ | ... page.xml: ... | page view-id=/cuser/* login-required=true | restrict#{s:hasRole('cuser')}/restrict/page | ... What else should I define/change, to resolve problem? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044946#4044946 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044946 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - creating own portal
Hi Can anybody guide me to crate my own customize portal.I want to craete my own customize navigation portlet.presently its having default,news and test.Insteade of that i want to put my own names? i am using jboss-portal-2.4.2. please help me? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044944#4044944 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044944 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Server Log
Got the same problems. It definitely comes from the AS. I wouldn't be concerned by that, if I didn't get problems with a closed connection (ORA-17008). That totally inhibits normal working of the productive system. But I've no ideas, if there is a relationship between this issues. Anyone got the same experiences? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044942#4044942 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044942 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - HELP! JBoss JMS cluster - cannot get a connection factory
I tried to configure my client to access queues in a clustered JBoss environment. JBoss errors out and says that ConnectionFactory cannot be found. I have tried java:/JmsXA, JmsXA, java:/ConnectionFactory and XAConnectionFactory, java:/XAConnectionFactory, QueueConnectionFactory as well many other configurations for connectionFactoryJndiName. For the life of me, Mule cannot get a connectionFactory. BTW, my app works fine in JBoss if it is not clustered ie default mode as opposed to all mode. Client snippet == public void myJMS(){ try { Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); p.put(Context.URL_PKG_PREFIXES, jboss.naming:org.jnp.interfaces); p.put(Context.PROVIDER_URL, localhost:1100); // HA-JNDI port. InitialContext iniCtx = new InitialContext(p); Object ConnFactory = iniCtx.lookup(ConnectionFactory); } catch (Exception e) { e.printStackTrace(); fail(); } } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044945#4044945 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - org.jboss.web.localhost.Engine - StandardWrapperValve....Ou
I am getting following error on my jboss logs frequently. 2007-03-25 12:13:23,069 ERROR [EMAIL PROTECTED]:***:***:***] [http-0.0.0.0-8080-Processor16] org.jboss.web.localhost.Engine - StandardWrapperValve[mm1]: Servlet.service() for servlet mm1 threw exception java.lang.OutOfMemoryError It does not stop any operation neither it shutdowns server. Everything looks fine except this exception. What could be the reason for this my jboss start configuration includes -Xms512m -Xmx1024m So it does not look like low java heap memory issue. Is there any memory leak here ? If yes, Then how i can locate that ? What could be possible reason for the same ? This is a snapshot of log. if we look closely then its with thread [http-0.0.0.0-8080-Processor16] 2007-03-25 12:13:23,061 INFO [EMAIL PROTECTED]:***:***:***] [http-0.0.0.0-8080-Processor25] com.coremobility.mmsc.servlet.MMServlet - MMServlet:doPost:start 2007-03-25 12:13:23,065 INFO [EMAIL PROTECTED]:***:7816081974 from 68.246.46.200:***] [http-0.0.0.0-8080-Processor16] com.coremobility.mmsc.servlet.MMServlet - MMServlet:doPost:end 2007-03-25 12:13:23,068 DEBUG [EMAIL PROTECTED]:***:9498721450 from 70.6.244.94:***] [http-0.0.0.0-8080-Processor25] com.coremobility.mmsc.servlet.MMServlet - Received a POST request:/mm1/ from client IP:70.6.244.94 User-Agent:SN-SCP-7050/0101 CM-Lib/F.2.1.3.6 Content-Length:1101 Content-Type:application/vnd.wap.mms-message 2007-03-25 12:13:23,069 INFO [EMAIL PROTECTED]:***:9498721450 from 70.6.244.94:***] [http-0.0.0.0-8080-Processor25] com.coremobility.mmsc.servlet.MMServlet - Authenticating mdn 9498721450 2007-03-25 12:13:23,069 ERROR [EMAIL PROTECTED]:***:***:***] [http-0.0.0.0-8080-Processor16] org.jboss.web.localhost.Engine - StandardWrapperValve[mm1]: Servlet.service() for servlet mm1 threw exception java.lang.OutOfMemoryError 2007-03-25 12:13:23,167 INFO [EMAIL PROTECTED]:***:9498721450 from 70.6.244.94:***] [http-0.0.0.0-8080-Processor25] com.coremobility.mmsc.servlet.MMServlet - Authenticated successfully 2007-03-25 12:13:23,167 DEBUG [EMAIL PROTECTED]:***:9498721450 from 70.6.244.94:***] [http-0.0.0.0-8080-Processor25] com.coremobility.mmsc.servlet.MMServlet - WSP packet received:1101 bytes View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044955#4044955 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - xhtml files in process definition
Hi, I searched alot on this forum for xhtml but I am not able to understand why xhtml files are used? In some thread I got someone saying to refer the cvs-head version of jbpm? I am currently using jbpm 3.1.4 Websale application which comes with jbpm is having four xhtml files (form.create.xhtml, form.evaluate.xhtml, form.fix.html and form.money.xhtml) and they are included in forms.xml. My process definition is deployed, started and ended perfectly fine without xhtml, so what is the xhtml files and when should I use xhtml files? Any tutorial on this would be higly appreciated. Please help Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044952#4044952 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044952 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM project, Eclipse, JBPM Library
Simon, The library is a reference to the JBPM runtime you configured when you created the project. anonymous wrote : I'm trying to strip down to the minimum libraries needed for our JBPM application You need to be clear on whether you mean in the GPD (Eclipse plugin) or the engine. Frankly, this sounds unlikely to be important to you... do you really want to go after this? You have bigger fish to fry, I suspect. If you're thinking about the engine, I doubt there's much to get rid of. Hibernate alone is responsible for a lot of the dependencies, as I recall. Start there. -Ed Staub View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044960#4044960 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044960 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - problem getting back the identity of a created row
hi all, i have to migrate an application from postgres to mssqlserver2005. it went quite well, until so far, but now i'm blocked for a while. When user enter my application, a row is written to a table Sessions(id int, user int, startTime datetime). (the id is auto-generated by the database). I see the row is correctly written in the database, but when i want to retrieve the id that the database generated, the application crashes: anonymous wrote : | 2007-05-11 13:57:33,516 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException: | java.lang.ClassCastException | at be..xxx.xxx.bean.SessionBean$Proxy.getId() | at be..xxx.xxx.bean.SessionBean.getSessionValue(SessionBean.java:120) | 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:324) | at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1044) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95) | at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:301) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) | at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:82) | at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:174) | at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89) | at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483) | at org.jboss.ejb.Container.invoke(Container.java:674) | at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353) | at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) | at $Proxy220.getSessionValue(Unknown Source) | However, I think I changed everything correctly: standardjbosscmp-jdbc.xml wrote : | jbosscmp-jdbc | | | | | | java:/MSSQLDS | | datasource-mappingMSSQL/datasource-mapping | | | | create-tabletrue/create-table | | remove-tablefalse/remove-table | | read-onlyfalse/read-only | | time-out300/time-out | | pk-constrainttrue/pk-constraint | | fk-constraintfalse/fk-constraint | | row-lockingfalse/row-locking | | preferred-relation-mappingforeign-key/preferred-relation-mapping | | read-ahead | | on-load | | page-size1000/page-size | | eager-load-group*/eager-load-group | | /read-ahead | | list-cache-max1000/list-cache-max | | | | unknown-pk | | key-generator-factoryUUIDKeyGeneratorFactory/key-generator-factory | | unknown-pk-classjava.lang.String/unknown-pk-class | | jdbc-typeVARCHAR/jdbc-type | | sql-typeVARCHAR(32)/sql-type | | /unknown-pk | | | | entity-command name=default/ | | | | | | | | type-mapping | | MSSQL | | row-locking-templateSELECT ?1 FROM ?2 with (rowlock) WHERE ?3/row-locking-template | | pk-constraint-templateCONSTRAINT ?1 PRIMARY KEY (?2)/pk-constraint-template | | fk-constraint-templateALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5)/fk-constraint-template | auto-increment-template?1 IDENTITY/auto-increment-template | | alias-header-prefixt/alias-header-prefix | | alias-header-suffix_/alias-header-suffix | | alias-max-length32/alias-max-length | | subquery-supportedtrue/subquery-supported | | true-mapping1/true-mapping | | false-mapping0/false-mapping | | | | function-mapping | | function-nameconcat/function-name | | function-sql(?1 + ?2)/function-sql |
[jboss-user] [JBoss Seam] - JAAS Security
Hi, When you use Seam's security infrastructure, utilizing a JAAS config is a 'proper JAAS login' performed and all things set up correctly? I ask as subsequent calls to EJB's annotated with RunAs are failing, trying to re-authenticate with a null username. Any pointers to solve this? Thanks, Sean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044962#4044962 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044962 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam-gen and inputSecret in edit form
Hi, I made a project with seam-gen: all works! great framework and tools!! But when I changed this code: | s:decorate id=passwordDecoration template=layout/edit.xhtml | ui:define name=labelpassword/ui:define | h:inputText id=password |required=true |size=20 | maxlength=20 | value=#{utenteHome.instance.password} | a:support event=onblur reRender=passwordDecoration/ | /h:inputText | /s:decorate | In this: | s:decorate id=passwordDecoration template=layout/edit.xhtml | ui:define name=labelpassword/ui:define | h:inputSecret id=password |required=true |size=20 | maxlength=20 | value=#{utenteHome.instance.password} | a:support event=onblur reRender=passwordDecoration/ | /h:inputSecret | /s:decorate | When I move out from the inputSecret the value disappear... how can I solve this? Thanks a lot! Demetrio View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044958#4044958 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044958 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen and inputSecret in edit form
I solved setting redisplay=true in the inputSecret...is it a secure way? Thanks! Demetrio View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044965#4044965 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044965 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Getting Id of Presisted object.
You can call em.flush() whenever you want, nobody can prevent that. However, if whenever is a good time to synchronize in-memory persistence context state with the database is another question. An exception would probably indicate that this is not a good time. So no, you don't have any way or guarantee to get an identifier from an entity until it is finally persisted during flushing. One other hand, if you use a sequence generator, Hibernate will assign an identifier to the instance at the time you call persist(o). But this is an implementation detail and not standardized anywhere. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044959#4044959 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044959 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: xhtml files in process definition
did you open one? it's nothing more than jsf files with form definitions in them please be a little more investigative before posting View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044967#4044967 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044967 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Deployment problem
Hello, I encounter a problem : I use jBoss IDE 1.0.6 GA and jBPM 3.2b When i try to deploy my process, eclipse try on : localhost:8080/jbpm/upload i want to have : localhost:8080/jbpm-console/upload On the jBoss IDE 1.6.0 GA, i don't find the Server Deployer field... Thanks. PS : Sorry for my bad english, i'm not english ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044978#4044978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss WSRP consumer and file uploads
I'm not sure how current that is but according to this: http://issues.apache.org/jira/browse/BEEHIVE-979, it doesn't seem that Portlets are supported with NetUI. I don't know anything about NetUI so I'll try to figure things out but it might just be that there is a problem with using NetUI when writing JSR-168 compliant portlets. That said I will look at the SOAP messages and see if there's anything interesting going on. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044977#4044977 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044977 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: migration from JBpm 2 to Jbpm 3
hi, I need the same did you get any answeres to this ? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044975#4044975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044975 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: assign default value for seam component
See the documentation about components.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044973#4044973 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044973 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Problem with Deploying
Nobody knows ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044971#4044971 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044971 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - what entity command for ms sql server 2005
hi everyone we use jboss 3.2.1, but on the pages for jboss 4, i find several possible entity commands. http://www.ubookcase.com/book/Sams/JBoss.4.0.The.Official.Guide/0672326485/ch11lev1sec11.html what would you use for ms sql server 2005 ? (my identities are incremented by the database). I tried already with entity-command name=get-generated-keys class=org.jboss.ejb.plugins.cmp.jdbc.jdbc3.JDBCGetGeneratedKeysCreateCommand / but that doesn't seems to work. (if i do getId in my code, it gives a classcastexception). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044968#4044968 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044968 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - assign default value for seam component
In jsf back bean, I can assign a default (see following code). In seam, is there anyway to assign a default value to my component? | managed-bean-name | managed-bean-namedefault/managed-bean-name | managed-bean-classDefaults/managed-bean-class | managed-bean-scopeapplication/managed-bean-scope | managed-bean-property | managed-property | property-namenodeResults/property-name | value15/value | /managed-bean-name | /managed-bean-property | managed-bean-property | managed-property | property-namescope/property-name | value#{param.searchScope}/value | /managed-bean-name | /managed-bean-property | /managed-bean-name | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044966#4044966 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044966 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: How do I re-configure JBoss for listening on port 8777 i
[EMAIL PROTECTED] wrote : Ahh yes, my bad, this document is out of date. | Ok, it works now. But could you update the page you gave me (for the other ports as well)? It would help me and other users in the future. Thank you Thomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044970#4044970 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044970 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Pageflow
Question. I have two pageflows and I what to jump from first pageflow to second without actually ending the first pageflow, some thing like nesting pageflows Is that possible? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044976#4044976 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044976 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pass JavaScript method outcome to server?
eirirlar wrote : Hi, | | I'm working with the richfaces gmap component. I need to send some data to the server that is the outcome of some JavaScript method call, along with calling an action method. | | I would like this to be as easy as the following: | h:commandButton action=#{bean.method(par1,par2,par3)}/ | where parX is a JavaScript method outcome. EL doesn't work this way so I have to figure out something. | | I was thinking of using a JavaScript onclick event on the commandButton that triggers some JavaScript code that somehow exposes parX to EL. | | Another thought was as onclick that calls a Seam @Remote-method with the correct JavaScript parameters. | | Or maybe create a custom component. | | Any thoughts on what would be the best and cleanest solution? Remember that EL for the button executes at render time, so I don't think your first option would work conceptually. A simple option is to just put a plain old hidden field in your form, and have the javascript method set that prior to submit. You can pick the value up in the beam as an @RequestParameter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044981#4044981 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044981 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Deploying the web application out side the container
I need to deploy the web application as tomcat do where I can set the doc base in {TOMCAT_HOME}\conf\catalina\localhost\application_context_name.xml. In the docbase i can specify the location of the web application where the application consists the slandered file structure for a web application(but the application is out side the container). Is this kind of deployment is possible in Jboss.at least for the web application. Really appreciate if some one can help on this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044985#4044985 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Captcha
You might file an enhancement request for this in jira. It would be nice if the captcha image were optionally generated once per conversation for instance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044983#4044983 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044983 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss WSRP consumer and file uploads
Looking at the messages real quick it doesn't seem like it would be a NetUI issue. Going to investigate what's going on... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044982#4044982 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044982 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Which JBOss jar is missing? NoClassDefFoundError org/jboss/s
When I call a java prog JBoss reports me an error: Exception in thread main java.lang.NoClassDefFoundError: org/jboss/serial/objectmetamodel/safecloning/SafeClone at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) Which JBoss jar is missing in the CLASSPATH ? My CLASSPATH currently looks like: CLASSPATH=.;D:\JBoss405\server\all\deploy\jboss-net.sar\axis.jar;D:\JBoss405\client\log4j.jar;D:\JBoss405\client\jboss-common-clien t.jar;D:\JBoss405\client\jboss-system-client.jar;D:\JBoss405\client\jnp-client.jar;D:\JBoss405\client\jboss-client.jar;D:\JBoss405\client\jbosssx-client.jar;.\classes;D:\java\j2ee\v5.02\jdk\jre\lib\rt.jar;D:\java\j2ee\v5.02\lib\j2ee.jar; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044980#4044980 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044980 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.ejb.EJBNoSuchObjectException
Btw, what's the point of having an event scoped SFSB? SFSB's strength is statefulness across requests, which is why they default to conversational scope. Just curious. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044979#4044979 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044979 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam EL Exception: Argument type mismatch
fyi, this section of the seam docs in cvs was just updated yesterday. Might be worth a look. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044984#4044984 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044984 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pageflow
IIRC this isn't currently possible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044986#4044986 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.ejb.EJBNoSuchObjectException
So that during the processing of the event (request) the SessionBean maintains its state across method calls made to it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044993#4044993 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044993 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Forked processing in jBPM
Yes variables can be scoped, but I do not know to what extend and how exactely. I just never used it. Look at the tasknodeimpl to see how it is done there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044995#4044995 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044995 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Captcha
Thanks, I have done so: http://jira.jboss.org/jira/browse/JBSEAM-1320 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044994#4044994 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044994 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is it possible to update a process def without versionin
[EMAIL PROTECTED] wrote : you can update process definitions. (you have to evict the process definitions in hibernate's second level cache, though) | | it is not encouraged, just as modifying java byte code in a running program is not encouraged. you can get into trouble real easy. | | same goes for migrating process instances to a newer version. we plan to provide some support for it in the future, but it is easy to end up trouble. | | regards, tom. could someone please explain this a little more or give me a link to this . I'm using jbpm 2. is this posibble here ? Also is there a tutorial for migrating from jbpm 2 to jbpm 3. I see the archive migration, but what happens to my existing process instances in DB ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044997#4044997 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044997 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.ejb.EJBNoSuchObjectException
You'd get the same behavior by just using a pojo. They're event-scoped by default for that reason. Using a SFSB that way certainly works, but if you look at the interceptor stack, there's definitly more overhead when using a SFSB as a pojo. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044998#4044998 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044998 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: jboss 3.2.1 in which jar file is org.jboss.ejb.plugins.c
i have found it by accident, after two days google-ing entity-command name=mssql-fetch-key class=org.jboss.ejb.plugins.cmp.jdbc.mssql.JDBCMsSQLCreateCommand / another question: where can i find the right documentation to know this configuration for jboss 3.2.1 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045002#4045002 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - no hot redeploy with per webapp logging
Hi, Regarding the per webapp logging, when we use the http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector approach it is not possible any more to do hot ear redeployments. Steps to reproduce : 1. start JBoss with the ear deployed 2. undeployed the ear 3. redeploy the ear == the application cannot be deployed and the whole app server is blocked. I don't understand why, when redeploying the ear, the Log4jLoggerPlugin tries to use the per webapp RepositorySelector. Of course it has not been initialized yet and it fails. See the stacktrace below. We got a NPE because the RepositorySelector was not initialized yet. However, I don't think the repository of the Log4jLoggerPlugin should have been modified. stacktrace begins java.lang.NullPointerException at org.jboss.repositoryselectorexample.MyRepositorySelector.getLoggerRepo sitory(MyRepositorySelector.java:87) at org.apache.log4j.LogManager.getLogger(LogManager.java:179) at org.apache.log4j.Logger.getLogger(Logger.java:85) at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.logging.impl.Log4jProxy.(Log4jProxy.java:132) at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:39) at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:529) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:353) at org.apache.commons.httpclient.HttpMethodBase.(HttpMethodBase.jav a:102) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAcces sorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:12 2) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) at java.lang.reflect.Field.getFieldAccessor(Field.java:898) at java.lang.reflect.Field.get(Field.java:357) at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClass Loader.java:1608) at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java :1492) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:736) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4393) at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1132) at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:44 49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503 ) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performUndeployInternal(TomcatDe ployer.java:450) at org.jboss.web.tomcat.tc5.TomcatDeployer.performUndeploy(TomcatDeployer.j ava:421) at org.jboss.web.AbstractWebDeployer.stop(AbstractWebDeployer.java:418) at org.jboss.web.WebModule.stopModule(WebModule.java:100) at org.jboss.web.WebModule.stopService(WebModule.java:66) at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSuppo rt.java:315) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBean Support.java:247) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav a:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at
[jboss-user] [JBoss Seam] - Re: SessionContext injection throws NullPointerException
The docs discuss accessing the session context (not by injection btw) in section 3.1.8. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044987#4044987 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044987 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: home.update not being called.
I think you'd get a better response if you posted more details of what you're doing. it's tough to follow your description. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044996#4044996 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044996 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: one persistence.xml multiple jars with entity beans
It is http://jira.jboss.com/jira/browse/EJBTHREE-724. Unfortunately it is not fixed yet. Is there a workaround ??? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045019#4045019 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045019 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Deploying the web application out side the container
Look at the URLs attribute in the last MBean in server/xxx/conf/jboss-service.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045020#4045020 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045020 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: failed to lazily initialize a collection of role: ... .T
You need to add parameter fetch = FetchType.EAGER to your one-to-many relationship which returns a collection, and write code similar to the following in your session bean. Cruise cruise = manager.find(Cruise.class, cruiseID); return cruise.getReservations(); Hope this will help Regsrds Adonis Mhlanga View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045018#4045018 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045018 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Which JBOss jar is missing? NoClassDefFoundError org/jbo
Looks like the missing class is in server/default/lib/jboss-serialization.jar. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045021#4045021 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045021 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Regarding customize portal creation
Did you read the documentation? Partcularly this chapter from the User Guide: http://docs.jboss.com/jbportal/v2.4/user-guide/en/html/dynamicity.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045014#4045014 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045014 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Forked processing in jBPM
Vedavyas, The userguide talks a lot about dynamic fork/joins. Search for fork and you'll see a lot. The key restriction is that the destination nodes and transitions of the fork must be predefined in the definition. Of course, the content of a node can be so flexible that in practice, this doesn't seem like much of a restriction. [Ronald, please verify?] Process variables can effectively be scoped to a particular token, so you can push data down each branch of the fork by setting variables that are used as parameters for each branch. -Ed View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044989#4044989 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044989 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Spawning a thread from a seam component
Is this safe and if so is there a recommended pattern? Do I need to use Asynch.getAsynchronousProxy method to do this and can I just create a Thread object and call start(). Any feedback is appreciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045028#4045028 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045028 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Can't connect to the Database
Problem is solved The problem was a derby.jar on the Applicationserver. Hibernate and this File together results in an Exception. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045026#4045026 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045026 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: submit on enter
Well after some searching I found this...dont know if it's working but I'll try it right now | http://www.jsftutorials.net/defaultActionTag.html | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045025#4045025 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user