[jboss-user] [JBoss Portal] - HELP: SSO not work for my Cluster (without domain name)
I've config a JBoss Portal (V2.6 RC2) Cluster on JBossApp 4.0.5, and it start up sucessfully. But the SSO don't work, the following is my test step: 1. Following the jboss documentation to establish a two nodes cluster (two machines with ip: 10.1.16.140/10.1.16.64, each for one node). 2. Login the portal from http://10.1.16.140/portal/ . Login as admin/admin. 3. Access http://10.1.16.64/portal/, but find it want me login again. why the SSO not login for me on this node? I add the attribute: in tomcat server.xml, but it don't work. Is my test way wrong? It is impossible to apply a domain name like abc.ddd.com for my test. So how to test the cluster SSO in this LAN environment? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053803#4053803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053803 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Urgent - Error in deploying the NumberGuess Example
hi petemuir, i did the same steps but i am getting the Same error. The initial lines of the error are as- 11:26:37,602 INFO [Lifecycle] starting up: org.jboss.seam.security.identity 11:26:38,868 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException >From here onwards it start giving the error. What is your email id? If you could help me i shall send you the project zip file.It will be a great help as i am not able to debug the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053802#4053802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Jboss performance - not using all available resources
anonymous wrote : I've taken 2 thread dumps at different times. I don't know the best way to analyze these. | | Should I post them here? They are a bit large. | I wouldn't post them as you say they're probably large, it's probably no necessary to post the whole thing. I'd start by looking for stack traces of threads that are processing your messages. search for jms/jboss packages/classes/methods or something in your code. how many threads are there processing the msgs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053801#4053801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Feeds aggregator portlet
hello again. If there isn't such functionality in an existing portlet, i would like to enhance it at the newsreader portlet. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053800#4053800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:convertEntity with non-numeric @Id
I logged this issue in JIRA: http://jira.jboss.com/jira/browse/JBSEAM-1444 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053799#4053799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Integration testing action events or value change events
i have solved this problem by using NonFacesRequest, i pasted the codes here, hope it will be helpful for someone : @Test public void testChangeDataset() throws Exception { new NonFacesRequest() { @Override protected void invokeApplication() { UserBean userBean = (UserBean) Component .getInstance(UserBean.class); userBean.setDatasetId(0); this.invokeMethod("#{userBean.changeDropdown}"); Dataset set = userBean.getCurrentDataset(); assert set!=null; } }.run(); } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053797#4053797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: from hibernate to sybase
I have 2 *-ds.xml files. 1> portal-sybase-ds.xml 2> hsqldb-ds.xml I have changed nothing in hsqldb-ds.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053795#4053795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to add init param of handler
nobody knows? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053796#4053796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: in an MDB how to get an application scoped component ?
Just about the same minute you wrote that I looked at Seam reference section 3.2.5. Message-driven beans, which says what you're quoting. I was figuring the same solution, I'm going to try @Name and injection. I think we had the same problem with messages coming to MDBs before Seam is initialized. I'm not sure how we have resolved that, but my thought right now is that they'd retry a bit later, wouldn't they? I guess depends on kind of exception and whether the usual retry counter is on for that message, but that's a guess without deep research. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053791#4053791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: in an MDB how to get an application scoped component ?
If you annotate your MDB as a Seam component, using @Name, then you can use bijection, I am doing this in my app. I'm not sure if you will be able to access the Application context. The documentation just says "they do support bijection and some other Seam functionality". One issue I had was Seam component MDBs being initialised by JBoss before Seam, and if an MDB has any messages waiting for it from before the app was last shut down, they will fail because Seam isn't initialised yet. "codelion" wrote : I think what I see is that in the MDB I don't have access to Seam contexts. | | But I'd like to get my server wide settings out of an application scoped Seam component. | | I think I've seen that if I'd declare that component an SFSB and try to get it as EJB3 than I won't get the same instance as if I get it as Seam component. Did I see that correctly? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053790#4053790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Cache region size
Hello, Is there any way I can determine the number of objects cached in a region in TreeCache? Thanks :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053788#4053788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Validating user input
As you may now know, you can store many kinds of variables on the jbpm, since in the desing you're only giving names to them, and not setting types. Although you do can make some validation of this variables with bean shell, I would recomend that you make the validations before you put them on jbpm, for example with Validator in case you are using JSF. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053785#4053785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - LazyInitializationException when setting variable
I get the following error when trying to set a variable for a taskInstance. | [LazyInitializationException] could not initialize proxy - the owning Session was closed | org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed | at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:56) | at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:98) | at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:133) | at org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$89d6f052.setVariable() | at org.jbpm.webapp.bean.TaskBean.save(TaskBean.java:179) | at kernel.bpcs.RequisicionBPCS.guardarTarea(RequisicionBPCS.java:350) | at kernel.bpcs.RequisicionBPCS.guardar(RequisicionBPCS.java:517) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129) | at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63) | at javax.faces.component.UICommand.broadcast(UICommand.java:106) | at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90) | at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164) | at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jbpm.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:56) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:85) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Unknown Source) | This is the method I'm using to save the task. | | public void save(Hashtable taskVariables, String transition) | { | | TaskInstance taskInstance = taskMgmtSession.loadTaskInstance(taskInstanceI
[jboss-user] [Messaging, JMS & JBossMQ] - Re: create durable topic
Hi Adrian, Sorry to send private mail. But I didn't any luck with my durable subscriptions setup , could you please provide steps to configure durable subscriptions? I am using a stand-alone subscriber , though I am successful in publishing messages to topic , my subscriber fails to read published messages. My subsriber uses Listener which implements message listener. Thanks Sundar [EMAIL PROTECTED] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053783#4053783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Hibernate's version in Seam CVS
Hi, I'm integration testing using seam(CVS) gen-generated project. Hibernate in Seam CVS: -Hibernate 3.2 cr2 -Hibernate EntityManager 3.2.0 cr1 -Hibernate Annotations 3.2.0 cr1 These are not same as the versions of Hibernate included in JBoss AS 4.2.0.GA which is target of Seam CVS(1.3.0). And this code doesn't work with old Hibernate. {{{ @Pattern(regex="^[0-9]{3}-[0-9]{4}$", message="{not_default_hibernate_validator_message_key}") private String postCode; }}} I hope that Hibernate in Seam CVS will be upgraded. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053782#4053782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[F
When connecting Oracle91 Database i get this type exception please help us. [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=liveappserver/54, BranchQual=, localId=54] errorCode=XAER_NOTA oracle.jdbc.xa.OracleXAException at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1190) at oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:471) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.end(XAManagedConnection.java:146) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2031) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2006) at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1354) at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1081) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296) at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:454) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:322) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:122) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) at org.jboss.ejb.Container.invoke(Container.java:870) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406) at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:534) 07:28:29,319 WARN [TransactionImpl] xa error: -4 (The XID is not valid.); oracle error: 24756; oracle sql error: 0; oracle.jdbc.xa.OracleXAException at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1190) at oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:471) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.end(XAManagedConnection.java:146) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2031) at org.jboss.tm.TransactionImpl$Resource.endResource(TransactionImpl.java:2006) at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1354) at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1081) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296) at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:454) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:322) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:122) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) at org.jboss.ejb.Container.invoke(Container.java:870) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interce
[jboss-user] [Messaging, JMS & JBossMQ] - Re: durable subscriber setup - 2nd request
Hi Can anyone guide me to setup durable subscriber using standalone program? My standalone subscriber failed to read messages published to topic. Jboss console shows the messages published but the subscriber doesn't pick up the messages. My subscriber is message listener based. Jboss examples show only pull mechanism. Which way is suggested to use push or pull? Thanks Sundar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053780#4053780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Integration testing action events or value change events
I have the same question for how to test actionlistener in Seam test, can someone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053779#4053779 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053779 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - in an MDB how to get an application scoped component ?
I think what I see is that in the MDB I don't have access to Seam contexts. But I'd like to get my server wide settings out of an application scoped Seam component. I think I've seen that if I'd declare that component an SFSB and try to get it as EJB3 than I won't get the same instance as if I get it as Seam component. Did I see that correctly? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053774#4053774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Bank example compile error.
Thanks for the suggestion, Peter, but unfortunately it doesn't seem to have solved my problem. As per the other forum thread, I removed the \$ combination from the .jsp files (accountList.jsp, atmAck.jsp and transferAck.jsp), recompiled and redeployed, but I still get the same error. Starts with the java.lang.NoClassDefFoundError in CustomerControllerHome.create(), and further down the stack trace there is a Null Pointer Exception on CustomerBean.getAccounts(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053769#4053769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053769 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Lookup Singleton MBean
Hi all, I have searched the answer in the jboss clustering forum, thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053767#4053767 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053767 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Fail to inject Queue as Resource into EJB3 bean
I am unable to send a JMS message from within an EJB3 stateless session bean into a local queue. The bean method that is supposed to send to the Queue is invoked from a servlet. //Inject QueueConnectionFactory | @Resource(mappedName = "java:/JmsXA") | private QueueConnectionFactory queueConnectionFactory; | //Inject the queue. | @Resource(mappedName = "xxx") //xxx = various values. | private Queue queue; When I set xxx to queue/MODEL_EVENTS, I get SocketException "Recevie Timed out". When I set xxx to jnp://localhost:1099/queue/MODEL_EVENTS, I actually get org.jboss.mq.SpyQueue out of it, but it fails to cast into javax.jms.Queue and produces the "Non matching type for inject of field" message. I suspect I am just getting the Remote interface of the Queue here. Setting "java:comp/env/queue/MODEL_EVENTS" for xxx fails with "queue not bound" javax.naming.NamingException. That makes sense since I don't se the queue registered within the java: context. I may have lost a marble or two over this already, what am I missing? Somebody please help before I lose more! Jaroslav Following are contents of JMX bean. java: Namespace +- SynergyConfigurationDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) | +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) | +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) | +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) | +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter) | +- comp (class: javax.naming.Context) | +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) | +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) | +- jaas (class: javax.naming.Context) | | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext) | | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext) | | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- timedCacheFactory (class: javax.naming.Context) | Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy | +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory) | +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) | +- Mail (class: javax.mail.Session) | +- comp.ejb3 (class: javax.naming.Context) | | NonContext: null | +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter) | +- TransactionManager (class: org.jboss.tm.TxManager) | +- synergyModelDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) Global JNDI Namespace +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) | +- ConfigurationServiceBean (class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy66 implements interface net.symmetrics.synergy.config.ejb.ConfigurationService,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | +- remote (proxy: $Proxy65 implements interface net.symmetrics.synergy.config.ejb.ConfigurationService,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair) | +- EventDispatcher (class: org.jboss.ws.eventing.mgmt.DispatcherDelegate) | +- UserTransactionSessionFactory (proxy: $Proxy43 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory) | +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef) | +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef) | +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair) | +- topic (class: org.jnp.interfaces.NamingContext) | | +- testDurableTopic (class: org.jboss.mq.SpyTopic) | | +- testTopic (class: org.jboss.mq.SpyTopic) | | +- securedTopic (class: org.jboss.mq.SpyTopic) | +- queue (class: org.jnp.interfaces.NamingContext) | | +- MODEL_EVENTS (class: org.jboss.mq.SpyQueue) | | +- D (class: org.jboss.mq.SpyQueue) | | +- C (class: org.jboss.mq.SpyQueue) | | +- B (class: org.jboss.mq.SpyQueue) | | +- A (class: org.jboss.mq.SpyQueue) | | +- testQueue (class: org.jboss.mq.SpyQueue) | | +- ex (class: org.jboss.mq.SpyQueue) | | +- DLQ (class: org.jboss.mq.SpyQueue) | | +- ETL_STATUS (class: org.jboss.mq.SpyQueue) | +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) | +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction) | +- PentahoModelRepositoryBean (class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy87 implements interface net.symmetrics.synergy.model.repository.PentahoModelRepository,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | +-
[jboss-user] [JBoss Seam] - Re: h:messages for Authenticator
But it's still a global message, not "for" your loginPanel. Either remove the "for" and display your global messages, or use facesMessage.addToControl() in the code. "tonylmai" wrote : You're right. | | However, after I've added a panel with id for the message, it's still not displayed. | | | | | | | | | | Is there anything that I could have erred that caused this message to be dropped after the Authenticator.authenticate() method called? | | Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053765#4053765 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging Locked Up
BTW in JBM 2.0 we will be introducing producer flow control http://jira.jboss.com/jira/browse/JBMESSAGING-429 in which producers can be throttled to prevent them overwhelming the server. This is an alternative way to avoid the server OOMing without using paging. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053764#4053764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053764 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:messages for Authenticator
You're right. However, after I've added a panel with id for the message, it's still not displayed. | | | Is there anything that I could have erred that caused this message to be dropped after the Authenticator.authenticate() method called? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053762#4053762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simplest usage
MultipartRequest now throws a FileUploadException instead of a RuntimeException, you can configure an exception handler for this in pages.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053760#4053760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam, Facelets, JSF and XML comments
fernando_jmt: You're right, of course. I had this in the non-Seam version, but I was under the impression that it just prevented Facelets from writing comments to the HTTP response output stream. Now I know better. Thanks, Steven Gollery View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053759#4053759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: 4.0.5 to 4.2.0 Upgrade
We are in the process of updating the docs. You are right, we have been really bad with keeping the docs in synch, we need a more open solution there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053758#4053758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:messages for Authenticator
Well, you add() a global message but only display messages that have been added for="dialog" component. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053757#4053757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: could not execute seam commands.
cvs up -C -d will ensure you get exactly the source tree as on the server - otherwise CVS won't update stuff it thinks might have been changed locally. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053756#4053756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:messages for Authenticator
Hello all, I am trying to display a customized error message should the authenticate method failed to authenticate a user. I.e. @Name("authenticator") | public class Authenticator { | @In | private FacesMessages facesMessages; | ... | public boolean authenticate() { | try { | ... | } catch (AuthenticationException e) { | facesMessages.add("#{res['login.failed.msg']}"); | return false; | } However, this message is not showing when the authenticate method failed. The login.xml page is coded as followed: | | Any idea? Thanks for your help. -tony View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053755#4053755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: could not execute seam commands.
Ok, obviously something was missing, and CVS was not updating the entire tree... I completely deleted the directory and re-ran the check-out from scratch, and everything compiles fine. Should have done that before :-/ javac went from "Compiling 407 source files... " to "Compiling 417 source files..." !! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053753#4053753 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering / Multicast routing
What you have should be fine, except I would change -Dmcast.port=5001 to -Djboss.hapartition.mcast_port=5001. The different config files that cause creation of a JGroups channel all specify a system property that you can set; basically doing what you already did with 'mcast.port' but applying it to all the config files, with a different property for each. The 'jboss.hapartition.mcast_port' property is used in the cluster-service.xml file. See http://jira.jboss.com/jira/browse/JBAS-4021[url]. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053751#4053751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: change default partition name
That worked great. Thanks for the quick reply! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053750#4053750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simplest usage
Hi Shane, How do I handle s:fileUpload issue regarding the file size exceeding a configured limit? When that happens, the page breaks with HTTP code 500 returned with the following message: java.lang.RuntimeException: Multipart request is larger than allowed size I could not find a way to catch this exception. This link mentions this issue but I don't see any solution yet: http://jira.jboss.com:8080/jira/browse/JBSEAM-1239?page=all&decorator=printable I'm using jboss-4.0.5.GA. The following is my configuration in components.xml I would appreciate any advice on how to handle this exception. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053749#4053749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jPDL subprojects
Hi Tom, first of all, I wish to thank you for the effort you are doing with the Jbpm project. Also, i could say yes, i would be interested in some out of the box component which could be used in my own applications, as a subproject of jPDL. But i also need to affirm that I think the development efforts should be directed elsewhere. Personally I would like to see a working build system ( i am working on a maven build which i will add in the Jira), improved documentation, a clear direction for source code downloading, some discussion on jPDL (sub process binding only at deployment time? are we kidding?), and, last but not least, some announcement regarding new releases (hello, jbpm 3.2 is here, anyone noticed? not from the project's page). So yeah, i feel jbpm sub projects could be interesting, but they do not help me selling it to my customers. Just my thought , through. Bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053748#4053748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Custom pdf tag not rendered when in email attachment
Reported with a very simple test case. http://jira.jboss.org/jira/browse/JBSEAM-1440 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053747#4053747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam generate entities
"seam help" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053745#4053745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Injecting PortalObjectContainer into servlet
Hi, In JBOSS portal 2.4 it works. We are trying to use JBOSS portal 2.6 and the Context Class is not in portal-core-lib.jar. Where did it move to? How do I find out. Thanks you very much. Gyan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053744#4053744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053744 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Combo Box in Form
I am helping... but you guys have to come up with trials and errors which I can comment on. I'm not going to build a full example (unless one of you guys pays my upcoming holiday) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053743#4053743 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053743 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: change default partition name
There's no need to edit the cluster-service.xml file. Start JBoss with: # /opt/jboss-4.2.0.GA/bin/run.sh -c all -b10.40.0.35 -g MYPartition View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053742#4053742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Combo Box in Form
Riket44, Were you able to create de combo box with the item list from de PRODUCT database (external table) ?I am looking for some samples too. I have created de (product.hbm.xml) hibernate file and the Product Class with (getters and setters) and modified the hibernate.cfg.xmlbut i am not able to make it work. does anyone can help? Any samples? Att., Jorge I am also using Jbpm 3.2 GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053741#4053741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: STREAMING_STATE_TRANSFER fails with lots of data.
Thanks Bela, I was able to reproduce the issue easily enough and I'll open a JIRA issue in a short while after cleaning up the test case. frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053740#4053740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Get ear name
Hi, Is it possible from within a deployed (as an ear) ejb3 application to get the name of the ear file that the application is packaged in? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053739#4053739 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam generate entities
Thanks it worked ..I always wish anyone could give me the link which speicifies al lthe commands that can be used .. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053737#4053737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: change default partition name
I can not find any documentation on JBoss AS 4.2. What am I doing wrong? I changed all of the DefaultPartition to MYPartition in deploy/cluster-service.xml. e.g. FROM: {jboss.partition.name:DefaultPartition} TO: {jboss.partition.name:MYPartition} and in conf/standardjboss.xml e.g. FROM: {jboss.partition.name:DefaultPartition} TO: {jboss.partition.name:MYPartition} I start the instance with this command: # /opt/jboss-4.2.0.GA/bin/run.sh -c all -b10.40.0.35 and I get this error: 13:58:21,525 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- MBeans waiting for other MBeans --- ObjectName: jboss.ha:service=HASingletonDeployer State: CONFIGURED I Depend On: jboss:service=DefaultPartition jboss.system:service=MainDeployer ObjectName: jboss:service=FarmMember,partition=DefaultPartition State: CONFIGURED I Depend On: jboss:service=DefaultPartition jboss.web:service=WebServer jboss.system:service=MainDeployer --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss:service=DefaultPartition State: NOTYETINSTALLED Depends On Me: jboss.ha:service=HASingletonDeployer jboss:service=FarmMember,partition=DefaultPartition 13:58:21,736 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-10.40.0.35-8080 13:58:21,797 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-10.40.0.35-8009 13:58:21,833 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)] Started in 57s:637ms View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053736#4053736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053736 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Adding trusted certs
Can someone please answer this very simple and very newbie question for me? When a new trusted certificate is added to the truststore, does JBoss need to be restarted for it to see/acknowledge the new certificate? I am seeing evidence to this effect but I need to make sure that this is or isn't the case. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053735#4053735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053735 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Combo Box in Form
Do it the same as you normally would. The itemset comes from your database the selected item is just referenced the same way as with an input element. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053733#4053733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Multiple persistence units (one JTA one RESOURCE_LOCAL)
Any news on this one? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053732#4053732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Shared JAR Files EJB/Web Deployment
I am in the process of refactoring two JMS Listeners to being Message Driven Beans. Upon doing so, I removed them from the Web Application and am wanting to deploy them as EJB's. So now there will be app.war and myEJB.jar within the .EAR file. The problem I am running into is that when I deploy the ear, it complains about ClassNotFoundExceptions on the EJB Module. The reason for this is because the MessageListeners rely on code that exists within a jar file under the WEB-INF/lib of the web project. Whats the best way to configure my .EAR so that I can access the code from both the EJB and Web App? Thanks, Daniel application.xml -- | http://java.sun.com/xml/ns/j2ee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee | http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; | version="1.4"> | | EAR File for my app | | myEJB.jar | | | | app.war | app | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053730#4053730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Validating user input
correct, it is not possible to put validation definitions in the processdefinition. A regexp (or anything in line with hibernate validators or whatever) is possible. Maybe reusing those kinds of validations is the most interesting. Putting it on the domainmodel is imo good practice. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053729#4053729 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053729 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to tell if token is waiting?
Thanks for clarifying. No, I do not want to manipulate the token from the other thread. I figured that was a no-no. From my other thread I just want to know what node it is on. We want to provide users with some insight into what state the workflow is in. In this case I think it is acceptable for the user to only have visibility into the previous rest state of a process. Any "long running" step in the workflow should be done asynchronously... the node should post some external request, and wait until that request has been satisfied. If the workflow is marching along through some simple nodes that don't take much time (e.g. a decision node, or query to the DB) then the user would have to be aware that by the time they looked at the output of their request the workflow would already be beyond that point anyway. Probably at the next wait state. At least that's my thought. Please let me know if I've said anything that doesn't sound right. -Jon View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053727#4053727 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to tell if token is waiting?
do you want to manipulate the token from 2 threads, or do you just want to make sure you know what node it is in? The former is bad practise the second should be a method on your own first thread and ask there what state the token is in. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053725#4053725 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053725 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: (Still) More flexible structure for components.xml
Thank you Gavin, I'm trying to do this with a little modification in Initialization.scanForHotDeployableComponents, adding this code, that load all .component.xml in META-INF from the redeploy classloader: try { | URL[] urls = Classpath.search(redeployStrategy.getClassLoader(), | "META-INF/", ".component.xml"); | for (URL url : urls) { | try { | log.info("reading " + url); | installComponentsFromXmlElements(XML.getRootElement(url | .openStream()), getReplacements()); | } catch (Exception e) { | throw new RuntimeException("error while reading " + url, e); | } | } | } catch (IOException e1) { | } Classpath is a Facelets utility class that I'm using for convenience. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053724#4053724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Collection and DataTable
You can use page parameters View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053723#4053723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to tell if token is waiting?
anonymous wrote : The database is updated when the token reaches a wait state. That's what I supposed, but wasn't sure. Thus, that tells me that if a separate thread gets the node for a token, then that means the token is in a wait state at that node. I guess it might actually be in the middle of running some other node following that node - but I can't find that out since that info hasn't been persisted yet. Thanks for your insight, -Jon View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053722#4053722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Collection and DataTable
Hi all, I have problem with the page with collection of something entity. I would like to click on "Delete" button and call the method something.delete with parameter Long id. But I don't know how to do. One solutions is to use @DataModel, @DataModelSelection and dataTable . But how to do when I would like to use for collection iteration and create my own html structure. How to call delete method ? Know somebody how to solve this problem ? Without h:dataTable ? Thanks Mila | | | | #{messages['image.name']}: #{o.title} | #{messages['image.size']}: #{o.length} | | #{messages['image.description']}: #{o.description} | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053721#4053721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053721 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: GC hell ?
Unfortunately I do not know of any way of asking the JVM to state what objects it is removing as part of a GC. Actually, during a GC the JVM considers only live objects - it never even looks at dead objects that it collects. But you can take a heap dump - see http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html. If you can take a dump before a GC, that should give some idea of what is in the heap. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053720#4053720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Cluster Stateful EJB 3.0 problems
Thanks a LOT That was it :) I was not using -b to bind the correct IP address. Thanks a lot! Thanks for all the help! Cluster is now working smoothly :D Best Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053716#4053716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to tell if token is waiting?
Jon, Threads don't share hibernate caches on the same process instance. If another thread looks at the token, it's going to have fetched it independently from the database. The database is updated when the token reaches a wait state. >> I'm still trying to understand what it means that the process executes in >> the thread that signals the process instance. Me too. If subsequent actionhandlers do a signal or leaveNode, the execution is recursive. So in a loop with no wait states, each iteration grows the stack (and everything it refers to on the heap). This seems ugly, but I can't decide how bad it is. While a QA team would run into it quickly, I'm not sure it has much real-world consequence. -Ed Staub View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053715#4053715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac
"ALRubinger" wrote : Maybe check /etc/hosts, run ifconfig, make sure the address you're passing is valid? | The address is valid of course :) and there is the record in /etc/hosts corresponding to that address. I had no problems with the same config on jboss-4.0.5 they came with 4.2.0. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053714#4053714 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053714 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: could not execute seam commands.
Hmmm... I'm using GNU CVS 1.12.13 (or should that be FSF CVS?). I assume I'm getting everything since I don't get any errors but of course I may not be. I do have /lib/jboss-el.jar and /lib/jboss-el-api.jar, and they are referenced in the ".classpath" file, so I don't know why I'm getting this error. I'm assuming there is something wrong with my configs either in jboss, java, or ant, but I don't know where to look. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053713#4053713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: GC hell ?
Thanks. How can I look at what is consuming that 2GB ? It's not the data I cache in the session since that lives more than ten seconds... (a lot more). Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053712#4053712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053712 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: trouble with durable JMS subscribers
Hi, I am working on jboss publisher - durable subscribers . I made the necessary configuration . Able to publish messages succesfully to topic but the subscriber fails to read the messages. Could you please provide more information on this? If I use the same client id more than once , I am being thrown with Client Id already exists. Thanks Sundar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053711#4053711 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053711 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss.NET] - JBoss WS4EE : migration from JBoss 4.0.1 to JBoss 4.0.3
Hi! I have been using JBoss WS4EE with JBoss 4.0.1. I have an EJB module, and I export some SessionBeans as Web Services. My application is packaged as an ear file. I have foo.ear which has bar.jar as one of its components (EJBs module). With jboss 4.0.1 , the URL to access my web services was http://.../foo/bar/Operation (the URL includes the name of the ear plus the name of the jar file). Now I have migrated to JBoss 4.0.3, and the URL to access the web services has changed to http://.../bar/Operation (The name of the ear is no more included). Our problem is that this migration must be transparent to our client, so we need to maintain the URL http://.../foo/bar/Operation (ear name plus jar name). How can I specify the URL to access my web services? On the application.xml? Somewhere else? Any help would really be appreciated. Thanks in advance. Best regards, Victor Batista View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053710#4053710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053710 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Clustering Problem
I am trying to setup a cluster with 2 servers. Both of them have Windows 2003 Enterprise and both have the out of the box ejb-clustered configuration. As the manual says, everything should work without any changes. In my case each server says that he is the first one in the cluster and they don't want to connect. What are the step to make clustering work on Windows? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053708#4053708 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053708 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Cluster Stateful EJB 3.0 problems
First, what values are you passing to -b on the two instances when you start JBoss? If nothing, in AS 4.2, the JGroups channels will use the default interface, so they will cluster, but all other services will bind to 127.0.0.1. Second, is your client running on the same machine as one of the two AS instances? I suspect the services on your 2nd machine are bound to localhost, so a client on another machine cannot access them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053707#4053707 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053707 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - eclipse recommendation EJB3
what eclipse configuration would you recommend for EJB3 development with Jboss EJB3 ? 1) JBoss IDE 2) Exadel 3) Eclipse + plugins (which ones) 4) Other bundle View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053706#4053706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053706 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Identity / rememberMe creates cookie in current path
Whilst this is quite useful for other components which extend Selector, for login (where sometimes you have a custom login form in a different location of the site to the 'standard' login page) it would be nice if it always used the context path. Otherwise you may end up with more than one username cookie in the same request. Perhaps if Selector had an extra method 'getCookiePath' which could be overridden by Identity? Cheers - Ben View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053705#4053705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053705 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Urgent - Error in deploying the NumberGuess Example
I just followed the Seam Getting Started Guide (linked above), using the JEMS 1.2.0.GA installer, and Seam 1.2.1.GA (both vanilla copies), substituting the numberguess example for the booking example and it worked perfectly. Please start again and follow the getting started guide *exactly* (and use JDK 5). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053704#4053704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053704 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: could not execute seam commands.
What program are you using to check out? If you're using WinCvs, make sure you tick the 'create missing directories that exist in the repository' box. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053703#4053703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Problem with charset UTF-8 in version 1.2.1GA
Hi, I am using wsconsume to generate webservice client class in windows machine. When I access the webservice and send a String with character 'Ć£' or 'Ƨ' for example, I got a soap exception. In post http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030510#4030510 was relate same problem. A possible solution is use in jvm parameter -Dfile.encoding=UTF-8. But this affects everything in jvm. I tried to use System.setProperty("file.encoding","UTF-8") before the call webservice, but donĀ“t work, I think a problem with classloader. Am I correct? There is a way of setting the enconding only in soap message without setting system property? Is it a bug with jbossws? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053701#4053701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to map an array or a list of enums?
"waynebaylor" wrote : So, I was wrong about the array. Hibernate does support arrays, but they're rarely used since Hibernate can't optimize them like Collections. | | As far as using enums, here are some links: | http://www.hibernate.org/270.html | http://forum.hibernate.org/viewtopic.php?t=933393 | http://www.nabble.com/Java-5-Enums-Persistence-::-How-to-t3865408s2369.html | | The solution may be bigger than your problem :) Interesting. Thus far I haven't had a problem with (single) enums. I use the built in annotation. | @Enumerated(EnumType.ORDINAL) | public InspectionPriorityEnum getPriority() { | return priority; | } | It is collections of enums that are vexing me. Is the approach taken in those links something akin to the solution for mapping collections? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053700#4053700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: LocaleSelector
Good day! I have the same problem in 1.2.1GA. And, as I see, there is no explanations how to fix in this topic. Does anybody know the solution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053699#4053699 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053699 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Authentication for my own portal page
Hi I have wasted a lot of time in providing authentication to my portal page,can any of you help me in configuring the default authentication to my own portal page. I have included in *-object.xml ... Admin view --i couldn't able to get the login page when i try to access the portal page. Please help me to overcome this problem. It works fine for JBoss Portal 2.2. Provide me answers w/r/t the JBoss Portal 2.4.1, if possible provide me all configuration files with examples. Thanks in Advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053696#4053696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053696 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:convertEntity with non-numeric @Id
No its not, look at the output of getAsString() - we only write an index to the output HTML page - is it easy for you to attach a test case to JIRA? Can you post your facelet, source of the list, value for the selection and any related entities just for me to have a complete picture. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053695#4053695 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JSPs and Facelets in one seam application?
Hi! Is it possible to run a seam application with jsp and facelet support? I've tried using my own ViewHandler (a modified version used to work months ago) however this doesn't work anymore: Before (used to work in seam 1.1): | public class JspAndFaceletViewHandler extends FaceletPortletViewHandler { | | private static final Log log = LogFactory.getLog(JspAndFaceletViewHandler.class); | | private SeamViewHandler seamViewHandler = null; | | private static final String FaceletSuffixConfigParameter = "javax.faces.DEFAULT_SUFFIX"; | | private String faceletSuffix = null; | | /** | * @param arg0 | */ | public JspAndFaceletViewHandler(ViewHandler arg0) { | super(arg0); | seamViewHandler = new SeamViewHandler(arg0); | } | | /* (non-Javadoc) | * @see javax.faces.application.ViewHandler#renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot) | */ | public void renderView(FacesContext arg0, UIViewRoot arg1) | throws IOException, FacesException { | if ((faceletSuffix != null) && (arg1.getViewId().endsWith(faceletSuffix))) { | super.renderView(arg0, arg1); | } else { | seamViewHandler.renderView(arg0, arg1); | } | } | | @Override | public UIViewRoot createView(FacesContext arg0, String arg1) { | | if (faceletSuffix == null) { | faceletSuffix = arg0.getExternalContext().getInitParameter(FaceletSuffixConfigParameter); | } | | if ((faceletSuffix != null) && (arg1.endsWith(faceletSuffix))) { | return super.createView(arg0, arg1); | } else { | return seamViewHandler.createView(arg0, arg1); | } | } | | } | Now tried this (but only little luck): | public class JspAndFaceletViewHandler extends ViewHandlerWrapper { | | private static final Log log = LogFactory.getLog(JspAndFaceletViewHandler.class); | | private FaceletViewHandler faceletViewHandler = null; | | private ViewHandler wrapped = null; | | private static final String FaceletSuffixConfigParameter = "lmg.faces.DEFAULT_SUFFIX"; | | private String faceletSuffix = null; | | /** | * @param arg0 | */ | public JspAndFaceletViewHandler(ViewHandler arg0) { | wrapped = arg0; | faceletViewHandler = new FaceletViewHandler(arg0); | } | | /* (non-Javadoc) | * @see javax.faces.application.ViewHandler#renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot) | */ | public void renderView(FacesContext arg0, UIViewRoot arg1) | throws IOException, FacesException { | | log.info("view is " + arg1 + " " + arg1.getViewId()); | | if ((faceletSuffix != null) && (arg1.getViewId().endsWith(faceletSuffix))) { | faceletViewHandler.renderView(arg0, arg1); | } else { | getWrapped().renderView(arg0, arg1); | } | } | | @Override | public UIViewRoot createView(FacesContext arg0, String arg1) { | | log.info("create view " + arg1); | | if (faceletSuffix == null) { | faceletSuffix = arg0.getExternalContext().getInitParameter(FaceletSuffixConfigParameter); | } | | if ((faceletSuffix != null) && (arg1.endsWith(faceletSuffix))) { | return faceletViewHandler.createView(arg0, arg1); | } else { | return getWrapped().createView(arg0, arg1); | } | } | | @Override | protected ViewHandler getWrapped() { | return wrapped; | } | | @Override | public String calculateRenderKitId(FacesContext arg0) { | // TODO Auto-generated method stub | return super.calculateRenderKitId(arg0); | } | | | } | Pages are shown correctly but as soon as I try an ajax or regular action, request fails without stack trace. My goal (question) is: I have an old application with hundreds of JSPs. Using seam-gen I created a stub application of the existing database and I use Facelets in those. However we want to be able to run both (the existing JSPs and the new facelets) while slowly porting the JSPs to Facelets. Is there any way to get both running in one app? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053694#4053694 Reply to the post : http://www.jboss.com/index.html?mo
[jboss-user] [EJB 3.0] - Re: How to map an array or a list of enums?
So, I was wrong about the array. Hibernate does support arrays, but they're rarely used since Hibernate can't optimize them like Collections. As far as using enums, here are some links: http://www.hibernate.org/270.html http://forum.hibernate.org/viewtopic.php?t=933393 http://www.nabble.com/Java-5-Enums-Persistence-::-How-to-t3865408s2369.html The solution may be bigger than your problem :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053693#4053693 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:convertEntity with non-numeric @Id
I'm using Seam 1.3.0.ALPHA. Here is the full stack trace: Caused by javax.servlet.ServletException with message: "For input string: "USD"" | javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:60) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:293) | org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:64) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) | org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | java.lang.Thread.run(Thread.java:619) | Caused by java.lang.NumberFormatException with message: "For input string: "USD"" | java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) | java.lang.Integer.parseInt(Integer.java:447) | java.lang.Integer.(Integer.java:620) | org.jboss.seam.ui.EntityConverter.getAsObject(EntityConverter.java:80) | com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152) | com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197) | com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359) | javax.faces.component.UIInput.getConvertedValue(UIInput.java:934) | javax.faces.component.UIInput.validate(UIInput.java:860) | javax.faces.component.UIInput.executeValidate(UIInput.java:1065) | javax.faces.component.UIInput.processValidators(UIInput.java:666) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIForm.processValidators(UIForm.java:229) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662) | org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53) | org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invo
[jboss-user] [JBoss Seam] - Re: Trouble with SeamTest when stateful session bean is anno
Never mind. On closer inspection, your solution of adding depends={"org.jboss.seam.core.ejb"} worked. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053691#4053691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: could not execute seam commands.
"petemuir" wrote : http://labs.jboss.com/jbossseam/gettingstarted | | RTM - Ant 1.6 Yes, I read the references you pointed out, but since it speaks to seam-1.2, not CVS (1.3 alpha?), and refers to ant 1.7 beta (not 1.7.0), I wasn't sure whether the issue with ant applied to the latest source in CVS. I have tried using ant 1.6.5, and consistently get the same errors there, too. Thx... Squ1rr3l View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053690#4053690 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053690 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: 4.0.5 to 4.2.0 upgrade and JBossTS
When I was using local-tx I ran into the "only one local tx" issue and since that was more of a temporary problem as I wanted to move to a better transaction model anyway I didn't want to dig too deeply into that. However your classloading comment got me to look closer at the mysql driver and I have found out that this only happens with entity beans that rely on auto incremented ID columns. - If i manually assign a key I can create entity beans just fine. I am still looking into why this is happening and how it can be resolved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053689#4053689 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:convertEntity with non-numeric @Id
It works with *any* object - take a look at the ui example. Post the whole stack trace. You are using 1.2.1.GA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053688#4053688 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to tell if token is waiting?
Is there a way to determine whether a token is waiting? Another way to ask this... when I call getNode() on a token, does that mean the token is waiting at that node? I'm still trying to understand what it means that the process executes in the thread that signals the process instance. Does that also mean that other threads would not "see" the fact that the process is moving through the nodes until that thread reaches a wait state? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053687#4053687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Cluster Stateful EJB 3.0 problems
Well, I've turned on the tracing on the client, and here's what I get before the first invocation: | TRACE [main] HARMIClient.readObject(314) | Init, clusterInfo: [EMAIL PROTECTED]/HAJNDI,targets=[HARMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.0.1:1101](remote),objID:[-63ed3ba3:113211d2bae:-7ffb, 8972489255603988726, HARMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.0.1:1101](remote),objID:[-63ed3ba3:113211d2bae:-7ffb, 8972489255603988726],currentViewId=-71890248,isViewMembersInSyncWithViewId=false,cursor=9,arbitraryObject=null}, [EMAIL PROTECTED] | TRACE [main] HARMIClient.invokeRemote(167) | Invoking on target=HARMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.0.1:1101](remote),objID:[-63ed3ba3:113211d2bae:-7ffb, 8972489255603988726 | TRACE [main] HARMIClient.invokeRemote(167) | Invoking on target=HARMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[127.0.0.1:1101](remote),objID:[-63ed3ba3:113211d2bae:-7ffb, 8972489255603988726 | TRACE [main] PropertyEditors.mapJavaBeanProperties(316) | Mapping properties for bean: SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] | DEBUG [main] MicroSocketClientInvoker.(244) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] constructed | DEBUG [main] MicroRemoteClientInvoker.connect(240) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] connecting | DEBUG [main] MicroSocketClientInvoker.initPool(711) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] added new pool ([]) as ServerAddress[127.0.0.1:3873, NO enableTcpNoDelay timeout 0 ms] | DEBUG [main] MicroRemoteClientInvoker.connect(245) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] connected | TRACE [main] MicroRemoteClientInvoker.invoke(63) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873](1) invoking InvocationRequest[edc3a2, AOP, [advisedMethod=public abstract java.lang.Object org.jboss.ejb3.ProxyFactory.createProxy(), unadvisedMethod=public abstract java.lang.Object org.jboss.ejb3.ProxyFactory.createProxy(), metadata=[metaData={DISPATCHER={OID=[type=AS_ISvalue=jboss.j2ee:jar=increment.jar,name=ContadorBean,service=EJB3,element=ProxyFactory,partition=DefaultPartition]}, REMOTING={SUBSYSTEM=[type=AS_ISvalue=AOP], INVOKER_LOCATOR=[type=AS_ISvalue=InvokerLocator [socket://127.0.0.1:3873/]]}}], targetObject=null, arguments=null]] | TRACE [main] MicroSocketClientInvoker.getConnection(776) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] getting a socket, usedPooled: 0 | TRACE [main] MicroSocketClientInvoker.getConnection(800) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] creating socket 0, attempt 1 | TRACE [main] MicroSocketClientInvoker.getConnection(802) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] created socket: Socket[addr=/127.0.0.1,port=3873,localport=59398] | TRACE [main] SocketWrapper.(67) | constructing org.jboss.remoting.transport.socket.ClientSocketWrapper instance for Socket[addr=/127.0.0.1,port=3873,localport=59398], using timeout 0 | TRACE [main] SocketWrapper.setTimeout(81) | ClientSocketWrapper[Socket[addr=/127.0.0.1,port=3873,localport=59398].29428e] setting timeout to 0 | TRACE [main] ClientSocketWrapper.createOutputStream(194) | ClientSocketWrapper[Socket[addr=/127.0.0.1,port=3873,localport=59398].29428e] getting output stream from Socket[addr=/127.0.0.1,port=3873,localport=59398], [EMAIL PROTECTED] | TRACE [main] JavaSerializationManager.createOutput(61) | Creating ObjectOutputStream | TRACE [main] ClientSocketWrapper.createInputStream(176) | ClientSocketWrapper[Socket[addr=/127.0.0.1,port=3873,localport=59398].29428e] getting input stream from Socket[addr=/127.0.0.1,port=3873,localport=59398], [EMAIL PROTECTED] | TRACE [main] JavaSerializationManager.createInput(52) | Creating ObjectInputStreamWithClassLoader | TRACE [main] SocketWrapper.setTimeout(81) | ClientSocketWrapper[Socket[addr=/127.0.0.1,port=3873,localport=59398].29428e] setting timeout to 0 | DEBUG [main] ClientSocketWrapper.createStreams(169) | reset timeout: 0 | TRACE [main] MicroSocketClientInvoker.writeVersion(994) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] writing version 22 on output stream | TRACE [main] MicroSocketClientInvoker.versionedWrite(965) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] writing invocation to marshaller | TRACE [main] MicroSocketClientInvoker.versionedWrite(970) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] done writing invocation to marshaller | TRACE [main] MicroSocketClientInvoker.readVersion(985) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] reading version from input stream | TRACE [main] MicroSocketClientInvoker.readVersion(987) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] read version 22 from input stream | TRACE [main] MicroSocketClientInvoker.versionedRead(941) | SocketClientInvoker[1301ed8, socket://127.0.0.1:3873] r
[jboss-user] [JBoss Seam] - s:convertEntity with non-numeric @Id
According to the documentation: anonymous wrote : | The converter works with any entity which has an @Id annotation - either simple or composite. | But if I try to use it with an Entity that has a String as the @Id, I get a NumberFormatException: | java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) | java.lang.Integer.parseInt(Integer.java:447) | java.lang.Integer.(Integer.java:620) | org.jboss.seam.ui.EntityConverter.getAsObject(EntityConverter.java:80) | com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152) | So this would lead me to believe that it works only for numbers. Can this please be emphasized in the documentation? So what do I need to do? I guess I need to delcare my own converter? And then how do I get it wired in? Or could EntityConverter be enhanced to handle String @Id Entities? (Overload the get method in EntityConverterStore, and do some kind of class meta-data check in EntityConverter?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053685#4053685 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Monitoring servlets connections to database
How can configure JBoss to monitor the connections that servlets make to a database via JDBC? We want to monitor a servlet's connection and a servlet's performance to identify servlets that may be hogging resources. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053684#4053684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JBoss Seam] - Re: could not execute seam commands.
Yes, I read the references you pointed out, but since it speaks to seam-1.2, not CVS (1.3 alpha?), and refers to ant 1.7 beta (not 1.7.0), I wasn't sure whether the issue with ant applied to the latest source in CVS. I have tried using ant 1.6.5, and consistently get the same errors there, too. Thx... HH On 6/12/07, petemuir <[EMAIL PROTECTED]> wrote: http://labs.jboss.com/jbossseam/gettingstarted RTM - Ant 1.6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053677#4053677 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user -- Harry Holt, PMP ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: 'uniqueness constraint violation' when running wsconsume
It seems like i was getting the : A schema cannot contain two global components with the same name error because in my wsdl i was declaring 2 that each included an referencing the same xml file, thus trying to include the same file twice. I moved the include calls to the wsdl and am not seeing this error anymore. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053680#4053680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: could not execute seam commands.
http://labs.jboss.com/jbossseam/gettingstarted RTM - Ant 1.6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053677#4053677 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Session problems
"thierry.rietsch" wrote : beside rename all fields to different names This is the sane solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053676#4053676 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Error creating MBeanProxy when using @Depends
I used a Trailblazer tutorial as the basis for my example. http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/jmx/index.html The managment interfaces are Calculator and InvestmentAdvisor. The MBeans are CalculatorMBean and InvestmentAdvisorMBean. I want to inject Calculator into my other MBean, InvestmentAdvisorMBean. I receive an MBeanProxy error when deploying on JBoss 4.2.0.GA. [EJBContainer] STARTED EJB: com.csg.mpg.service.CalculatorMBean ejbName: CalculatorMBean [STDOUT] Calculator - Creating [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.service.ServiceContainer [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=mpg-ejbs-1.0.0-SNAPSHOT.jar,name=InvestmentAdvisorMBean,service=EJB3 with dependencies: [JmxKernelAbstraction] trail:service=calculator [EJBContainer] STARTED EJB: com.csg.mpg.service.InvestmentAdvisorMBean ejbName: InvestmentAdvisorMBean [STDERR] java.lang.RuntimeException: Error creating MBeanProxy: trail:service=calculator [STDERR] at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:415) [STDERR] at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:99) [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394) [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349) I'd prefer to stick with the following because I can call calculator.calculate directly. @Depends ("trail:service=calculator") public void setCalculator (Calculator calculator) { this.calculator = calculator; } but I discovered that the following works @Depends ("trail:service=calculator") private ObjectName calculatorName; It is clumsy since I have to loop through the various mbean servers (I have two for some reason) in order get the mbean and then call invoke. Any thoughts on what I am missing? Here are my classes | public interface Calculator { | // Attribute | public void setGrowthrate(double g); | | public double getGrowthrate(); | | // The management method | public double calculate(int start, int end, double saving); | | // Life cycle method | public void create() throws Exception; | | public void destroy() throws Exception; | } | | @Service(objectName = "trail:service=calculator") | @Management(Calculator.class) | public class CalculatorMBean implements Calculator { | | double growthrate; | | public void setGrowthrate(double growthrate) { | this.growthrate = growthrate; | } | | public double getGrowthrate() { | return growthrate; | } | | public double calculate(int start, int end, double saving) { | double tmp = Math.pow(1. + growthrate / 12., 12. * (end - start) + 1); | return saving * 12. * (tmp - 1) / growthrate; | } | | // Lifecycle methods | public void create() throws Exception { | growthrate = 0.08; | System.out.println("Calculator - Creating"); | } | | public void destroy() { | System.out.println("Calculator - Destroying"); | } | | } | public interface InvestmentAdvisor { | | // The management method | public void advise(); | | // Life cycle method | public void create() throws Exception; | | public void destroy() throws Exception; | } | @Service (objectName="trail:service=investmentAdvisor") | @Management(InvestmentAdvisor.class) | public class InvestmentAdvisorMBean implements InvestmentAdvisor { | | private Calculator calculator; | | @Depends ("trail:service=calculator") | public void setCalculator (Calculator calculator) { | this.calculator = calculator; | } | | public void create() throws Exception { | System.out.println("InvestmentAdvisorMBean created"); | } | | public void destroy() throws Exception { | System.out.println("InvestmentAdvisorMBean destroyed"); | } | | public void advise() { | System.out.println("InvestmentAdvisorMBean advising"); | calculator.calculate(25, 65, 300); | | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053675#4053675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053675 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Cluster Stateful EJB 3.0 problems
Well here's the code for the client: | public void execute(){ | Contador contador = obterContador(); | int total = 0; | for(int i=0;ihttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053674#4053674 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053674 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: IllegalArgumentException in EmbeddedEJB3
I'm using Seam 1.2.1.GA with the included jboss-ejb3-all.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053673#4053673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053673 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Beginner Question
Hello Gavin, thanks for your response and I can understand your frustration about dealing with people that are a bit too enthusiastic at start. It's just that no 2 developers write the same HelloWorld application. And since Seam looked easy to me, I tried to do HelloWorld + 10%. Reading a lot of documentation unfortunately doesn't save from making programming errors. Dirk View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053671#4053671 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble with SeamTest when bean is annotated @Startup
Unfortunately it didn't work either. I removed the ejb annotations and made it a POJO. Then I injected entityManager using @In, I got a similar problem, the root of which is due to the micro-container (and the JNDI) not available before the starting up of the bean: anonymous wrote : | [testng] 09:49:46,453 INFO [Component] Component: voteCount, scope: CONVERSA | TION, type: ENTITY_BEAN, class: com.n2.bo.VoteCount |[testng] 09:49:46,453 INFO [Lifecycle] starting up: entityManager |[testng] 09:49:46,453 INFO [Lifecycle] starting up: companyList |[testng] FAILED CONFIGURATION: @BeforeClass init |[testng] java.lang.IllegalArgumentException: EntityManagerFactory not found i | n JNDI |[testng] at org.jboss.seam.core.ManagedPersistenceContext.getEntityManage | rFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:164) |[testng] at org.jboss.seam.core.ManagedPersistenceContext.initEntityManag | er(ManagedPersistenceContext.java:77) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053670#4053670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053670 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: [JDBCExceptionReporter]'last_insert_id' is not a recogni
It should work if both Person and Address have their ids annotated like @Id | @GeneratedValue | private int id; | Hibernate should take care of all the details. How are you using EntityManager to persist them? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053669#4053669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053669 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Jboss Portal Install Problems
Yes, Sun does hide older releases fairly well. On the Java SE downloads page, http://java.sun.com/javase/downloads/index.jsp look for the "Previous Releases" just under the Downloads tab. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053668#4053668 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem with invocation web service from JSP versus java cla
I am getting an error while invoking a web service from a java class whereas the same code if I put in a test jsp and run, it seems working fine.. And once the jsp is run, the class works perfectly. It seems like with the invocation of the JSP something is getting initialized/put in the classpath or something :) I am using Jboss jboss-4.0.5.GA with JDK 1.5 and jbossws 1.0.4 Appreciate any help or pointer.. So, the request is getting formed here.. Which works 2007-06-12 11:26:17,689 - INFO - 2007-06-12 11:26:17,689 - INFO - 2007-06-12 11:26:17,689 - INFO - Before calling Web Service 2007-06-12 11:26:17,703 - DEBUG - Get locator for: http://server:8080/xWebService/?wsdl 2007-06-12 11:26:17,776 - DEBUG - invoke called, but our invoker is disconnected, discarding and fetching another fresh invoker for: InvokerLocator [http://server:8080/xWebService/?wsdl=] 2007-06-12 11:26:17,777 - DEBUG - connect called for: [EMAIL PROTECTED] 2007-06-12 11:26:17,783 - DEBUG - Setting request header with SOAPAction : "validate" 2007-06-12 11:26:17,783 - DEBUG - Setting request header with Content-Type : text/xml; charset=UTF-8 2007-06-12 11:26:22,159 - ERROR - Servlet.service() for servlet Validation threw exception java.lang.NullPointerException at com.haley.haleyrules.webservice.Handler.log(Handler.java:207) at com.haley.haleyrules.webservice.Handler.initializeKnowledgeBase(Handler.java:390) at com.haley.haleyrules.webservice.Handler.onRequest(Handler.java:413) at com.haley.haleyrules.webservice.HTTPservlet.doPost(HTTPservlet.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) 2007-06-12 11:26:22,171 - DEBUG - getMimeHeaders from: {Connection=[close], Content-Length=[1677], ResponseCodeMessage=Internal Server Error, Date=[Tue, 12 Jun 2007 16:26:21 GMT], null=[HTTP/1.1 500 Internal Server Error], Content-Type=[text/html;charset=utf-8], Server=[Apache-Coyote/1.1], HEADER={SOAPAction="validate", Content-Type=text/xml; charset=UTF-8}, ResponseCode=500} 2007-06-12 11:26:22,334 - DEBUG - createMessage: [contentType=text/html; charset=utf-8] 2007-06-12 11:26:22,335 - ERROR - Cannot unmarshall SOAPMessage javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=utf-8 at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:205) at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:76) at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175) at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81) at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) at org.jboss.remoting.Client.invoke(Client.java:525) at org.jboss.remoting.Client.invoke(Client.java:488) at org.jboss.ws.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:163) at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:92) at com.
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Entity beans ejbCreate returns null
exactly. Is there any drawback if i make it return a legal pkey value? Im using a sort of auto increment on pk, and there's no way with finders then to find the last row inserted, so maybe the return value of the ejbCreate would suit perfectly.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053666#4053666 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053666 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user