[jboss-user] [JBossCache] - Re: Getting duplicate entry exception
I am using JBoss Cache 1.4.1SP3 JBoss AP 4.0.3 SP1. I am facing the same issue. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068094#4068094 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068094 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - JBoss Cache 1.4.1 SP3 |Problem with OPTIMISTIC NodeLockingSc
We are using JBoss AS 4.0.3 SP1 and JBoss Cache 1.4.1 SP3 and MySQL Server 5.0.18. We are using OPTIMISTIC NodeLockingScheme currently. We are getting various cache exceptions:- 1- DataVersioning 2- Duplicate Key 3- ReadWriteLock Because of these errors, our production system gets down. Here is the exception stack trace:- ReadWriteLock Exception 26 Jul 07 08:05:36, INFO org.jboss.cache.interceptors.TxInterceptor:invoke:161 There was a problem handling this request java.lang.InterruptedException at EDU.oswego.cs.dl.util.concurrent.NullSync.attempt(NullSync.java:38) at org.jboss.cache.lock.IdentityLock.acquireReadLock(IdentityLock.java:248) at org.jboss.cache.Node.acquireReadLock(Node.java:417) at org.jboss.cache.Node.acquire(Node.java:384) at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:231) at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:160) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:186) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:197) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345) at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:157) at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520) at org.jboss.cache.TreeCache.put(TreeCache.java:3678) at com.tg.cache.manager.FareCacheProviderImpl.addToCache(FareCacheProviderImpl.java:104) at com.tg.ws.abacus.AbacusFareService.putResponseInCache(AbacusFareService.java:615) at com.tg.ws.abacus.AbacusFareService_1_5.getFaresFromCacheOrWSForRequest(AbacusFareService_1_5.java:189) at com.tg.ws.abacus.FarePoolHandler.execute(FarePoolHandler.java:29) at com.tg.ws.abacus.FarePoolHandler.execute(FarePoolHandler.java:15) at com.tg.parallel.concurrent.JavaConcurrentPoolExecutor$CallableAdapter.call(JavaConcurrentPoolExecutor.java:93) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Duplicate Key Exception 26 Jul 07 08:38:23, ERROR org.jboss.cache.loader.JDBCCacheLoader:insertNode:981 Failed to insert node: Duplicate entry '/fare/JDH/UDR/3' for key 1 com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '/fare/JDH/UDR/3' for key 1 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1160) at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:685) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1400) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1314) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1299) at org.jboss.cache.loader.JDBCCacheLoader.insertNode(JDBCCacheLoader.java:969) at org.jboss.cache.loader.JDBCCacheLoader.put(JDBCCacheLoader.java:321) at org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:216) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:197) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68) at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345) at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156) at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
[jboss-user] [JBoss Portal] - Re: Classloader problems
Dear Thomas, after some hours of frustration: I'm back with my portlets where I started, with the MyFaces stuff replaced by Sun's RI in portlet.xml, the jsf-portlet.jar removed from WEB-INF/lib of my war file. This was my first guess with JBossAS 4.2.1/JBossPortal 2.6.0 and my first guess with JBossPortal 2.6.1 as well. It's simply what worked with JBossAS (with MyFaces 1.1.5)/JBossPortal 2.4. The exceptions in 2.6.0 were far worse but simply to show what's left: anonymous wrote : | 04:22:53,728 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: Portlet class not found com.sun.faces.portlet.FacesPortlet | 04:22:53,734 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:252) | 04:22:53,736 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:130) | 04:22:53,736 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:153) | 04:22:53,739 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:94) | 04:22:53,742 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99) | 04:22:53,743 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211) | 04:22:53,744 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217) | 04:22:53,745 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | 04:22:53,746 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | 04:22:53,748 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) | 04:22:53,749 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 04:22:53,751 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 04:22:53,752 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | 04:22:53,753 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 04:22:53,755 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | 04:22:53,758 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 04:22:53,759 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | 04:22:53,763 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 04:22:53,764 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | 04:22:53,765 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 04:22:53,766 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | 04:22:53,769 ERROR [STDERR] at $Proxy198.deploy(Unknown Source) | 04:22:53,769 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259) | 04:22:53,771 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54) | 04:22:53,774 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:160) | 04:22:53,776 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) | 04:22:53,776 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 04:22:53,778 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 04:22:53,779 ERROR [STDERR] at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153) | 04:22:53,781 ERROR [STDERR] at $Proxy200.handleNotification(Unknown Source) | 04:22:53,782 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127) | 04:22:53,782 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108) | 04:22:53,783 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340) | 04:22:53,783 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308) | 04:22:53,784 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482) | 04:22:53,785 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source) | 04:22:53,785 ERROR [STDERR] at
[jboss-user] [JBoss Seam] - Re: richfaces*.jar into where?
Yes I am using 4.2.0.GA too. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068090#4068090 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068090 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to prevent double submit
Hi all! When submitting a form and the action method takes longer it is a big trouble if the user submits the form more times before the method finished. How to prevent double submit with Seam? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068095#4068095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to prevent double submit
use a conversation View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068100#4068100 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Sequential processing of messages with the same Key
anonymous wrote : You don't create 700,000 subscriptions that would be a management nightmare. ;-) | It would also require every send of a message checking 700,000 selectors to see | which subscription matches the message. | | You use a like, e.g. all customers beginning with A, B, C, etc. | to divide them into groups according to how much concurreny you need. | | Or better yet, you use a hash of the customer id if you want a better spread. I am missing something totally. A queue can process multiple messages at once, depending on the size of the thread pool, right?. Doesn't this create concurrency? If I understood the whole JMS clustering thing then the cluster should make sure that those processes get distributed one the cluster. If I want to make it more scalable then I only make sure that the queue can be processed by more threads and that more machines are available on the cluster. Lets forget about the DB for now, because that will become the bottleneck eventually (if you don't let it scale ;)). But I see where you are going. Doesn't your solution also mean that a subscription can only have one thread to make sure that it processes all the messages sequentially? Because that would indeed be the solution. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068103#4068103 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Specifying users and passwords for admin role.
Hi, I am trying to setup users and passwords as explained in http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole. Yet, whenever I try to shutdown the server, the authentication fails. Also, the default of admin/admin did not work. How can I specify the user and password for shutdown ? I am forced to provide a user id and password because the security constraint is uncommented in web.xml. Is this correct ? Regards, Nags. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068098#4068098 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Can Windows Network Load Balancing(NLB) Service and JGroup
The two machines (192.168.225.116/117) are configured to load balance the HTTP reqeusts by using Windows 2003's NLB service. The virtual IP exposed by NLB is 192.168.225.48. The two JBoss 4.0.4 GA servers in all mode are run on this two machines. We got the a lot of the following error messages displayed in server.log and the JBoss server on 192.168.225.116 is stuck by the messages. 2007-07-26 13:29:37,651 WARN [org.jgroups.protocols.pbcast.GMS] join(192.168.225.116:2899) sent to 192.168.225.48:1095 timed out, retrying Note that 192.168.225.48 is the virtual IP. How to solve this issue? How to let JGroup not send messages to 192.168.225.48? Thanks for your help very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068097#4068097 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help
No I have followed your instruction, here is my code: MySite.java: package test; @javax.persistence.Entity @javax.persistence.Table(name=SI_SITE) public class MySite { @javax.persistence.Column(name=siteId) @javax.persistence.Id private java.lang.Long siteId; @javax.persistence.Column(name=name) private java.lang.String name; @javax.persistence.Column(name=description) private java.lang.String description; @javax.persistence.Column(name=staticSite) private boolean staticSite; @javax.persistence.Column(name=status) private int status; public MySite() { } ... getter and setter for the previous attributes } The client (part of a session bean): EjbLocator ejbLocator=EjbLocator.getLocator(); MySite siteEJB3=ejbLocator.find(MySite.class, new Long(1)); EjbLocator.java: public class EjbLocator { @PersistenceContext(unitName=StatInfoUnit) private EntityManager manager; private static Context ctx; private static EjbLocator instance = new EjbLocator(); private EjbLocator() { try { ctx = new InitialContext(); } catch (NamingException e) { logger.error(e.getMessage()); } } public static EjbLocator getLocator() { return instance; } private T getEjb(Class ejbClass, String name) { try { T service = (T) new InitialContext().lookup(Statinfo/ + name + /local); return service; } catch (NamingException e) { return null; } } public T find(Class ejb3Class, Object id) { return manager.find(ejb3Class, id); } public void persist(Object ejb3Object) { manager.persist(ejb3Object); } } I have a persistence.xml in META-INF dir: persistence-unit name=StatInfoUnit jta-data-sourcejava:/StatInfoDS/jta-data-source !-- Explicitly define mapping file path, else Hibernate won't find the default -- mapping-fileMETA-INF/orm.xml/mapping-file test.MySite !-- exclude-unlisted-classes=true: Prevent annotation scanning. In this app we are purely driven by orm.xml -- exclude-unlisted-classesfalse/exclude-unlisted-classes org.hibernate.ejb.HibernatePersistence /persistence-unit I have a orm.xml in META-INF dir: ?xml version=1.0 encoding=UTF-8? entity-mappings xmlns=http://java.sun.com/xml/ns/persistence/orm; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd version=1.0 persistence-unit-metadata /persistence-unit-metadata /entity-mappings Deployment is OK but the exception (Nullpointer) occurs when the client part is called, any idea? Thanks a lot for your help, JF View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068102#4068102 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to prevent double submit
But as far as i know the conversation is ended after the @End method is finished. If this is true, when the method is processing it could be invoked again, right? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068107#4068107 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Exadel Plugins available in opensource
the expiration end-of-august should give you a hint ;) Could you elaborate what you mean exactly when you say Exadel Studio Pro Templates ? There are quite a few of them and some of them (the features) we have to cleanup to align it with eclipse 3.3 and our plan to cut down redundant features... /max View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068104#4068104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM IDentity
I just noticed at http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmGettingStarted towards the end, a new user is added by executing SQL on the DB itself. So my guess is that the user creation has to be implemented using a self-created application. I might be wrong, i hope somebody who knows more about it can elaborate on this! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068106#4068106 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help
I reintroduce persistence.xml: persistence-unit name=StatInfoUnit jta-data-sourcejava:/StatInfoDS/jta-data-source mapping-fileMETA-INF/orm.xml/mapping-file *classtest.MySite/*class exclude-unlisted-classesfalse/exclude-unlisted-classes *providerorg.hibernate.ejb.HibernatePersistence/*provider *properties *property name=hibernate.hbm2ddl.auto value=update / *property name=hibernate.dialect value=org.hibernate.dialect.PostgreSQLDialect / /*properties /persistence-unit Note: remove the * (it just for the display in the forum) Note: If I don't specify the class tag test.MySite the log does not show the EJB mapping with the DB View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068108#4068108 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - posting data using GET .. instead of POST in jboss portlets
HI , i m working on an application where i need to post data using GET method instead of POST ... all the examples i've seen so far are using only POST into the jsp .. ( as i m a newbie i dont' have an idea how to achieve that.. ) can somebody help me in this perticuler issue... Thanks in Advance.. ajois.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068109#4068109 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068109 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: UserFriendly URLs: Can we have an '_' instead of '+' in
2) yes that's not possible from the admin interface. Then you need to write your own command mapper. The portal has to know on which page to go base on the URL. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068111#4068111 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - User authorization in Web Service
How to setup user authentication in a web service? I have something like: @Stateless @WebService(endpointInterface=com.m1.sample.core.IRoleMgrWebService) @SecurityDomain(mydomain) public class RoleMgrEjbWeb implements IRoleMgrWebService { ... @AllowedRoles(role) public void doSomething() {...} } The client is like that: URL url = new URL(http://127.0.0.1:8080/RoleMgrEjbWebService/RoleMgrEjbWeb?wsdl;); QName qname = new QName(http://core.sample.m1.com/;, RoleMgrEjbWebService); ServiceFactory factory = ServiceFactory.newInstance(); Service service = factory.createService(url, qname); IRoleMgrWebService ws = (IRoleMgrWebService) service.getPort(IRoleMgrWebService.class); ws.doSomething(); What should I write to pass user's credentials? I tried something like: URL url = Thread.currentThread().getContextClassLoader().getResource(auth.conf); System.setProperty(java.security.auth.login.config, url.toString()); javax.security.auth.login.LoginContext lh = new javax.security.auth.login.LoginContext(aloe, new AloeLoginHandler(ike, 1)); lh.login(); But that works only if I call EJB's not service. Btw, is there any documentation about authentication and authorization in jboss web services? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068118#4068118 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @DataModelSelection and ClassCastException
thanks for your reply... After some check of my .ear, there's no duplicate import of hibernate... To make some stuff working, I had to add these jars to the glassfish lib directory: hibernate-all.jar thirdparty-all.jar jboss-archive-browsing.jar In my ear and my war, all the jars i have are : EAR : commons-beanutils-1.7.0.jar commons-collections-3.1.jar commons-digester-1.6.jar el-api.jar el-ri.jar jboss-seam-debug.jar jboss-seam.jar jsf-facelets.jar WAR (under WEB-INF/lib): ajax4jsf-1.1.1.jar jboss-seam-ui.jar oscache-2.3.2.jar richfaces-3.0.1.jar That's a bit weird, because the page before the one which raise the exception contains a DataModel, and it works just fine... All i have to do is to display in a first page a list of orders you can click on, then display the orderlines relatives to this order and when a user clicks on a orderline, he may see the items that are relative to it. It crashes when the user clicks on the orderline... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068117#4068117 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068117 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Lazyload of Map using Hibernate Annotations only.
Hi, I have a problem with Lazyload of Map objects of Java using Hibernate Annotations only? My piece of code - @CollectionOfElements @OneToOne(fetch = FetchType.LAZY) @MapKey(columns = { @Column(name = locale, nullable = false)}) private Map values; Instead of @OneToOne, I also tried with @LazyCollection(LazyCollectionOption.TRUE) But Unable to lazy load the map. Moreover the mapping file used in Hibernate are automatically generated. I can't write them explicitly. Regards, Sucheta. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068114#4068114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068114 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Classloader problems
You need to keep: jsf-portlet.jar It's the Sun JSF bridge View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068113#4068113 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068113 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to let user print off a list?
@smithbstl because on the page there are several fragments should be printed off. One is a shopping list, which should be like a shopping list (slim, small, layout simple), others might be suitable for A5 or A4 format. Mixing them on one page is easy for me but not good for my users. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068120#4068120 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:selectDate js error in IE in Seam 2.0 Beta
I'm using the released Beta 1. The error reported is: Line: 459 | Char: 7 | Error: Function expected | Code: 0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068125#4068125 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068125 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam security user session...
Yes Shane, I do like you offer, this is easies way:) I simply remove login form and add logout button. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068124#4068124 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: default values for deployment screen of eclipse designer
Ross, Checkout 'Windows-Preferences...' and then the JBoss jBPM pages. Regards, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068123#4068123 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Breaking changes - Seam CVS updated with JBoss Rules 4.0
FYI: Since 4.0.0 GA, ex. JBoss Rules is called JBoss Drools now. :-) http://blog.athico.com/2007/07/jboss-drools-vs-jboss-rules-part-deux.html Eclipse Drools plugin update site and Maven repository: http://blog.athico.com/2007/07/ide-update-site-and-drools-400-maven.html Take-off readings to start using Drools: http://blog.athico.com/2007/07/essential-drools-blog-reading.html Drools has Rule Flow from 4.0 on, so you have a high-performance alternative to jBPM now. Sequential mode can be used with stateless rule sessions. More information please refer to Drools documentation and main blog site. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068122#4068122 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Classloader problems
Yes, I thought so. There are no portal jars in my ear/war. So I finally run in the exceptions from my first posting. The only differences between the former version of my application are the addition of the jsf-portlet.jar to the WEB-INF/lib and the switch from MyFaces to SUN JSF in the portlet.xml. There are no listeners or Tomahawk Extension filters in my servlet.xml, no portal/portlet jars. Best regards Werner View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068140#4068140 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068140 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: SAP Adapter for JBoss
Perhaps this could help you: http://www.bischofs.net/studium/diplomarbeit.htm I hope you know a little German because all the commentaries are German. Moreover the documentation. Hope I could help you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068133#4068133 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068133 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Stale state problem kills process instance?
Matthew, Can you create a unit test that shows this problem and attach it to a JIRA issue? Cheers, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068127#4068127 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068127 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Messaging bridge question
Thanks Tim. FYI, I just setup up a JBossAs 4.2.0.GA server with JBM_1.4.0.CR1 and tried it and I got the same behavior. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068198#4068198 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Failed to boot JBoss when installed through installation .xm
Hi, I have installed JBOSS on Unix using an installation .xml created on Windows. But, when I start it up, I get these messages. How do I get past these errors ? | 1 | Failed to boot JBoss: | org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=Naming | at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103) | at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) | at org.jboss.system.ServiceController.install(ServiceController.java:226) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | at java.lang.reflect.Method.invoke(Method.java:615) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.install(Unknown Source) | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | at java.lang.reflect.Method.invoke(Method.java:615) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy5.deploy(Unknown Source) | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | at org.jboss.Main.boot(Main.java:200) | at org.jboss.Main$1.run(Main.java:490) | at java.lang.Thread.run(Thread.java:799) | | Regards, Nags. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068187#4068187 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068187 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - How to lookup EJB 3 session bean from servlet?
I get a NullPointException at the save line. public class Test extends HttpServlet { private static final long serialVersionUID = -1L; @EJB private T2Facade t2fl; public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { T2 t2 = new T2(hello); t2fl.save(t2); LogUtil.log(t2.getId() = +t2.getId(),Level.INFO,null); LogUtil.log(t2.getX() = +t2.getX(),Level.INFO,null); } @Stateless public class T2Facade implements T2FacadeLocal { @PersistenceContext private EntityManager em; public void save(T2 t2) { // em.persist(t2); } @Entity @SequenceGenerator(name=t2_sequence, sequenceName = t2_seq) public class T2 { private static final long serialVersionUID = -2L; private Long id; private String x; public T2(String x) { this.x = x; } @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = t2_sequence) public Long getId() { return id; } public void setId(Long id) { this.id = id; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068216#4068216 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Gwt integration in Seam2.0.0.Beta1 doens't work
I get Illegal State Exception : No application context active. I have added two lines in GWTRemoteService | ServletLifecycle.beginRequest(request); | (...) //do stuff | ServletLifecycle.beginRequest(request); | And now it works. Maybe I am wrong but I think that without these 2 lines this simply cant work, so how it is possible that no one noticed this before ? Maybe in some special circumstances it works fine ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068225#4068225 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - ClassCastException on remote calling of an EJB3.0
Hello, i`m relativly new to Java and working on a project in which i`d like to call an EJB from a Desktop client. UNfortunately now i'm stuck. As far as i can tell the connection works fine. I' getting also something back from the server. As i understand it is the reference object of the searched bean. The problem is, that i get a ClassCastException if i try to cast this object to an BeanRemote object. This is my client code: public static void main(String args[]) throws NamingException, RemoteException { | | Hashtable env = new Hashtable(); | env.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); | env.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); | env.put(Context.PROVIDER_URL, jnp://localhost:1099); | | final Context ic = new InitialContext(env); | Object client = ic.lookup(ClientBean); | ClientLocal home = (ClientLocal)client; //This line causes The error | System.out.println(ClientBean is bound to: + client); | | java.awt.EventQueue.invokeLater(new Runnable() { | public void run() { | new Client().setVisible(true); | } | }); | } | | // Variables declaration - do not modify | private javax.swing.JLabel jLabel1; | private javax.swing.JButton showButton; | private javax.swing.JTextField textFieldClient; | private javax.swing.JButton updateButton; | // End of variables declaration | | } | The output i get: compile: run: 2007-07-27 10:29:46.504 java[363] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x10303, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2007-07-27 10:29:46.505 java[363] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider) Exception in thread main java.lang.ClassCastException: org.jnp.interfaces.NamingContext at com.planetactive.ejb.client.Client.main(Client.java:106) Java Result: 1 BUILD SUCCESSFUL (total time: 3 seconds) If i uncomment the described line, this is my output. As you can see i get [EMAIL PROTECTED] back from my lookup. compile: run: 2007-07-27 10:31:03.198 java[364] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x10303, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2007-07-27 10:31:03.198 java[364] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider) ClientBean is bound to: [EMAIL PROTECTED] BUILD SUCCESSFUL (total time: 5 seconds) I've searched many forums for this problem. Seems te be an often seen problem. Unfortunately i couldn't find a solution. I hope you can help me to fix this. I'm using Jboss 4.2.0 GA and Netbeans. Thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068224#4068224 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068224 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: ServiceFactoryImpl: deprecated?
JAX-WS is the new direction. I don't know if they're planning on deprecating JAX-RPC support, but if I were you'd I'd move to using JAX-WS instead. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068222#4068222 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Lost the ability to debug - timeout...
Aaaargh - the problem is back! Have no clue as to what caused it to come back - and the steps I took last time did not help this time. When running outside the microcontainer JBoss starts upp in between 40 seconds to 1:20. When running the microcontainer it takes 9-10 minutes! Things are reasonably fast up to the point when the boot reaches this section: | 15:55:22,921 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 15:55:22,921 INFO [UpdateTimestampsCache] starting update timestamps cache at region: cssite_ear,cssite_jar,cssite.org.hibernate.cache.UpdateTimestampsCache | 15:55:22,937 INFO [StandardQueryCache] starting query cache at region: cssite_ear,cssite_jar,cssite.org.hibernate.cache.StandardQueryCache | 15:55:30,859 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer | 15:55:30,953 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=cssite.ear,jar=cssite.jar,name=BillOfMaterialsHome,service=EJB3 with dependencies: | 15:55:37,015 INFO [EJBContainer] STARTED EJB: com.cloudsmith.cssite.entityctrl.BillOfMaterialsHome ejbName: BillOfMaterialsHome | 15:55:37,906 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer | 15:55:37,921 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=cssite.ear,jar=cssite.jar,name=ComponentHome,service=EJB3 with dependencies: | 15:55:42,125 INFO [EJBContainer] STARTED EJB: com.cloudsmith.cssite.entityctrl.ComponentHome ejbName: ComponentHome | i.e. right after schema export. One earlier suspicion was that it had something to do with ports being blocked/used and that it was fighting with some firewall, or other software. Could that theory be true? Or, can you think of something else that would keep the boot very very busy - the cpu is at 100% load and my machine is on its knees when this happens. Suggestions anyone? I really need to solve this problem. I am on JBoss 4.2.1.GA, Seam 2.0 Beta, and on a Windows XP machine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068221#4068221 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068221 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Null value sent by s:link in dataTable
Hi, I have a problem when using dataTable tag, I think it's a newbie error but I can't find it ... What I want : - A list of employees - A link to go to a detailed page of the employee To do this, I have this JSF page : f:view | div class=section | h:outputText value=Aucun employé rendered=#{employes != null and employes.rowCount==0}/ | h:dataTable id=employes value=#{employes} var=emp rendered=#{employes.rowCount0} | h:column | f:facet name=headerID/f:facet | #{emp.id} | /h:column | h:column | f:facet name=headerNom/f:facet | #{emp.nom} | /h:column | h:column | f:facet name=headerPrénom/f:facet | #{emp.prenom} | /h:column | h:column | f:facet name=headerAction/f:facet | s:link id=viewEmploye value=Voir action=#{employeCrud.selectEmploye(emp)}/ | /h:column | /h:dataTable | /div | /f:view | Here's the method selectEmploye in component employeCrud (CONVERSATION scope) : /** | * | */ | public void selectEmploye(fr.horoquartz.t4.core.employe.VOEmploye selectedEmploye) | { | if (selectedEmploye == null) | { | throw new IllegalArgumentException( | fr.horoquartz.t4.gui.employe.EmployeCrudActionBean.selectEmploye(fr.horoquartz.t4.core.employe.VOEmploye selectedEmploye) - 'selectedEmploye' can not be null); | } | try | { | this.handleSelectEmploye(selectedEmploye); | } | catch (Throwable th) | { | throw new fr.horoquartz.t4.gui.employe.EmployeCrudActionException( | Error performing 'fr.horoquartz.t4.gui.employe.EmployeCrudAction.selectEmploye(fr.horoquartz.t4.core.employe.VOEmploye selectedEmploye)' -- + th, | th); | } | } | The list of employees works, but when I click on the action link to select an employee, the selectedEmploye parameter is null ! What am I doing wrong ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068220#4068220 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Multiple component instances or how to use a component multi
Hi all, I really love bijection; it makes things so much easier. However, I have a requirement that makes it somehow hard to use contextual components. Let's suppose we have a Checkout page, were you can enter shipping and a payment addresses. These addresses obviously belong to a model of the same type. Let us further assume, that entering an address triggers some logic (beyond validation) so we need a controller, say: @Name(checkoutAddressController) | public class CheckoutAddressController { | | // maybe a persistence manager | @In SomeService service | | // our model | private Address address; | | // [...] | // some logic, getter / setter etc | | } Now on my checkout page, I want my address forms to have the above controller as a backing bean. So I need two instances of the same component on the same page. From the manual I read that maybe @Role could help here. But if the designer chooses to add another address form, I would have to add another Role. What if the designer wants to add 100 addresses? (yes, he's a maniac) Can composition help? I thought something like this? @Name(checkoutPage) | public class CheckoutPage | { | @In(scope=ScopeType.STATELESS, create=true) | CheckoutAddressController c1; | | @In(scope=ScopeType.STATELESS, create=true) | CheckoutAddressController c2; | | // or even | ListCheckoutController ctls; | | @Create public void create() { | ctls = new ArrayList... | ctls.add(Component.getInstance(checkoutAddressController, ScopeType.STATELESS, true)) | } | } Will this work? Are there other solutions? Am I making things to complicated? Regards Patrick View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068226#4068226 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - How-To specify JDBC queryTimeout
Hi, I tried to find a way to specify the JDBC query-timeout in Jboss configuration files for Jboss Version 3.0.4, but couldn't determine how to do it. For Jboss Version 4.0.3 its possible to use query-timeout60/query-timeout within oracle-ds.xml, but unfortunately I need it for Jboss Version 3.0.4. Maybe there is another way to specify it, e.g. by a system property, but I couldn't find one. The only workaround I see so far, is to explicitly call Statement.setQueryTimeout(timeout) before a query will be executed, but there are hundreds of places where statements are used, so a configuration solution would be prefered. Thank you very much for your help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068209#4068209 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Sending email messages from Seam app + JBPM
lol. you wise guy you .! ../denerio - AT View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068199#4068199 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Access Portal on Intranet
You need to start JBOSS with run.bat -b 0.0.0.0 . JBoss is configured to bind to the local interface by default. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068204#4068204 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: posting data using GET .. instead of POST in jboss portl
ajois4u- Did you try method=GET inside your html form? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068202#4068202 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Using tokens in tomcat / jboss configuration files
Is there a way to preset the target ports / thread information in variables inside run.sh / run.conf respectively in a way that jboss simply replaces tokens inside server.xml and jboss-service.xml ??? point is .. we are looking for a way to share the jboss_home/server directory among several processes. This would imply as well sharing the working directory which would be the follow up question. thanks in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068191#4068191 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068191 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - login logout options
Hi! I'm a web developer from finland and i have been working with Jboss/Seam for 2 months, so i just decided to join this forum, since i was reading on it everyday :D My question is the next one, i want to save some statistics about my users when they log in out into/from the web (like date of login or date of logout, and things like that). For that i create a method that handles the whole process, but my question is how can i call to those methods once the user execute the action of log in or out. I tried with the pages.xml with this code, but doesnt work: anonymous wrote : navigation from-action=#{identity.login} | | redirect view-id=/home/ | Thanks in advance for the answer, and i hope to help with some post aswell in the future! ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068165#4068165 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068165 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Access Portal on Intranet
Have a strange question?! I have started JBoss Portal 2.6.1/JDK6/WinXP SP2! But now I just can connect to Portal over localhost or 127.0.0.1 on local Server but not over Intranet?? Firewall an Server is deactivated and there is no other security available! When starting JBoss WebServer (ohter download) everything is working fine! Does anybody know how configure Portal Server to get access over Intranet?? Thanks a lot Chris View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068164#4068164 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068164 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Links to another jsp-files in portlets
Hi, I have developed a portal with many portlets included. I have tried IPC but I think it is quite hard way to communicate and retrieve data between portlets (or is it?) I have many links in one of my portlet and purpose is to change jsp page and get some parametres to second when user have pressed some link. For e.x. if I have list of customers in one jsp-page -- user selects one of them -- another jsp page shows customers information. Is this possible? Thank you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068163#4068163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068163 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: How to connect my EJB to Firebird database?
The wiki says athttp://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpAFirebirdDatasource to use local-tx-datasource instead of tx-connection-factory and i can confirm that it works this way. I just wonder, is this a bug or a feature? tx-connection-factory seems like more advanced, but it ceased to work with the current Jboss 4.2.1 / Jaybird 2.1.1 -combination... Are there any drawbacks in using the local-tx-datasource? Or should we just forget about this issue? Regards, Marco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068242#4068242 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068242 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Sharing the server/default/deploy directory
Lets assume we have an application which should run on n instances each of them configurable individually. In my understanding it would be enough to have one server/default directory if you could cut off the work, log data directory. This way my proposed directory structure would look like p1 | -- run.sh, run.jar, run.conf, shutdown.sh | -- log | -- work | -- data p2 | -- run.sh, run.jar, run.conf, shutdown.sh | -- log | -- work | -- data p3 | -- run.sh, run.jar, run.conf, shutdown.sh | -- log | -- work | -- data server | -- default | -- deploy | -- config | -- ... The p stands for process. Important to understand is that Im not talking about a CLUSTER but several process simply sharing the same data having different configurations. Does jboss allow this kind of configuration ??? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068218#4068218 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: User authorization in Web Service
Try something like the following in your client: ((BindingProvider)port).getRequestContext().put(Stub.USERNAME_PROPERTY, joe); ((BindingProvider)port).getRequestContext().put(Stub.PASSWORD_PROPERTY, dweeb); I can't recall if this only works with WS-Security ... No, the documentation is not particularly good :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068215#4068215 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:selectDate control within RichFaces Tab
Hi, I had the same problem and it appears to be that the date selection control is rendered underneath the tabPanel. I solved the problem by updating to Seam 2.0.0(beta) which renders this correctly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068214#4068214 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - JMSSecurityException when trying to subscribe to a temporary
Hi, I'm using QueueSession.createTemporaryQueue() and trying to receive messages from this queue. However I'm getting a JMSSecurityException (shown below) at the point where I create a JMS receiver I know that the jbossmq-destinations-service.xml file is used to setup permissions for individual queues, however my question is, how can I configure the permissions dynamically for my temporary queue? javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: JMS_TQ34 at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:141) at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:816) at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:297) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:160) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:356) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068213#4068213 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068213 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: login logout options
Thanks a lot! Il'l try and tell you how it works... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068207#4068207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to support JTA Transaction in tomcat for JBoss cache
I am using hibernate. I am looking to use JTA Transaction because i want to use JBoss tree cache for cluster environment. My hibernate.cfg.xml files contains session-factory java:comp/env/MykDS !-- SQL dialect -- org.hibernate.dialect.MySQLDialect org.hibernate.transaction.JTATransactionFactory java:comp/UserTransaction org.hibernate.transaction.JBossTransactionManagerLookup /session-factory MyDS is defined in config/server.xml by Resource name=MyDS auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=root password=root driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mydb removeAbandoned=true removeAbandonedTimeout=600 logAbandoned=true/ When I start to tomcat, I am facing following exception. How can we use JTATransactions in tomcat. 141640 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost]. /Administration].[Faces Servlet] - Servlet.service() for servlet Faces Servlet threw exception%jav x.naming.NameNotFoundException: Name TransactionManager is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransac ionManagerLookup.java:23) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:325) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.ja a:915) at com.mw.framework.util.HibernateUtil.(HibernateUtil.java:37) Thanks in advance Umar View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068206#4068206 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: JMSSecurityException when trying to subscribe to a tempo
Security is configured on the DestinationManager for temporary destinations. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068247#4068247 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068247 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Null value sent by s:link in dataTable
Most likely, you need to place your table inside of an h:form so the value is actually submitted. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068248#4068248 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068248 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:selectDate control within RichFaces Tab
Hi, I'm using Seam 1.2.1.GA. I had a facelet with an s:selectDate control that worked fine. However i decided to put it within a Richfaces tabPanel and tab, and all of a sudden there is no response from the control when i click it. What do you think i should do? Is it a conflict with Richfaces? In the meantime i've reverted to the previous design but would really love to put the page within a tab. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068186#4068186 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068186 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: UserFriendly URLs: Can we have an '_' instead of '+' in
what is nesessary to integrate an own command mapper? Do I have to re-compile the portal sources for this? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068184#4068184 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068184 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss-4.2.1 - seam-2.0 - myfaces classpath
Hello. Thank you for this workaround. At the moment we use the fck-faces-library which has dependencies to the myfaces-impl. I think, in the future we will change to RI and have to adapt it to RI. Tino View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068183#4068183 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068183 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: login logout options
I think login/logout fires an event that you can catch. For example in components.xml you should have: event type=org.jboss.seam.postAuthenticate | action expression=#{redirect.returnToCapturedView}/ | /event Also, the login method of identity can call a method from a custom component. In components.xml you need : security:identity authenticate-method=#{authenticator.authenticate}/ And declare a method: public boolean authenticate() That will return login successful/unsuccessful. In this method you can log data. Not so sure what to do with the logout but I hope you'll figure it out. Ops, Ricardo was first... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068182#4068182 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068182 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2, pages.xml and pageflow
So I finally fixed my problem. I had to use: | page view-id=/flow/itemSelection.xhtml | navigation evaluate=#{flow.itemSelectionOutcome} | rule if-outcome=listA | redirect view-id=/flow/A/itemSelection.xhtml/ | /rule | rule if-outcome=listB | redirect view-id=/flow/B/itemSelection.xhtml/ | /rule | /navigation | /page | I guess there are quite few changes to make to go from Seam 1.2 to 2.0 but I must say that the navigation model then becomes much cleaner :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068228#4068228 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JPDL editor, for pageflow..
Hey, I downloaded jboss tools from: http://download.jboss.org/jbosstools/builds/nightly/ and created a new Seam Pageflow file, I can see the visual editor, but there's no way to add any params such as redirects/name of pages/transitions/view-id/etc... so I always find myself edit the xml directly, Is that a lack of these must features? or there's a way to graphically edit these attributes through the designer? Thanks, Asaf, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068239#4068239 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BPEL: Creating arrays and unbounded entities.
Hi all: I've noticed that a jira has been opened for this issue ( http://jira.jboss.com/jira/secure/IssueNavigator.jspa?reset=truepid=12310170status=1) I am going to post my comment there. Greetings. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068176#4068176 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068176 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Creating and Updating records in single operation: sensible
Hi I'm interested to hear people's opinions on the way I've implemented a solution. I'd like to know if there's a cleaner or simpler pattern... Requirement: When a user clicks an 'update' button, create a new record in a table and also update an existing record in the same table. The UI page uses h:inputText/ fields. Application flow: 1. User selects an existing record from a CRUD page and is presented with an edit page for a that record 2. User edits some fields of that record and clicks 'update' 3. A new record must be created, which is a copy of the existing record but with any fields the user changed in step 2 upated with those changes 4. Some non-UI fields of the existing record must be changed and the record then updated in the table (this record must otherwise remain unchanged) A solution: Relevant code (abridged for brevity): i. Edit page extract: note: This page is rendered after the user selects a record from a different CRUD page. h:form | | s:decorate id=decoration template=edit.xhtml | h:inputText id=one | value=#{myEntityHome.instance.UIProperty} | a:support event=onblur reRender=decoration | bypassUpdates=true ajaxSingle=true / | /h:inputText | /s:decorate | | h:commandButton id=update value=Update action=#{myEntityHome.update} / | | /h:form ii. Extended Home component: note: a. find() is invoked in step 1 (when the user selects a record on the CRUD page). b. update() is invoked in step 2 (when the user clicks the update button). c. Assume MyEntity is a simple EJB Entity with properties corresponding to those referenced below. | @Name(myEntityHome) | public class MyEntityHome extends EntityHomeMyEntity | | private MyEntity existingEntity; | private ListAssociatedEntityList associatedEntityLists = new ArrayListAssociatedEntityList(); | | @In(create = true) | EntityManager em; | | public ListAssociatedEntityList getAssociatedEntityLists() { | return associatedEntityLists; | } | | @Override | public MyEntity find() { | | // Store the contents of the existing entity | MyEntity myEntity = super.find(); | existingEntity = new MyEntity(myEntity.getId(), | myEntity.getUIProperty(), | myEntity.getNonUIProperty(), | myEntity.getAssociatedEntityLists()); | return myEntity; | } | | | @Begin(join = true, flushMode = FlushModeType.MANUAL) | @Override | @Transactional | public String update() { | | // For step 3 | MyEntity myEntity = createNewEntity(); | | // For step 4: Refresh the existing entity as the user may have changed | // some UI fields, which must not be updated in the db | em.refresh(getInstance()); | | // For step 4 | getInstance().setNonUIProperty(changed); | | entityManager.flush(); | Contexts.removeFromAllContexts(myEntityHome); | return createdAndUpdated; | } | | | private MyEntity createNewEntity() { | | MyEntity myEntity = new MyEntity(); | | // Copy contents of current UI fields into the newly created entity | myEntity.setUIPropertyOne(getInstance().getUIPropertyOne()); | | // Copy contents of non-UI fields into the newly created entity | myEntity.setNonUIPropertyOne(getInstance().getNonUIPropertyOne()); | | // Copy associated entities into the newly created entity | for (AssociatedEntityList ael : associatedEntityLists) | ael.setMyEntity(myEntity); | myEntity.setAssociatedEntityLists(associatedEntityLists); | | return myEntity; | } As you can see, I'm using EntityManager refreshing and manual flushing and am having to make a 'clone' (which could be done by implementing Cloneable instead) of the existing entity in createNewEntity(). Any feedback appreciated... Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068174#4068174 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068174 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: UserFriendly URLs: Can we have an '_' instead of '+' in
Thanks guys... Well coming to command mapper is it a patter that we need to implement or is it hidden some where in the sources of the portal... Also please advice me of how i can get to set the html title name either from a portlet or a portal page. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068237#4068237 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: How to lookup EJB 3 session bean from servlet?
ask in ejb3/servlet forum. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068236#4068236 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Using tokens in tomcat / jboss configuration files
Try setting system properties as part of the command line and using them in the configuration files. For example, to change the port, in run.conf you might have: JAVA_OPTS=-Dmy.port= -Xms. And in server.xml you might have: Connector port=${my.port} address=${jboss.bind.address}. | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068235#4068235 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: trying to access a webservice - not working from either
Thanks Peter, I'll have a play to see if I can work around this, I'll fill you in when I figure it out. I'm on a hibernate course next week so won't be looking at it for a few days. Clare View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068166#4068166 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068166 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Couldn't find process definition
Hi, while trying this code, im getting an exception. Does anyone know about this ? Thanks. Here is the code : GraphSession graphSession = jbpmContext.getGraphSession(); ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition(Acces); ProcessInstance processInstance = new ProcessInstance(processDefinition); Token t = processInstance.getRootToken(); t.signal(); Here is the trace : exception javax.servlet.ServletException: org.jbpm.JbpmException: couldn't find process definition 'demandeAccesVerifUserAlerteRH' org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) caused by org.jbpm.JbpmException: couldn't find process definition 'demandeAccesVerifUserAlerteRH' org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:170) com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151) com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) caused by org.hibernate.exception.GenericJDBCException: Cannot open connection org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426) org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144) org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139) org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547) org.hibernate.loader.Loader.doQuery(Loader.java:673) org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236) org.hibernate.loader.Loader.doList(Loader.java:2220) org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104) org.hibernate.loader.Loader.list(Loader.java:2099) org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378) org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338) org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172) org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121) org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811) org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153) com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151) com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) caused by org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple ac, BasicAction:
[jboss-user] [JBoss jBPM] - can't finished my task
hi everybody. i don't know why i don't successfully finish my task. this is error: | 17:17:13,295 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.T | askNode - this operation breaks == | 17:17:13,374 WARN [RequestProcessor] Unhandled Exception thrown: class org.jbpm | .JbpmException | 17:17:13,389 ERROR [[action]] Servlet.service() for servlet action threw excepti | on | org.jbpm.JbpmException: closed JbpmContext in different order then they were cre | ated... check your try-finally's around JbpmContexts blocks | at org.jbpm.JbpmConfiguration.popJbpmContext(JbpmConfiguration.java:555) | | at org.jbpm.JbpmConfiguration.jbpmContextClosed(JbpmConfiguration.java:5 | 67) | at org.jbpm.JbpmContext.close(JbpmContext.java:144) | at com.WebApplicationWithJbpm.actions.SaveClose.performAction(SaveClose. | java:89) | at com.WebApplicationWithJbpm.actions.BaseAction.execute(BaseAction.java | :17) | at org.apache.struts.action.RequestProcessor.processActionPerform(Reques | tProcessor.java:431) | at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja | va:236) | at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 | 6) | at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) | | 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(Appl | icationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p | rocessConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo | int.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor | kerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | | And i execute this code: | | TaskInstance taskInstance=jbpmContext.getTaskMgmtSession().loadTaskInstance(taskBean.getTaskInstanceId()); System.out.println(task name +taskInstance.getName()); System.out.println(start_date +taskBean.getStart_date()); System.out.println(duree +taskBean.getDuree()); taskInstance.getContextInstance().setVariable(start_date, taskBean.getStart_date()); taskInstance.getContextInstance().setVariable(duree, taskBean.getDuree()); taskInstance.end(); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068260#4068260 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068260 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Messages always persistent in Topic
Of course I want you to answer my questions, I just don't want to be insulted without getting an answer. Okay, if I had read the TuningJBossMQ page I would have known what the problem is: overflow into the database. I didn't look for it since the persisted topic messages led me to believe that JBossMQ ignores the DeliveryMode for some reason. And how am I supposed to know up front which of my questions is an FAQ? A sticky post in this forum might help... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068217#4068217 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: ClassCastException on remote calling of an EJB3.0
First of all thanks for the fast response. I tried the idea you had before. If i search for ClientBean/remote it is shown an error which says that the lookup didn`t work. As far as i can tell the lookup works fine as i get [EMAIL PROTECTED] if i do the lookup without the casting. As i understood this is the reference to my bean. (please correct me if i`m wrong) I also find the Bean in the JMX console of my Application server. So i think it is really the casting that throws the error. Is it possible that some libs are missing? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068266#4068266 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM IDentity
Hi cheets, thanks for your help. Can you elaborate about your solution (table, db, logic ...)? in fact i can choose another way of doing it if its easier (using the jbpm identity module is not mandatory in my app). Regards, O.M. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068208#4068208 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068208 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how can i get current PortalNode
There is any possibility to do it in 2.4.2 version? I am a little scared about you don't anaswer:) Please tell me the easiest way View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068201#4068201 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Messages always persistent in Topic
fljmayer And how am I supposed to know up front which of my questions is an FAQ? A sticky post in this forum might help...[/quote wrote : | | You mean like READ THIS FIRST? :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068246#4068246 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068246 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Queue Loading - OutOfMemory
Have a look at setting the paging params on your queues http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/guide-1.0.1.SP5/html/configuration.html#conf.destination.paging This enables you to limit the number of messages a queue will have in memory at any one time View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068200#4068200 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Remote EJB
Unknown Host exception is the problem. You have to make an entry in the IP host table Depending upon your platform Solaris:- add an entry in the /etc/hosts file # Internet host table | # | 127.0.0.1 localhost | ipaddress chambers since chambers is the unknown host. Windows:- add an entry to the C:\WINDOWS\system32\drivers\etc\hosts again same as the above. You will need to reboot the system for the change to take effect. Regards, Taj View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068284#4068284 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Problem after mcving from 1.3 to 1.4
Ok, that would make sense. I made a change between 1.3.0 and 1.4.0 so it no longer assumes the jndi name is in the java namespace. I'll update the doco appropriately. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068285#4068285 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068285 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] newbie qustion: zombie jboss processes
Hello, I'm running a jboss app-server to host a soap service and a flex app that server data from a mysql-db. The system runs on debian-linux. The hardware is probably too slow to handle the load effectively sometimes. After some time a lot of jboss processes, appear in the process tree. These are sleeping and seem to be hanging. Could the performance limit of the machine be the cause? Furthermore are there settings that can help to solve the problem? Sorry, if these are obvious questions, but I'm new to jboss. I would also appreciate a pointer to an faq or other sources of information. Thank you Jacques ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to define extended PersistenceContext when using Seam in
Hi, When using Seam with EJB3, obviously the way is: | @PersistenceContext(type=EXTENDED) | private EntityManager em; | But what should be done for defining EXTENDED PersistenceContext when using Seam with JPA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068287#4068287 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: ClassCastException on remote calling of an EJB3.0
This is the part where the bean is listed. I hope it`s correct. Global JNDI Namespace +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair) +- jmx (class: org.jnp.interfaces.NamingContext) | +- invoker (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt) | +- rmi (class: org.jnp.interfaces.NamingContext) | | +- RMIAdaptor[link - jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef) +- TEMControlTest (class: org.jnp.interfaces.NamingContext) +- ClientBean (class: org.jnp.interfaces.NamingContext) | +- remote (proxy: $Proxy66 implements interface com.planetactive.ejb.server.ClientRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) +- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory) +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory) Thank you for your help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068276#4068276 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Couldn't find process definition
Hi, thanks for answering. I don't understand, what are you recommanding me to do ? (i tried this with CMTT manager and the same error). lol im not working for the US Army, nor my computer does :) Regards, O.M. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068279#4068279 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: XDoclet broken trying to use JBoss 4.2.1GA and JBoss-IDE
I am also having this exact same problem, does anyone know of a way to resolve this error? Thanks, Chris View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068272#4068272 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: How-To specify JDBC queryTimeout
What does the documentation say? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068245#4068245 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - LDAPExtLoginModule: How to prevent UserPrincipal from being
I've been breaking my head over working around a JBoss Portal bug that prevents access to the dashboard if the Principal has a . (dot). So, I can't use JBoss Portal if I logged in as [EMAIL PROTECTED] or [EMAIL PROTECTED], etc. To be able to workaround this, I need to avoid the addition of the UserPrincipal automatically. What do I need to do to achieve this, and is it even possible? Does JBoss security code use AOP interceptors to do this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068282#4068282 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Couldn't find process definition
I would guess that you can't access ANYTHING in the database via JBPM. Is that possibly true? If so, it looks like some kind of transaction configuration problem, probably in hibernate.cfg.xml. I'm guessing from the error messages that you're using JTA. Just as a test, you might want to fall back to JDBC transactions and see if the problem goes away. If it does, then I'd look at what other resources are participating in the transaction. If you haven't already, be sure to research Could not enlist in transaction on entering meta-aware object!. Sounds like U.S. Army recruitment problems getting folks to go to Iraq... ;-) -Ed Staub View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068267#4068267 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068267 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Breaking Pages.xml into multiple files
I was used to have multiple faces-config.xml files. Now I'm trying to use pages.xml instead and this is also supported for pages.xml? For instance, configuring a pages components that would take a list of pages definition files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068265#4068265 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068265 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: How-To specify JDBC queryTimeout
Hi, I couldn't find an answer in the documentation regarding my question. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068251#4068251 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Null value sent by s:link in dataTable
Well, that's what I did ... In the main.xhtml of Booking example (Seam 1.1.6), there is a s:link which works the same way I tried : a:outputPanel id=searchResults | div class=section | h:outputText value=No Hotels Found rendered=#{hotels != null and hotels.rowCount==0}/ | h:dataTable id=hotels value=#{hotels} var=hot rendered=#{hotels.rowCount0} | h:column | f:facet name=headerName/f:facet | #{hot.name} | /h:column | h:column | f:facet name=headerAddress/f:facet | #{hot.address} | /h:column | h:column | f:facet name=headerCity, State/f:facet | #{hot.city}, #{hot.state}, #{hot.country} | /h:column | h:column | f:facet name=headerZip/f:facet | #{hot.zip} | /h:column | h:column | f:facet name=headerAction/f:facet | s:link id=viewHotel value=View Hotel action=#{hotelBooking.selectHotel(hot)}/ | /h:column | /h:dataTable | s:link value=More results action=#{hotelSearch.nextPage} rendered=#{hotelSearch.nextPageAvailable}/ | /div | /a:outputPanel | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068257#4068257 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068257 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Sequential processing of messages with the same Key
mzeijen wrote : | Doesn't your solution also mean that a subscription can only have one thread to make sure that it processes all the messages sequentially? Because that would indeed be the solution. | That's what I said above in the before you ask post about MDB singletons. Let's say you have 26 durable topic subscriptions one for A, B, C, D, etc. Then you create 26 MDBs to process those messages (single threadedly for each). In a cluster you put the MDB in deploy-hasingleton or use some other mechanism to distribute them across the cluster but making sure the MDB for clients beginning with A only starts on one node. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068254#4068254 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - jbossws 2.0 wsconsume problem
Trying to run wsconsume from 2.0.0.GA I got javax.xml.stream.FactoryConfigurationError: Provider com.ctc.wstx.stax.WstxInputFactory not found so I went and downloaded wstx-lgpl-3.1.2.jar, put in on the classpath and tried again. This time I got: $ wsconsume.sh -v -k wsctx.wsdl JBossWS-Native stack deployed parsing WSDL... Failed to parse the WSDL. Failed to invoke WsImport java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for more information at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:190) at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216) at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79) The verbose switch from the command line does not seem to get passed down to the SunRI code, so I'm stuck. Any ideas? The wsdl is from http://docs.oasis-open.org/ws-caf/ws-context/v1.0/OS/wsctx.wsdl if you want to try it yourself. Thanks Jonathan. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068162#4068162 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068162 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Breaking changes - Seam CVS updated with JBoss Rules 4.0
Do you know what release of Seam this change will be in? My colleague who is developing the rules is bugging me for this upgrade but I'm trying to stick to the releases rather than work from CVS. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068157#4068157 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068157 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Unassign Task
I was searching for a way to return a task to the pooled tasks (ie. unassign it). This works for me and others may find it useful: | jbpmContext.getTaskMgmtSession().loadTaskInstance(taskId).setActorId(null); | where taskId is the id (type long) passed into the method via a request parameter. Would be handy if you could call setActor on the taskInstance returned from the taskInstanceList but it returns org.jbpm.taskmgmt.exe.TaskInstance which as it isn't a Seam component, can't be called from EL. Would be super-handy if you could just call task.unassign() View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068153#4068153 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068153 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Evaluation of action attibute in s:link
I submitted a request in JIRA to add this in the reference manual as a limitation in the expression language enhancements. Here is a link: http://jira.jboss.org/jira/browse/JBSEAM-1733 I think this is the most appropriate thing to do for now... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068147#4068147 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068147 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - web application on several ports
I am trying to deploy serveral web applications , where each of them should be available on different port. e.g. : the Web application should be avalibale on port 8080 http://localhost:8080/Web, and the Web2 application should be avalibale on port 8081 http://localhost:8081/Web2. As I understand - I can not create serveral instances of the tomcat (JbossWeb class) (or can I?) I tried using virtual hosts that will be defined in differnt service sections inthe tomcat configuration file and then direct each web application to the correct virtual host - but JbossWeb ignores the other services. One other idea I had is to direct a host of an Engine to a connector or a connector to serve a host - unfortunately, I don't know if it is possible (if it is - please let me know how) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068142#4068142 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - a4j The conversation [...] was processing another request
When clicking to fast on my ajax-links that calls methods in my backing conversation I get: The conversation ended, timed out or was processing another request What is the best way to avoid this? My user tends to be over achievers who clicks a-lot ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068144#4068144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how can i get current PortalNode
Could you tell me how should looks URI in PortalObjectPermission constructor argument? And how can I have it without CorePortalNode object View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068145#4068145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Tomcat 5.5 - Jbpm 3.2 - Starting failed couldn't get a
Aah, thanks for pointing out that the datasource is commented out. I didn't notice that, and of course that is why I was originally getting the datasource error, which is why I ended up creating the datasource in the first place. Would of been quicker/easier to just comment it out :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068146#4068146 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068146 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to define extended PersistenceContext when using Sea
I think you must use a Seam Managed Persistence Context (SMPC). Actually, I think this is the preferred way even when using EJB3 http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/persistence.html#d0e5466 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068289#4068289 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: richfaces*.jar into where?
jbuechel wrote : | Which richfaces version do you use? | i am using richfaces-3.0.1.jar. There is no more richfaces-3.0.1-SNAPSHOT.jar. that time it was necessary, because 3.0.1 was still in development. But now it is released. Do i have to use only but only richfaces-3.0.1-SNAPSHOT.jar? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068134#4068134 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: c:forEach and h:column
Ok, I'm upping a little this post cause this still doesn't work (arg!). I tried a simplier solution using the [] operator in the JSF. It looks like this : | h:dataTable value=#{TestCrossDataTable.boiteNoireSimple.lineDataModel} var=lineSimple | | c:forEach items=#{TestCrossDataTable.boiteNoireSimple.columnDataModel.wrappedData} var=columnSimple | h:column | | f:facet name=header | h:outputText value=#{columnSimple.columnDesignation} / | /f:facet | | | | h:inputText value=#{lineSimple.cellList[columnSimple.columnId].cellValue.jourSaisieValeur} | converter=javax.faces.Double | /h:inputText | | | /h:column | /c:forEach | | /h:dataTable | I thought it could save my life but no :/ I can iterate normally over cells, and make my dynamic columns, but I still can access ONE TIME only the cell. And I need to access multiple times the object in the cell ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068135#4068135 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068135 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: default values for deployment screen of eclipse designer
Excellent, thankyou, Ross View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068137#4068137 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068137 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user