[jboss-user] [Beginners Corner] - Re: EJB3 JDNI lookup error 'unexpected block data'
rknechtel wrote : I'm having the same problems using JBoss 4.0.4GA EJB 3.0 RC8. | | javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at com.footlocker.client.Client.main(Unknown Source) | Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled) | at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531) | at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628) | at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294) | at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238) | at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494) | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) | at java.rmi.MarshalledObject.get(MarshalledObject.java:135) | at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652) | | | I added the jars suggested but still no go. | And how do you resolve this problem? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996588#3996588 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
May be you can put some security-contraints in your web.xml ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996589#3996589 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBoss Portal - Clustering - Http Session Replication
Hi, I am trying to test HTTP Session Replication feature of JBoss Portal Server. When i downloaded jboss-portal-2.4.1-CR1-bundled.zip i did not find 'all' directory under server folder. So i used JBoss AS 4.0.4 for testing the feature. When i deploy jboss-portal.sar in D:\jboss-4.0.4.GA\server\all\deploy i am getting the following exception. 14:03:53,651 INFO [ServiceConfigurator] Problem configuring service cms.pm.cache:service=TreeCache org.jboss.deployment.DeploymentException: No Attribute found with name: CacheLoaderConfiguration at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:318) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.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:953) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) Will it affect the JBoss portal clustering? Thanks Selva. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996591#3996591 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996591 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Couldn't parse 'bean' into a 'org.jbpm.configuration.Bea
that is indeed a typo and it is fixed in the meantime. don't remember if the fix is already released, though. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996593#3996593 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: help required for JBOSS 4.0.4 GA and EJB 3.0 RC9
I got it resolved. I am pasting the code over here package com.infosys.EJB3.application; import com.infosys.EJB3.application.FacadeRemote; import com.infosys.EJB3.application.FacadeBean; import javax.naming.InitialContext; import java.sql.Timestamp; import java.util.Properties; public class client { public static void main(String[] args) { try { Properties p = new Properties(); p.setProperty(java.naming.factory.initial,org.jnp.interfaces.NamingContextFactory); p.setProperty(java.naming.factory.url.pkgs,org.jboss.naming:org.jnp.interfaces); p.setProperty(java.naming.provider.url,localhost:1099); InitialContext ctx = new InitialContext(p); System.out.println(Got initial COntext +ctx.lookup(FacadeBean/remote)); FacadeRemote lFacadeRemote = (FacadeRemote) ctx.lookup(FacadeBean/remote); System.out.println(Got Facade Remote Bean); // Added lFacadeRemote.checkUserCredential(rama, ramaxyz); System.out.println(user checked); // end //lFacadeRemote.createDepartment(Marketing); /*lFacadeRemote.createDepartment(Administration); lFacadeRemote.createDepartment(Sales);*/ /*lFacadeRemote.assignEmployeeToDepartment(new Long(1),Brijesh,31,M); lFacadeRemote.assignEmployeeToDepartment(new Long(1),,31,M); lFacadeRemote.assignEmployeeToDepartment(new Long(2),,31,M);*/ System.out.println(DONE); } catch(Exception ex) { System.out.println(ex); ex.printStackTrace(); } } } -- The change that I have made is adding the properties instance. I have another file in my directory called jndi.properties, but I still had to put it inside my code. I am not sure why I need to do it since I already have jndi.properties anyways its working fine.. Thanks for the reply.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996595#3996595 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - I have problem to receive complex parameters , BP Interface,
Hi, Could someone help me ? My BP is simple: Interface has doSome(parameter) method, where parameter is complex object. First assign after receive must pass this object to invoke of next webservice without any changes in parameter structure. 1)What should I do? 2)Is there some example? 3)Should I create new Type for this parameter in WSDL of BP? Or I can use type declared in WSDL of webservice, which I'm going to invoke? 4)How should I write assign? Per attribute copy or entire object copy? I'll appreciate any help. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996596#3996596 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: WSRP
The default-wsrp.xml is given below, | ?xml version='1.0' encoding='UTF-8' ? | | deployments |deployment | wsrp-producer | producer-idself/producer-id | expiration-cache120/expiration-cache | endpoint-config | service-description-urlhttp://localhost:8080/portal-wsrp/ServiceDescriptionService/service-description-url | markup-urlhttp://localhost:8080/portal-wsrp/MarkupService/markup-url | registration-urlhttp://localhost:8080/portal-wsrp/RegistrationService/registration-url | portlet-management-urlhttp://localhost:8080/portal-wsrp/PortletManagementService/portlet-management-url | /endpoint-config | /wsrp-producer |/deployment | /deployments View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996598#3996598 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: paginating a datamodel
Dear Norman Richards, can you plz send me a sample code for the EntityQuery, or any hint. other than EntityQuery :) thanx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996599#3996599 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Sending Entities in Messages?
I realize that JBoss/MQ is dead because JBoss Messaging is going to replace it in the upcoming JBoss 5. Are there any good quick-start guides for doing this simple thing? In a regular Java program, I would create a worker thread, but obviously in an enterprise environment, we don't want to create threads. Instead we send messages. I'm just trying to get a very simple example working, of a servlet sending a message to a MDB within the same EAR. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996600#3996600 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Exception on scheduler launch
Hello First of all, sorry for my English, it's not my native language. Now, the problem : I'm using JBPM 3.1.2 with a JBoss 4.0 and I try to make a project on an Eclispe I haven't setup myself (so I don't really know wich plug in is installed). When I try to laucnch the JBPM's Scheduler (using this code in my web.xml) servlet | servlet-nameJbpmThreadsServlet/servlet-name | servlet-classorg.jbpm.web.JbpmThreadsServlet/servlet-class | load-on-startup1/load-on-startup | /servlet | servlet-mapping | servlet-nameJbpmThreadsServlet/servlet-name | url-pattern/threads/url-pattern | /servlet-mapping I receive exceptions on JBoss starting. (In fact, the exceptions appears in loop, so I think JBoss as start, and it's the scheduler which launch the Exception) The exception threw is : | java.sql.SQLException: Can't call rollback when autocommit=true | at com.mysql.jdbc.Connection.rollback(Connection.java:4729) | at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:535) | at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:460) | at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:183) | at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:162) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:154) | at org.jbpm.svc.Services.close(Services.java:211) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:139) | at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79) | 14:29:08,137 INFO [STDOUT] org.jbpm.persistence.JbpmPersistenceException: couldn't rollback hibernate session | 14:29:08,137 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:156) | 14:29:08,137 INFO [STDOUT] at org.jbpm.svc.Services.close(Services.java:211) | 14:29:08,137 INFO [STDOUT] at org.jbpm.JbpmContext.close(JbpmContext.java:139) | 14:29:08,137 INFO [STDOUT] at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:139) | 14:29:08,137 INFO [STDOUT] at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79) | 14:29:08,137 INFO [STDOUT] Caused by: org.hibernate.TransactionException: JDBC rollback failed | 14:29:08,137 INFO [STDOUT] at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:170) | 14:29:08,137 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:154) | 14:29:08,137 INFO [STDOUT] ... 4 more | 14:29:08,137 INFO [STDOUT] Caused by: java.sql.SQLException: Can't call rollback when autocommit=true | 14:29:08,137 INFO [STDOUT] at com.mysql.jdbc.Connection.rollback(Connection.java:4729) | 14:29:08,137 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:535) | 14:29:08,137 INFO [STDOUT] at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:460) | 14:29:08,137 INFO [STDOUT] at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:183) | 14:29:08,137 INFO [STDOUT] at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:162) | 14:29:08,137 INFO [STDOUT] ... 5 more | 14:29:08,137 ERROR [Services] problem closing service 'persistence' | org.jbpm.persistence.JbpmPersistenceException: couldn't rollback hibernate session | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:156) | at org.jbpm.svc.Services.close(Services.java:211) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:139) | at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79) | Caused by: org.hibernate.TransactionException: JDBC rollback failed | at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:170) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:154) | ... 4 more | Caused by: java.sql.SQLException: Can't call rollback when autocommit=true | at com.mysql.jdbc.Connection.rollback(Connection.java:4729) | at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:535) | at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:460) | at
[jboss-user] [Beginners Corner] - ServiveMBean StartUp sequence
Hello, i have develop a ServiceMBean wich is using some EJB´s for initializing, and backup data for a application. My problem is that jboss starts my Service bevore the EJB´s are deployed and so i become a javax.naming.NameNotFoundException: testBeans not bound. When i deploy my Service after jboss has been started, my service works fine. Is there a way to say jboss when to start my Service like depend on etc...? The service should start after deploying the EJB´s. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996603#3996603 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996603 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Jboss messaging not picking up messages
Hi, We are using JDK1.5 and Jboss messaging 1.0.1CR4 in production environment. We are using oracle based message persistence as well. The MDB's pick up the messages properly for 2/3 days and after that messages starts backing up in the JMS_MESSAGE table. The server will continue to process other messages coming in, even when there are bunch of messages stuck in limbo state. The number of messages getting backed up gradually increases, still the MDB ignore those messages and processes other incoming messages. The backed up messages in the table never get processed. Even when we restart the Jboss messaging server, it does not pick up the messages existing in the JMS_MESSAGE table. We need to manually clean up all the messages and do a restart and this means, messages are lost. What we would like to understand is - Why Jboss is backing up messages and is there a way to solve it ? - Is there a way to reset the messages in JMS_MESSAGE table so that they get picked up when we restart the messaging service ? Also at times we get the following exceptions in the Jboss messaging server that is backing up the messages. Not able to reproduce this though, but occurs very randomly. 2006-12-27 17:04:56,054 ERROR [org.jboss.jms.server.endpoint.ServerConnectionEndpoint] Exception occured org.jboss.messaging.core.tx.TransactionException: Failed to remove delivery 1453768 at org.jboss.jms.server.endpoint.ServerConsumerEndpoint$DeliveryCallback.afterCommit(ServerConsumerEndpoint.java:836) at org.jboss.messaging.core.tx.Transaction.commit(Transaction.java:194) at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:410) at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:99) at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aop.Advisor.dynamicInvoke(Advisor.java:723) at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:101) at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:126) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:447) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:534) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:257) 2006-12-27 17:04:56,357 ERROR [org.jboss.jms.server.endpoint.ServerConnectionEndpoint] Exception occured javax.jms.IllegalStateException: Failed to acknowledge delivery null at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.acknowledgeTransactionally(ServerConsumerEndpoint.java:485) at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:768) at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:351) at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:99) at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aop.Advisor.dynamicInvoke(Advisor.java:723) at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:101) at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:126) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:447) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:534) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:257) Any help on this is much appreciated.
[jboss-user] [JBoss Messaging] - Re: Jboss messaging not picking up messages
mgajendr wrote : Hi, | | We are using JDK1.5 and Jboss messaging 1.0.1CR4 in production environment. | Hi mgajendr- 1.0.1.CR4 is not a production release (it's a candidate release) - we strongly suggest you upgrade to 1.0.1.GA.SP2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996606#3996606 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996606 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error
Dunno If it's related to hibernate ot not, maybe. Please tell me if so and I will report the problem to hibernate. Here is more information : if I have a char(X) column in a mysql table which is reverse engineered using generate-entities (which runs successfully) I get these errors in my jboss as output : 11:25:23,740 INFO [SchemaValidator] Running schema validator | 11:25:23,740 INFO [SchemaValidator] fetching database metadata | 11:25:23,763 INFO [TableMetadata] table found: lrb.abocc | 11:25:23,763 INFO [TableMetadata] columns: [dt_bgn_test, dp_rglt_post, dp_use, dt_end_test, nb_div, nb_ren, dt_end, dt_creat, dt_bgn, nb_ofs, tx_tva, mt_ht, dt_modif, ct_pers, ct_ref, ty, lb, ct] | 11:25:23,765 WARN [ServiceController] Problem starting service persistence.units:ear=lrbseamtest.ear,unitName=lrbseamtest | javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: ty, expected: varchar(4) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698) | at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127) | at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | and then at the end : 11:25:26,212 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory | 11:25:26,250 INFO [EARDeployer] Started J2EE application: file:/home/gaboo/progs/jboss-4.0.5.GA/server/default/deploy/lrbseamtest.ear/ | 11:25:26,251 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: persistence.units:ear=lrbseamtest.ear,unitName=lrbseamtest | State: FAILED | Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: ty, expected: varchar(4) | I Depend On: | jboss.jca:service=DataSourceBinding,name=lrbseamtestDatasource | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: persistence.units:ear=lrbseamtest.ear,unitName=lrbseamtest | State: FAILED | Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: ty, expected: varchar(4) | I Depend On: | jboss.jca:service=DataSourceBinding,name=lrbseamtestDatasource View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996607#3996607 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error
one more note : I tried with a char(255) and i get the same error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996608#3996608 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996608 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Sending Entities in Messages?
//use this send the object to the queue public class SendMessagesViaMDB{ //method to get the queue connection public static javax.jms.QueueConnection getQueueConnection( java.util.Hashtable environment ) throws javax.naming.NamingException, javax.jms.JMSException { // Obtain initial context javax.naming.InitialContext initialContext = new javax.naming.InitialContext(environment); try { java.lang.Object objRef = initialContext.lookup(CONNECTION_FACTORY_JNDI_NAME); return ((javax.jms.QueueConnectionFactory) objRef).createQueueConnection(); } finally { initialContext.close(); } } /** * TO BE CALLED IN THE CLIENT SIDE * @param STUFF */ public void sendSTUFFViaMDB(Collection STUFF) { QueueConnection queueConnection = null; QueueSession jmsSession = null; try { queueConnection = getTravelAgentMailingServiceMDBQueueConnection(); jmsSession = queueConnection.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE); QueueSender sender = jmsSession.createSender(getQueueConnection(JNDI PROPS)); // create the message and set the content ObjectMessage message = jmsSession.createObjectMessage(); message.setObject((ArrayList) STUFF) //send the message sender.send(message); sender.close(); log.debug(Message is written to jms queue); } catch (JMSException e) { log.error(Sending message via jms failed, e); } catch (NamingException e) { log.error(Sending message via jms failed,e); } catch(ModuleException moduleException) { log.error(Sending message via jms failed, moduleException); } finally { if (queueConnection != null){ try { queueConnection.close(); } catch (JMSException e) { log.error(Closing jms queue connection failed, e); } } if (jmsSession != null){ try { jmsSession.close(); } catch (JMSException e) { log.error(Closing jms session failed, e); } } } } //THE MDB public class MessagingServiceMDB implements MessageDrivenBean, MessageListener { public void onMessage(Message message){ try { ObjectMessage objMessage = (ObjectMessage)message; ArrayList msgProfiles = (ArrayList)objMessage.getObject(); MyMessageManager manager = new MyMessageManager (); manager.processMessages(msgProfiles); } catch (JMSException jmsException) { + jmsException.getMessage(), jmsException); } catch (Exception exception) { + exception.getMessage(), exception); } } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996602#3996602 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996602 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: document/literal and jboss 4.0.5.GA - No wrapped types
I found the problem. I defined a complex type (UserClass). When there is a byte[] in it (with getter and setter), I get the above Exception for document/literal. When I deploy the Projekt as rpc/literal and with jbossws 1.0.3GA I get a NullPointerException. With jbossws 1.0.4GA it works (only rpc/literal) | @WebMethod | public UserClass getMethods() throws UserException{...} | | public class UserClass implements Serializable{ | | private byte[] bytea = null; | . | . | . | public UserClass { | } | | public byte[] getBytea() { | return bytea | } | | public void setBytea(byte[] bytea) { | this.bytea = bytea; | } | . | . | . | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996609#3996609 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996609 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Identification of classes intercepted by pointcuts
Could you tell me the name of the method or the class where it is declared? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996611#3996611 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996611 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal - Clustering - Http Session Replication
you should download the -ha version of portal and deploy it in the all configuration of an AS 4.0.4 or 4.0.5 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996612#3996612 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996612 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Class not found
Hi Peter, Thanks for your answer. Clear, unambiguous and easy to implement. I like them that way. ;-) Yes, I am running Gentoo. I am just finished updating everything - new gcc (4.1), new kernel (2.6.18), new KDE (3.5.5) and new everything else, including JDK. When I do date on the command line the time is Aussie time, Sydney, as it should be. So, no problem with the system time. I'll post on the Java forums and see what they say. If I get anything back I'll post it here. I made a mistake with the time zone returned; it is not a USA zone but GMT. We are in summer time and 11 hours ahead of GMT. Thanks again. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996613#3996613 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac
How did you determine that it's trying to call a method on the same machine? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996614#3996614 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996614 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: paginating a datamodel
Take a look at the booking example, in particular HotelSearchingAction. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996615#3996615 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996615 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Listing all EJBs through JMX
PeterJ wrote : Also google jboss jmx tutorial. As if existed any. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996616#3996616 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems with Validator and Seam when submit form
Thanks Fábio! I will try this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996617#3996617 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Getting server deployer option in JBoss 2.0 Beta version
Hi, I am new to this group. i have download the JBoss 2.0 Beta version. I import examples given with JBoss starter kit. I opened these examples into JBoss IDE. While deploying the application(src.process), i am getting one option SERVER DEPLOYER. This option was not present in the Demo(http://www.jboss.com/products/jbpm - Have a quick look for yourself section). I am not able to understand what should i write here. I think here i need to give path of JBoss Server. But don't know whether i need to give relative path or absolute path. I am not able to deploy the application. Can anybody help me to figure out this problem. Thanks Vishal View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996618#3996618 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996618 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Open Session in View in EJB3
I have a important doubt on this issue. If I understood correctly from the Jira Issue (EJBTHREE-299), we can only use the Entity Manager in a Open Session in View style if the EJB are @Local, is it? Isn´t there any other option for the @Remote beans? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996621#3996621 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996621 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - getColumnTypeName returns null
I have configured a Datasource to use the Oracle Thin driver. After I run the query, I am using the method resultSetMetaData.getColumnTypeName() to get the native DB datatype. But this returns null. Is there any way to configure the Datasource so that this datatype is populated? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996624#3996624 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996624 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac
If I shutdown the jboss server on local machine, it gives me a socket connection error. Otherwise, it gives an application error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996625#3996625 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996625 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error
report to hibernate tools jira with the (minimal) schema that reproduces the error - thank you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996626#3996626 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996626 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Urgent Help needed..Strange behavior with java client ac
Just following up..I mean when the jboss server is up on the same machine where the client is running, it works. When I shutdown the jboss server on the same machine, i get a socket connection error. Thing is it gets the ejb reference from the remote machine, but when it calls methods on the ejb reference, it calls on the local machine. That is when the socket error is thrown. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996627#3996627 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996627 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: java.lang.NoClassDefFoundError: java.net.SocketAddress
Hi, Does anyone knows about this error: java.lang.NoClassDefFoundError: java/net/SocketAddress at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:41) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.(InitialContext.java:198) at Any kind of input is welcome, please respond as soon as possible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996628#3996628 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996628 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: ClassCastException problem when doing hot redeploy
I have the same problem, but do not go over RMI: | InitialContext jndi; | PortalVisitorStatisticsHome portalVisitorStatisticsHome; | PortalVisitorStatistics portalVisitorStatistics; | | jndi = new InitialContext(); | | portalVisitorStatisticsHome = (PortalVisitorStatisticsHome) jndi.lookup(portal-VisitorStatistics); | When I do hot-redeploy console content is: | 2006-12-28 16:08:33,814 INFO [org.jboss.ejb.EJBDeployer] Undeploying: file:/D:/jboss-4.0.2/server/default/deploy/portal.jar | 2006-12-28 16:08:33,914 INFO [org.jboss.ejb.EjbModule] Undeployed PortalVisitorStatisticsEJB | 2006-12-28 16:08:33,924 INFO [org.jboss.ejb.EjbModule] Undeployed PortalRedirectEJB | 2006-12-28 16:08:33,924 INFO [org.jboss.ejb.EjbModule] Undeployed PortalInteractionEJB | 2006-12-28 16:08:33,934 INFO [org.jboss.ejb.EjbModule] Undeployed PortalSessionEJB | 2006-12-28 16:08:33,944 WARN [org.jboss.deployment.DeploymentInfo] Could not delete file:/D:/jboss-4.0.2/server/default/tmp/deploy/tmp10241portal.jar restart will delete it | 2006-12-28 16:08:34,415 INFO [org.jboss.ejb.EjbModule] Deploying PortalSessionEJB | 2006-12-28 16:08:34,445 INFO [org.jboss.ejb.EjbModule] Deploying PortalInteractionEJB | 2006-12-28 16:08:34,495 INFO [org.jboss.ejb.EjbModule] Deploying PortalRedirectEJB | 2006-12-28 16:08:34,515 INFO [org.jboss.ejb.EjbModule] Deploying PortalVisitorStatisticsEJB | 2006-12-28 16:08:35,076 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-4.0.2/server/default/deploy/portal.jar | And then ClassCastException! I use JBoss 4.0.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996630#3996630 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Class not found
Hi Peter, Here is the solution to the java time problem in Linux. I added one line to my JBoss start-up script and that does it. Here is the whole start-up script: #!/bin/bash | export JBOSS_HOME=/usr/local/jboss-4.0.4.GA | export JAVA_OPTS=-Duser.timezone=Australia/Sydney | /usr/local/jboss-4.0.4.GA/bin/run.sh Another problem bites the dust. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996631#3996631 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Java 1.6 class loading issue?
I took a second look at the related bugs, and found this: anonymous wrote : I am the submitter of the bug. After analysing the related bugs, it seems that this change is an intended change (and not a regression). See the evaluation of bug #6446627 and bug #4872868. It seems that some products have not been updated to take this into account. I saw this while using toplink-essentials for example. I will now file a bug there (with a suggested patch). If this is true, it means that JBoss Remoting needs to be patched. What say you? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996632#3996632 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996632 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal - Clustering - Http Session Replication
Hi, My intention is to test HTTP Session Replication feature. I have downloaded the HelloWorld portlet and added the following code in doEdit() protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException { rResponse.setContentType(text/html); PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(/WEB-INF/jsp/edit.jsp); PortletSession session = rRequest.getPortletSession(); session.setAttribute(Session Replication, Session Replication Value ); prd.include(rRequest, rResponse); } And in doView() i am printing value of the session variable protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException { rResponse.setContentType(text/html); String sYourName = (String) rRequest.getParameter(yourname); if(sYourName != null) { rRequest.setAttribute(yourname, sYourName); PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(/WEB-INF/jsp/view2.jsp); PortletSession session = rRequest.getPortletSession(); System.out.println( SESSION NAME doView + session.getClass().getName()); System.out.println( HTTP Session Replication Value + session.getAttribute(Session Replication)); I have deployed this war file along with jboss-portal-ha-2.4.0 and deployed in all folder. I am running run -c all in 2 machines in the same network. I am using load balancer to route the HTTP request to 2 machines. doEdit() HTTP request is going to JBOSS in machine 1 and it is adding the value in session. After adding the value in the session i bring down machine1. So the next HTTP request, doView() is going to Machine2. But the value in the session variable is coming as null in machine 2. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996635#3996635 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
I find that page actions in pages.xml work much better for that type of control than interceptors. See the DVD Store for an examples. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996636#3996636 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: geam-gen generate-entities error
In the meantime you can turn schema validation off in your persistence.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996637#3996637 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996637 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Fail-over not happening for DB Stored Procedure
I am using JBoss 4.0.5. My cluster contains 2 nodes on different App servers on different boxes. I am invoking a Oracle stored procedure through JDBC. The call to stored procedure is from a simple POJO. The problem is, when the active node fails during the execution of the Stored Procedure, the stored procedure is not recovered when the second node takes-over. The invoked request just hangs and there is no trace of it in the second node. From the DB side I observed that the SP execution was also incomplete. Other database interactions (like select, updates etc) are being handled properly. I have tried all means that I could - but in vain. Any help would be greatly appreciated! -Thanks much- View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996638#3996638 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: processdefinition and sub-process - autoupdate
Hi deploy first the subprocess and then deploy the parent process, it works fine, it don't matter which of both you update. jainer e. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996640#3996640 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996640 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trinidad + Tomahawk + Seam + A4J
Just a note that I think this problem is more directly related to Trinidad + A4J than it is to tomahawk. I've read elsewhere that re-ordering the web.xml (to adhere to the spec) may help but that has not resolved this issue. Removing the following from faces-config.xml get's rid of the error, but of course Trinidad components no longer work. default-render-kit-idorg.apache.myfaces.trinidad.core/default-render-kit-id View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996641#3996641 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996641 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - No success running jboss
Hi, I am trying to start jboss with no success. I am using the target Jboss environment which was built using mvn. The same target is running with no error on my colleague computers. The error I got (full log can be found in the end of the message): 15:57:03,296 DEBUG [PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_MES SAGES ( MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), M ESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) ) java.sql.SQLException: Table already exists: JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESS AGES] at org.hsqldb.jdbc.Util.throwError(Unknown Source) at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source) at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedState ment.java:95) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedSta tement.java:251) at org.jboss.mq.pm.jdbc2.PersistenceManager.createSchema(PersistenceManager.java:277) at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1796) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at 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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) at org.jboss.system.ServiceController.start(ServiceController.java:435) at org.jboss.system.ServiceController.start(ServiceController.java:435) at org.jboss.system.ServiceController.start(ServiceController.java:435) at org.jboss.system.ServiceController.start(ServiceController.java:435) at org.jboss.system.ServiceController.start(ServiceController.java:435) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.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(ModelMBeanOperationInterce ptor.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 $Proxy35.start(Unknown Source) at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at
[jboss-user] [JBoss Portal] - Re: modifying the jboss portal programatically with portal c
[EMAIL PROTECTED] wrote : If you are using a web application you should look at the file WEB-INF/jboss-portlet.xml of portal-core.war which provides the capability to inject services in the servlet context of the web application Ok, so I use the tag in WEB-INF/jboss-portlet.xml. But then I can only reach these defined services through the portletcontext in a portlet class. I am using Seam which has its own generic portlet (I hope to be able to use that as far as possible). Is there no way for me to inject the entire PortalObjectManagerBean in my seam context or do I have to mime its behavoiur in my own service class? Maybe this is a question for the seam forum? (although its got to do with portal core) Fredrik View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996643#3996643 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - execution pointcut....class context?
My question is if I have an example class like this: class A { |private Log objLog; | |public A(String logFile){ | objLog = new Log(logFile); |} | |//some methods | } And I have a pointcut like this in my jboss-aop.xml file: pointcut name=logObject expr=execution(public Log-new(..))/ Is there any way to know, in my Interceptor class by the method invocation, the class where It is invoked the contructor of the Log object (in this example class A)? I ask this because if I use a pointcut like: pointcut name=logObject expr=call(public Log-new(..))/ I have a NullPointerException in method _getInstanceAdvisor() that I think is an internal error of Jboss AOP library. I use Java 1.5 and Jboss AOP 1.5.2 GA with load time weaving an -javaagent option enabled. Is there anyone with this problem? Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996644#3996644 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996644 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: twiddle + java.lang.ClassNotFoundException: org.jboss.ma
hi, thanks for the tip. I managed to get through with the initial error of both twiddle.log and ClassNotFoundException. Now when i execute the command : anonymous wrote : twiddle.sh -s jnp://10.10.25.40:1099 get jboss.management.local:name=ejb/SeakeyIncomingMessageParser,J2EEServer=Local,EJBModule=SeaKeyBackEndModule.jar,J2EEApplication=ejb.jar,j2eeType=StatelessSessionBean stats i get the following error anonymous wrote : 14:27:19,874 ERROR [Twiddle] Exec failed | javax.management.InstanceNotFoundException: jboss.management.local:name=ejb/SeakeyIncomingMessageParser,J2EEServer=Local,EJBModule=SeaKeyBackEndModule.jar,J2EEApplication=ejb.jar,j2eeType=StatelessSessionBean stats is not registered. | at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:508) | at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:651) | at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:251) | at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:164) | at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805) | at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406) | at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) | at sun.rmi.transport.Transport$1.run(Transport.java:153) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Transport.java:149) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) | at java.lang.Thread.run(Thread.java:595) but if i execute the command anonymous wrote : sh twiddle.sh -s jnp://10.10.25.40:1100 get jboss.management.local:name=ejb/SeakeyIncomingMessageParser,J2EEServer=Local,EJBModule=SeaKeyBackEndModule.jar,J2EEApplication=ejb.jar,j2eeType=StatelessSessionBean i get the output. now my question is how to get stats for a particular module regards Prashant View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996646#3996646 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996646 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Portal Layout XML - *-layouts.xml
Hello, There is no DTD or XSD available for portal-layouts.xml, right? I saw mention of portal-layouts.dtd in file LayoutDeployment.java but no sign of this file anywhere. FWIW, it would be 'nice' in the documentation to define all possible tag names, attributes, and their meanings in addition to the examples. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996647#3996647 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Help With EJB 3 JBoss 4.0.5
I have to admit that web projects according to the JavaEE5 spec will make the JSP EL language unusable, so it is better to keep web projects in 2.4. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996648#3996648 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996648 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
thanks norman richards for help i have tried the same thing as told by u but it has some problem This is my entry in the page.xml page view-id=/secretquestions.jsp action=#{SecretQuestionsAction.checkLoggedIn} / here is my checkLoggedIn function... public String checkLoggedIn(){ boolean isLoggedIn = sessionContext.get(loggedIn)!=null; if (isLoggedIn){ return null; // Go to secretquestions.jsp. }else{ return loginpage; // go to login page. } } when it returns null it does not open secretquestions.jsp it opens the login page. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996649#3996649 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - JBoss Cache vs AS CMP caching.
Cant I get all the benefits of caching by using cmps, accessing via their primaryKey and letting the AS do the caching, without having to write container specific code to put things into and take things out of a cache ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996650#3996650 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996650 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - please help mysql datasource timeout problem
Hello, I am using jboss 4.0.2 with a MySQL datasource (shown below) that has the idle-timeout-minutes property set to 10. But, after 8 hours of server uptime, I receive the following error when using connections from this datasource: Communications link failure due to underlying exception: | | ** BEGIN NESTED EXCEPTION ** | | java.io.EOFException | | STACKTRACE: | | java.io.EOFException | at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1913) | at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2304) | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803) | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665) | at com.mysql.jdbc.Connection.execSQL(Connection.java:3176) | at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1153) | at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1266) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:296) | at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:118) | at org.hibernate.loader.Loader.getResultSet(Loader.java:1239) | at org.hibernate.loader.Loader.doQuery(Loader.java:374) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:210) | at org.hibernate.loader.Loader.loadEntity(Loader.java:1312) | at org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:116) | at ... I know that this error will occur if a connection in the pool has been idle for more than 8 hours [default setting] because the underlying connection will go stale. My datasource file is shown below: datasources | local-tx-datasource | transaction-isolationTRANSACTION_READ_COMMITTED/transaction-isolation | jndi-namejdbc/MySQLDB/jndi-name | connection-urljdbc:mysql://localhost/db_name?autoReconnectForPools=truedumpQueriesOnException=trueuseServerPrepStmts=false/connection-url | driver-classcom.mysql.jdbc.Driver/driver-class | user-name/user-name | password/password | idle-timeout-minutes10/idle-timeout-minutes | min-pool-size0/min-pool-size | max-pool-size25/max-pool-size | | exception-sorter-class-namecom.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter/exception-sorter-class-name | metadata | type-mappingmySQL/type-mapping | /metadata | /local-tx-datasource | /datasources I should never have a connection lasting longer than 10 minutes, right? I understand that it might be a bit longer than that because the checker runs on a time interval that is half of the lowest idle-timeout-minutes but, not 8 hours... I would really appreciate any advice you might have to offer. I have searched and searched for a possible cause and have not found any. Thank you very much. Joe Hudson View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996651#3996651 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
Are you hitting /secretquestions.seam directly?Make sure you are returning the value you think you are, and check that you don't have some other actions or navigation rules interfering. The basic mechanism works exactly as shown above. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996653#3996653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
Here's a trivial example I just test. I generated a stub seam-gen app and add two pages: private.xhtml and nope.xhtml. I attached a page action to private.xhtml: (this is equivalent to adding the action to pages.xml) private.page.xhtml | !DOCTYPE page PUBLIC | -//JBoss/Seam Pages Configuration DTD 1.1//EN | http://jboss.com/products/seam/pages-1.1.dtd; | | page action=#{check.check} / | Check.java: | package example; | | import org.jboss.seam.annotations.*; | | @Name(check) | public class Check { | @RequestParameter | String secret; | | public String check() { | return secret==null ? /nope.xhtml : null; | } | | } /private.seam shows the content of the nope page and /private/seam?secret= shows the content of the private page. Hope that helps in your debugging effort. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996658#3996658 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: WSRP
Where is your oracle producer defined? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996660#3996660 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Transaction is not active after rollback
Hi, Our EJB app contains a servlet which runs a number of daemon threads on startup. Threads access entity beans that use common JDBC connections pool. I'm observing strange problems in the following scenario: - daemon calls entity bean finder - (due to our bug) finder generates NPE and fails As far as I can see it all happens without a TX context, so there's nothing to rollback. - another daemon thread tries to get a connection from the pool but hits Transaction is not active. It looks like some connection in the pool gets 'broken', daemon threads can't ever get DB connections after this. Here's a relevant stack trace: anonymous wrote : | 2006-12-27 14:43:29,158 ERROR [jb.plugins.LogInterceptor] TransactionRolledbackException in method: public abstract java.util.Collection com.supportwizard.dml.interfaces.SWRecordHome.findByTableAndFieldValue(com.supportwizard.seance.Seance,java.lang.Long,java.lang.String,java.lang.Object) throws javax.ejb.FinderException,java.rmi.RemoteException, causedBy: | java.lang.NullPointerException | at java.lang.StringBuffer.(StringBuffer.java:104) | at com.supportwizard.db.SQLBase.prepareColumnName(SQLBase.java:179) | at com.supportwizard.db.SQLBase.prepareWhere(SQLBase.java:100) | at com.supportwizard.db.SQLText_mysql.getQueryText(SQLText_mysql.java:133) | at com.supportwizard.db.SQLText.getQueryText(SQLText.java:121) | at com.supportwizard.db.SWInternal_SQL.sqlQuery(SWInternal_SQL.java:470) | at com.supportwizard.db.SWInternal_SQL.sqlQuery(SWInternal_SQL.java:447) | at com.supportwizard.utils.ejb.SWBMPEntityBean.genericMultiFind(SWBMPEntityBean.java:957) | at com.supportwizard.utils.ejb.SWBMPEntityBean.genericMultiFind(SWBMPEntityBean.java:920) | at com.supportwizard.utils.ejb.SWBMPEntityBean.genericMultiFind(SWBMPEntityBean.java:865) | at com.supportwizard.utils.ejb.SWBMPEntityBean.genericMultiFind(SWBMPEntityBean.java:834) | at com.supportwizard.dml.ejb.SWRecordBean.ejbFindByTableAndFieldValues(SWRecordBean.java:447) | at com.supportwizard.dml.ejb.SWRecordBean.ejbFindByTableAndFieldValue(SWRecordBean.java:401) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceManager.java:632) | at org.jboss.ejb.plugins.BMPPersistenceManager.findEntities(BMPPersistenceManager.java:335) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntities(CachedConnectionInterceptor.java:242) | at org.jboss.ejb.EntityContainer.find(EntityContainer.java:706) | at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.invocation.Invocation.performCall(Invocation.java:359) | at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1130) | at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189) | at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105) | at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134) | at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76) | at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378) | at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107) | at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:514) | at org.jboss.ejb.Container.invoke(Container.java:975) | at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at
[jboss-user] [JBoss AOP] - Re: Identification of classes intercepted by pointcuts
Ok, I go to look some technique to load all the classes View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996662#3996662 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
i cannot understood hitting page directly . if you mean that i am accessing by typing URL in the browser then it works fine it goes to login page(as i am not logged in) but when a login and goes to admin page given below and try to access the sceretquestion.jsp it still goes to login page. i have cleared all the navigations from faces-config.xml and i only have one action as told before in my pages.xml here is my jsf page: %@ taglib uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % %@ taglib uri=http://jboss.com/products/seam/taglib; prefix=s % Administrator Console f:view h:form h:commandButton id=secquestion value=Secret Question action=/secretquestions.jsp/ h:commandButton id=pricingops value=Pricing Options action=/pricingoptions.jsp/ h:commandButton id=organization value=Organizations action=/customerorganizations.jsp/ h:commandButton id=categories value=Categories action=/ h:commandButton id=role value=Roles action=/roles.jsp/ h:commandButton id=privileges value=Privileges action=/privileges.jsp/ h:commandButton id=paymodes value=Payment Modes action=/ h:commandButton id=currencies value=Currencies action=/ /h:form /f:view View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996663#3996663 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - HotSwap in JBoss AS
This code is enough for hotswap to function in the JBoss Application Server ? | # Setup JBoss sepecific properties | | #JAVA_OPTS=-Dprogram.name=$PROGNAME $JAVA_OPTS -javaagent:/opt/jboss/bin/aspectjweaver.jar | | JAVA_OPTS=-Dprogram.name=$PROGNAME $JAVA_OPTS -javaagent:/opt/jboss/bin/pluggable-instrumentor.jar=-hotSwap | | The code below run normally but the pointcut introduced does not have effect | try { | | AdviceBinding binding = new AdviceBinding(call(public $instanceof{aspects.dataManagement.util.SystemRecord}-new(..))+ | | AND !within($instanceof{aspects.dataManagement.AbstractDataCollectionCustomization}), null); | | binding.addInterceptor(SimpleInterceptor.class); | | AspectManager.instance().addBinding(binding); | | System.out.println(sucess); | | } catch (ParseException e) { | | // TODO Auto-generated catch block | | e.printStackTrace(); | | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996664#3996664 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectItems+ajax4jsf
atzbert wrote : Are there any news here? I experienced this issue now twice, with ajax4jsf and icefaces... :( After some work, I found a solution to the problem. It isn't from the selectItem tag. It is a problem of using ajax4jsf with jsf and seam together. To make it work you must use the region and page ajax4jsf's tags. The tag page must go after the jsf view tag. This is due a problem of ajax4jsf and myfaces. More explanation of this is found in the ajax4jsf page. Then put the combo between the region tag. If you want to refresh something outside of the region, you have to set the option renderRegionOnly to false Here is the code that worked for me. | f:view | a4j:page | h:outputText id=titulo value=#{msg.titulo_registro} / | h:form id=formRegistro | a4j:outputPanel id=mensajesErrorPanel styleClass=error | divh:messages id=mensajesError //div | /a4j:outputPanel | s:validateAll | h:panelGrid id=panelGrid columns=2 | h:outputText id=etiquetaUsuario value=#{msg.socio} / | a4j:region id=regionUsuario | s:decorate | h:inputText id=inputUsuario value=#{cliente.usuario} | size=30 required=true | a4j:support id=soporteAjaxUsuario event=onblur | reRender=errorUsuario / | /h:inputText | a4j:outputPanel id=errorUsuario styleClass=error | s:message id=mensajeErrorUsuario / | /a4j:outputPanel | /s:decorate | /a4j:region | h:outputText id=etiquetaContraseña value=#{msg.contraseña} / | a4j:region id=regionContraseña | s:decorate | h:inputText id=inputContraseña value=#{cliente.pwd} | size=30 required=true | a4j:support id=soporteAjaxContraseña event=onblur | reRender=errorPassword / | /h:inputText | a4j:outputPanel id=errorPassword styleClass=error | s:message id=mensajeErrorContraseña / | /a4j:outputPanel | /s:decorate | /a4j:region | h:outputText id=etiquetaPais value=#{msg.pais} / | a4j:region id=regionPaises renderRegionOnly=false | s:decorate | h:selectOneMenu id=seleccionarPais | converter=#{registro.countryConverter} required=true | value=#{cliente.country} | si:selectItems value=#{paises} var=pais | label=#{pais.countryCode} | noSelectionLabel=#{msg.selecionePais} hideNoSelection=true/si:selectItems | a4j:outputPanel id=errorPais styleClass=error | s:message id=mensajeErrorPais / | /a4j:outputPanel | a4j:support id=soporteAjaxPais event=onchange | reRender=seleccionarEstado, mensajeErrorPais | action=#{registro.cambiarEstados} / | /h:selectOneMenu | /s:decorate |
[jboss-user] [Installation, Configuration Deployment] - netboot with apache server
I installed JBoss 4 and 5 using JDK 1.5 and 1.6, and having an unzipped jboss distribution in an apache served DAV-enabled directory. But the startup fails to deploy any service that is not an xml file. I presume my webdav configuration could be broken, or netboot support is broken, or another thing I struggle to find. Can anyone help, what the problem might be? sh run.sh --netboot=http://localhost/dav/jboss-4.0.5.GA/ ... 17:10:18,981 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc. 17:10:18,981 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0-b105,Sun Microsystems Inc. 17:10:18,981 INFO [ServerInfo] OS-System: Linux 2.6.18.2-34-xen,i386 ... 17:10:36,144 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 17:10:36,167 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- [EMAIL PROTECTED] { url=http://geek1/dav/jboss-4.0.5.GA/server/default2/deploy/jboss-aop.deployer/ } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: http://geek1/dav/jboss-4.0.5.GA/server/default2/deploy/jboss-aop.deployer/ altDD: null lastDeployed: 1167325830899 lastModified: 1167325829000 mbeans: [EMAIL PROTECTED] { url=http://geek1/dav/jboss-4.0.5.GA/server/default2/deploy/jboss-bean.deployer/ } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: http://geek1/dav/jboss-4.0.5.GA/server/default2/deploy/jboss-bean.deployer/ altDD: null lastDeployed: 1167325830900 lastModified: 1167325829000 mbeans: ... many more not deployed services . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=399#399 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=399 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
I do not believe that you are clicking on that link and returning null and somehow landing on a third (login) page. Either you are not actually returning null from the login check or you something else besides what you are showing that is interfering. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996667#3996667 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996667 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
i shall be trying to debug by making some dummy application and the proceeding to my application hopefully reaching to the problem. But however thanks again for your help norman richards. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996669#3996669 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996669 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
if (isLoggedIn){ System.out.println( Returing null); return null; // Go to secretquestions.jsp. }else{ return loginpage; // go to login page. } well i have Returing null String displayed on my console so i its abvious that it is returning null output. i think i have do start from dummy application to debug it whats your suggestion View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996670#3996670 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996670 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Spring deployer + webcontext
Hello there! I'm checking the spring deployer and ejb3 integration. Is it also possible to integrate it with the web container? I mean, have it injected inside the servletcontext so other frameworks like Tapestry and JSF could benefit from its integration with spring? Regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996671#3996671 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Struts and EJB
I am trying to evaluate JBoss eclipse IDE. We are currently using WSAD. WSAD support rapid development and deployment for Struts and EJB. But unlike WSAD JBoss is free. So switching into JBoss is worth eventhough there is a learning curve in the beginning. But I was wondering if JBoss eclipse IDE supports Struts and EJB. Can somebody help? Also can somebody suggest a good book or other document to learn this IDE and JBoss server? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996672#3996672 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: my login method is accessed twice
Can you not use a different application policy for your own logincontext.login() than the one specified for your web application? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996674#3996674 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996674 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Http Session Replication - JBoss Portal - No ClassLoaders fo
Hi, Followed the below links for testing JBoss Portal clustering. http://docs.jboss.org/jbportal/v2.4/reference-guide/en/html/clustering.html http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss AS - jboss-4.0.4.GA Portal - jboss-portal-ha-2.4.0 Apache - apache_2.2.3 mod-jk - mod_jk-apache-2.2.3.so I started 2 instances of JBoss AS in a same machine and in two differenct nodes. This is the code snippet inside HelloWorldPortlet | protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException | { | rResponse.setContentType(text/html); | PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(/WEB-INF/jsp/edit.jsp); | | PortletSession session = rRequest.getPortletSession(); | session.setAttribute(Session Replication, Session Replication Value ); | | prd.include(rRequest, rResponse); | } | | And in doView() i am printing value of the session variable | | protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException | { | rResponse.setContentType(text/html); | | String sYourName = (String) rRequest.getParameter(yourname); | | if(sYourName != null) | { | rRequest.setAttribute(yourname, sYourName); | PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(/WEB-INF/jsp/view2.jsp); | | PortletSession session = rRequest.getPortletSession(); | System.out.println( SESSION NAME doView + session.getClass().getName()); | System.out.println( HTTP Session Replication Value + session.getAttribute(Session Replication)); | doEdit() HTTP request is going to JBOSS Node1 and it is adding the value in session. After adding the value in the session i bring down JBoss Node1. So the next HTTP request, doView() is going to Machine2. But the value in the session variable is coming as null in machine 2. Whenver the HTTP request is going to Node2 session is being newly created instead of replicating the session. This is the console view | | D:\CLUSTERPOC\jboss-4.0.4.GA\binrun -c ports-01 | === | . | JBoss Bootstrap Environment | . | JBOSS_HOME: D:\CLUSTERPOC\jboss-4.0.4.GA\bin\\.. | . | JAVA: D:\Program Files\Java\jdk1.5.0_06\bin\java | . | JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInter | val=360 | . | CLASSPATH: D:\Program Files\Java\jdk1.5.0_06\lib\tools.jar;D:\CLUSTERPOC\jboss-4.0.4.GA\bin\\run.jar | . | === | . | 21:55:34,684 INFO [Server] Starting JBoss (MX MicroKernel)... | 21:55:34,684 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000) | 21:55:34,700 INFO [Server] Home Dir: D:\CLUSTERPOC\jboss-4.0.4.GA | 21:55:34,700 INFO [Server] Home URL: file:/D:/CLUSTERPOC/jboss-4.0.4.GA/ | 21:55:34,700 INFO [Server] Patch URL: null | 21:55:34,700 INFO [Server] Server Name: ports-01 | 21:55:34,700 INFO [Server] Server Home Dir: D:\CLUSTERPOC\jboss-4.0.4.GA\server\ports-01 | 21:55:34,700 INFO [Server] Server Home URL: file:/D:/CLUSTERPOC/jboss-4.0.4.GA/server/ports-01/ | 21:55:34,700 INFO [Server] Server Log Dir: D:\CLUSTERPOC\jboss-4.0.4.GA\server\ports-01\log | 21:55:34,700 INFO [Server] Server Temp Dir: D:\CLUSTERPOC\jboss-4.0.4.GA\server\ports-01\tmp | 21:55:34,700 INFO [Server] Root Deployment Filename: jboss-service.xml | 21:55:35,106 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc. | 21:55:35,122 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc. | 21:55:35,122 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 | 21:55:35,700 INFO [Server] Core system initialized | 21:55:38,450 INFO [ServiceBindingManager] Initializing store | 21:55:38,450 INFO [ServiceBindingManager] Using StoreURL: file:/D:/CLUSTERPOC/jboss-4.0.4.GA/docs/examples/binding-manager | /sample-bindings.xml | 21:55:39,263 INFO [WebService] Using RMI server codebase: http://PCIIB06854:8183/ | 21:55:39,294 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml | 21:55:39,653 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1199, RMI=/0.0.0.0:1198, backlog=50, no client SocketFactory | , Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory | 21:55:45,419 INFO [AspectDeployer] Deployed AOP: file:/D:/CLUSTERPOC/jboss-4.0.4.GA/server/ports-01/deploy/jboss-portal-ha | .sar/portal-aop.xml | 21:55:45,981 INFO [TreeCache] interceptor chain is: | class org.jboss.cache.interceptors.CallInterceptor | class org.jboss.cache.interceptors.PessimisticLockInterceptor | class
[jboss-user] [Jboss Seam] Transactions
Hi all, Hi all, I'm struggling with transaction-rollback in Seam for nearly two days straight now, tried everything, but it just don't seem to work. I found a very nice overview of the possibilities, here: http://svn.nuxeo.org/nuxeo/ECMPlatform/NXCore/trunk/doc/Transactions.txt I tried the different steps, but none work/worked for me. Please help me out, info follows: #My Seam action bean## @Stateful @Scope(CONVERSATION) @Name(register) public class RegisterAction implements IRegister { @In(create=true) @Out private Person currentUser; @In(create=true) @Out private LoginEntity loginEntity; @In private EntityManager em; //-CONSTRUCTORS- public RegisterAction() { } @Rollback(ifOutcome= {failure}) @End public String register() { try { this.em.persist(this.currentUser); this.em.persist(this.loginEntity); //this one throws an Exception } catch (Exception e) { return failure; } return success; } @Remove @Destroy public void destroy() { } } As you can see, I try to persist two objects, the first one succeeds (and is persisted in the DB), the second one doesn't and throws an exception, causing the method to return failure and should rollback, but it doesn't: the first objects gets persisted in the DB, but it should't, because of the rollback. The two entity beans are two regular, session-scoped beans with nothing specific in them (I think). Please help me out. If you need more info (web.xml, persistence.xml, ...) just ask. Bram ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Spring deployer + webcontext
You can look at the integration with AOP - which is already used in SpringDeployer, but on EJB enterprise beans - how to include similar thing to servlets. The JEE5 spec also supports EJB injection into servlets, but I don't know how far are we with this at JBoss - I know EJB3 team already did some stuff in that direction. Ask on the EJB3 forum about this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996676#3996676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Problem with Dom libs when deploying
hello I'm getting stuck with lib problemswhen deploying my EAR, especially one of its containing WAR, I got this error : javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized. Actually, my ear contains its own dom4j impl, but I don't want Jboss to parse with it when performing server specific jobs...what can I do ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996677#3996677 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Listener for starting a process instance
Hi, i'd like to know if and how is it possible to implement a listener (jms or file) capable of starting a process instance. This listener should be deployable through jboss-jbpm standard tool Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996679#3996679 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - IDE Trailblazer?
This has been unavailable for upwards six months now. Does anyone have any idea when there will be one? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996680#3996680 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: ServiveMBean StartUp sequence
I am having a similar problem. Right now I just catch the null pointer exception, log it, and sleep. That seems hokey. Is there an event or state somewhere I can test for? Or, I guess specifying the Service bean to start after the EJBs are available would be ok too. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996683#3996683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [J2EE Design Patterns] - Re: How to configure the number of consumers (MDB) in a Queu
You may use container-configuration Singleton Message Driven Bean if already available in your JBoss version. To check, look into $JBOSS_HOME/server/?/conf/standardjboss.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996684#3996684 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: my login method is accessed twice
No.. I initialize the LoginContext with the same application policy name as in the sample above (i.e. emp-mft). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996685#3996685 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Remove item from CMR
Calling mover.remove() should be enough. The row in the database is deleted and the object is removed from the collection. You don't have to remove the object from the collection first. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996687#3996687 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - bookmarkable page with cid problem
I have a bookmarkable page that is opened through s:link. the action method is annoated with @Begin(join=true) in a conversation scoped bean. The s:linke generated url has a parameter cid=2. When I restart my browser and paste the url, I get an error saying that conversaton can't be found and direct me to the home page. Is it possible to ask Seam to create a new conversation in this case? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996688#3996688 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: page opened through s:link doesn't support ajax4jsf ?
anyone knows? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996689#3996689 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Programmaticaly create queue
Do i need to migrate to JBoss Messaging from JBoss MQ to create the queues programatically ?? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996691#3996691 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: deployment steps of jms
I have moved this thread to JBoss Messaging Users, as it was origainlly posted into developer's forum. Please, Take a look at Chapter 5 and 6 on the documentation, and let us know if you still have specific question after that: http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/guide-1.0.1.SP2/html/installation.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996692#3996692 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Lookup Values in ComboBoxes
Is there an annotation for attributes on Collections that makes the Collection usable for dropdowns, so that it fills the combobox with values, and when a user selects one it gets associated to another attribute of the class. Kind of like @DataModel and @DataModelSelection So far i have set the Collection to be Outjected, but don't know where to go from there. Maybe just point me to the chapter in any seam documentation. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996693#3996693 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Portal Layout XML - *-layouts.xml
I managed to find this: jboss-portal-2.6.0-DR1-src/core/src/resources/dtd/portal-layouts_2_0.dtd View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996694#3996694 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996694 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Rich UI Form
So I have a stateful session bean for my page, and in the page users will enter new objects into a collection. But I want the user to stay on the same page while they enter more records. I can have a @Begin to start, and I have a save and cancel button that goes to @End methods. I could add a Save - Continue button that will save but not end the conversation. Is this a good design, or does anyone have better ideas for these type of applications, before adding Ajax functionality to it. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996695#3996695 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - JAAS: Where do I begin?
[JAAS-RAGE]I have been googling the whole day trying to figure out how to get started with JAAS on JBoss. I already know the non-JAAS stuff, such as annotating session bean methods with roles. I thought I would be able to write my own username/password authentication in a stateless session bean and have it create a stateful session bean with the appropriate role (or should I say Principal), but there seems to be know way to programmatically set the role. Roles seem to be only statically defined. So I am at the mercy of JAAS. But there is absolutely no useful documentation that explains how to use username/password authentication to set the Principle (or whatever it is called). I have looked at the article referenced in the sticky, but all it does is give the inner workings down to every minute detail of how JBoss implements JAAS, whereas all i need is the 5 or so lines that show me how to use it. Does such documentation exist? I also need to know how to actually create usernames/passwords/roles from an admin perspective. There seems to be absolutely zero information about this. It seems like only the implementors of JAAS know how to use JAAS. Or maybe they don't, because if they did then they would probably write a proper tutorial on how to use it (rather than having us indulge their egoes by sifting through reams of waffle only to find nothing useful). It seems like my best option right now would be to screw the 50 layers of abstraction i have to cut through to use this and implement security myself. Unless someone can point me in the right direction. [/JAAS-RAGE] View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996697#3996697 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Dynamicity - without the admin portlet
I'm not sure what XML file i have to edit to change the default portal's pages and portlet arrangement. I have to set up the portal including many portal pages and custom portlets on quite a few different machines and i dont want to have to login and spend an hour settingup the whole portal in the admin tool each time. Can someone point me in the right spot? I know its probably really easy, i just cant find it. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996705#3996705 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996705 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Lookup Values in ComboBoxes
Hi, for Collections usable for dropdowns, @Factory and @Unwrap is the one I can think of. For a selection in a drop down, I don't believe there's an annotation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996703#3996703 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Exception by getting a reference to the ConnectionFactor
once I changed the order of jboss-messaging-client.jar in the classpath, it cleared the issue. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996702#3996702 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996702 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Messaging NotFoundInDispatcherException
I just switched from messaging 1.0.1CR5 to 1.0.1SP2 because the old version would consistently silently stop sending messages on certain queues under load. Now with SP2 I get an error on my client, but nothing on the server. After 20-60 minutes of running under load, I get the following exception on one of my clients. I'm not sure how to pull this out into a test case since it is a large code base, but any ideas on what could cause this? org.jboss.aop.NotFoundInDispatcherException: Object with oid: -2147483628 was not found in the Dispatcher at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:85) at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:127) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:1014) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:508) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:645) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:293) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:172) at org.jboss.remoting.Client.invoke(Client.java:607) at org.jboss.remoting.Client.invoke(Client.java:599) at org.jboss.jms.client.delegate.DelegateSupport.invoke(DelegateSupport.java:111) at org.jboss.jms.client.delegate.ClientSessionDelegate$acknowledge_354868566256058116.invokeNext(ClientSessionDelegate$acknowledge_354868566256058116.java) at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:182) at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117) at org.jboss.jms.client.delegate.ClientSessionDelegate$acknowledge_354868566256058116.invokeNext(ClientSessionDelegate$acknowledge_354868566256058116.java) at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69) at org.jboss.jms.client.delegate.ClientSessionDelegate$acknowledge_354868566256058116.invokeNext(ClientSessionDelegate$acknowledge_354868566256058116.java) at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107) at org.jboss.jms.client.delegate.ClientSessionDelegate$acknowledge_354868566256058116.invokeNext(ClientSessionDelegate$acknowledge_354868566256058116.java) at org.jboss.jms.client.delegate.ClientSessionDelegate.acknowledge(ClientSessionDelegate.java) at org.jboss.jms.client.container.SessionAspect.handlePostDeliver(SessionAspect.java:218) at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect6.invoke(SessionAspect6.java) at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java) at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:182) at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117) at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java) at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69) at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java) at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107) at org.jboss.jms.client.delegate.ClientSessionDelegate$postDeliver_5319211143798977162.invokeNext(ClientSessionDelegate$postDeliver_5319211143798977162.java) at org.jboss.jms.client.delegate.ClientSessionDelegate.postDeliver(ClientSessionDelegate.java) at org.jboss.jms.client.remoting.MessageCallbackHandler.postDeliver(MessageCallbackHandler.java:162) at org.jboss.jms.client.remoting.MessageCallbackHandler.receive(MessageCallbackHandler.java:448) at org.jboss.jms.client.container.ReceiverAspect.handleReceive(ReceiverAspect.java:63) at org.jboss.aop.advice.org.jboss.jms.client.container.ReceiverAspect24.invoke(ReceiverAspect24.java) at org.jboss.jms.client.delegate.ClientConsumerDelegate$receive_N8299950230150603585.invokeNext(ClientConsumerDelegate$receive_N8299950230150603585.java) at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:182) at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117) at org.jboss.jms.client.delegate.ClientConsumerDelegate$receive_N8299950230150603585.invokeNext(ClientConsumerDelegate$receive_N8299950230150603585.java) at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69) at
[jboss-user] [EJB/JBoss] - Re: CMP EJB Issue when connect to SQL Server
Which table is jboss trying to create here? Does it contain a file named user? user may be a reserved word fos MS SQLServer. You should try something like username or user_id. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996699#3996699 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996699 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Store pdf files in the database
We have an antity storing an excel file in database. The field is declared as following: /** * @ejb.interface-method * @ejb.persistence * column-name=losgr_attachment * sql-type=BYTE * jdbc-type=LONGVARBINARY * @return Returns the losgrAttachment. */ public abstract java.lang.Object getLosgrAttachment(); /** * @ejb.interface-method * @param losgrAttachment The losgrAttachment to set. */ public abstract void setLosgrAttachment( final java.lang.Object losgrAttachment ); The database field is of type byte (Informix DB) or blob (Oracle 9i). The parameter given to the setter is of type byte[]. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996698#3996698 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: question on JBoss Classpath JBossWS4EE
would you use the WSTool to generate the stubs ? The following article seems to indciate you are able to generate WSDL files out of java code, but not the other way around : http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch12.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996713#3996713 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Starnge exception
The problem is related to the parameters the createPingTest method (at line 123) is passing to Class.forName. Could you post the contents of the createPingTest method, and identify line number 123. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996716#3996716 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: NumberFormatException From StubExt.PROPERTY_CLIENT_TIMEO
which version of JBoss appserver are you running on ? I have JBoss 4.0.0, and its client libraries doesnt event seem to include: org.jboss.webserivce.client.Stub View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996715#3996715 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: twiddle + java.lang.ClassNotFoundException: org.jboss.ma
The quotes go around only the object name - move the method name out of the quotes. Like this: twiddle.sh -s jnp://10.10.25.40:1099 get jboss.management.local:name=ejb/SeakeyIncomingMessageParser,J2EEServer=Local,EJBModule=SeaKeyBackEndModule.jar,J2EEApplication=ejb.jar,j2eeType=StatelessSessionBean stats View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996717#3996717 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - PageNavigationInterceptor (2.6 DR1) - NullPointerException
Hello, I added a simple portal (.war) to my jboss-portal 2.6 DR1 installation - when I visit the portal page, I get: | 15:29:13,714 ERROR [PortalServlet] Unexpected exception | java.lang.NullPointerException | at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.ensurePageNavigationalState(PageNavigationInterceptor.java:257) | at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:99) | at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:68) | at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:56) | at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:160) | at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:85) | at org.jboss.portal.core.controller.CoreController.handle(CoreController.java:192) | at sun.reflect.GeneratedMethodAccessor341.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.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.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287) | at $Proxy157.handle(Unknown Source) | at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:134) | at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:67) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:85) | at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38) | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:118) | at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49) | at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N514360653004530.invokeNext(TransactionInterceptor$invoke_N514360653004530.java) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275) | at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N514360653004530.invokeNext(TransactionInterceptor$invoke_N514360653004530.java) | at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java) | at
[jboss-user] [JBoss Portal] - Re: Dynamicity - without the admin portlet
Look at jboss-portal.sar/conf/data/default-object.xml. Also, the Test page is defined at jboss-portal.sar/portal-samples.war/WEB-INF/default-object.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996721#3996721 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996721 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: ERROR [[jsp]] Servlet.service() for servlet jsp threw ex
Hello Tomcat Team, Can i have any comments on the above query please View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996720#3996720 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Jboss Seam App + Portal Installation
First U have to create an empty database, for example jbossportal Configure your datasource more or less like this (depending on the db u r using, in this case im using mysql) ?xml version=1.0 encoding=UTF-8? local-tx-datasource jndi-namePortalDS/jndi-name connection-urljdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=falsejdbcCompliantTruncation=false/connection-url driver-classorg.gjt.mm.mysql.Driver/driver-class user-nameroot/user-name admin /local-tx-datasource - Copy the data source to your Jboss AS deploy folder - Copy the jboss-portal.sar to your Jboss AS deploy folder (the jboss-portal.sar Im using is the one included in the jboss-portal-2.4.0.zip) Greetings :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996724#3996724 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to force Logging for page access ??
Are you sure you don't have some other navigation rule or action involved here? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996725#3996725 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996725 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Object level validation
I am creating JPA/EJB3 entity objects, and am using Hibernate Validation annotations for some basic constraints. And I definitely like how this validation framework is leveraged by Seam -- DRY! But how can I best provide semantic object level validation? For example, imagine that I have a Bond class with several properties for creating the coupons: | @Entity | public class Bond | { | /** Primary key id */ | @Id | @GeneratedValue | private int id; | | @NotNull | @Temporal(TemporalType.DATE) | private Date issueDate; | | @Temporal(TemporalType.DATE) | private Date datedDate; | | @Temporal(TemporalType.DATE) | private Date firstCouponDate; | | @Temporal(TemporalType.DATE) | private Date penultimateCouponDate; | | @Temporal(TemporalType.DATE) | private Date maturityDate; | | @Column(columnDefinition = tinyint) | @Enumerated(EnumType.STRING) | private CouponFrequency couponFrequency; | | @Column(length = 13) | @Enumerated(EnumType.STRING) | private AccrualMethod accrualMethod; | } | I need the capability to validate the bond object to ensure the following: | * issueDate maturityDate | * issueDate firstCouponDate | * issueDate penultimateCouponDate | * datedDate firstCouponDate | * datedDate maturityDate | * datedDate penultimateCouponDate | * firstCouponDate penultimateCouponDate | * firstCouponDate maturityDate | * penultimateCouponDate maturityDate | And this is just the tip of the iceberg. (Note that there are seemingly redundant checks listed because most of the columns are nullable.) What is the best practice for enforcing object level validation? I'm looking for a strategy whereby a validation routine could be executed to create a list of invalid values, which them Seam could report to the user -- just like other Hibernate Validation annotation restrictions like @Min, @Max, @Range, etc. Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996727#3996727 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Task Nodes into SuperState
is possible put TaskNodes into SuperStates? i'm getting this error when the processDefinition shown below is running in the jbpm-server error | type Exception report | | message | | description The server encountered an internal error () that prevented it from fulfilling this request. | | exception | | javax.servlet.ServletException: org.apache.jasper.JasperException | javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) | org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55) | org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83) | org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | | root cause | | javax.faces.FacesException: org.apache.jasper.JasperException | org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) | org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) | org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) | org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55) | org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83) | org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | | note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs. | processdefinition | ?xml version=1.0 encoding=UTF-8? | | process-definition xmlns= name=SuperSt | start-state name=start | transition name= to=super1/task1/transition | /start-state | | super-state name=super1 | | task-node name=task1 | task name=d / | transition name= to=../end1/transition | /task-node | /super-state | | end-state name=end1/end-state | | /process-definition | -- thks and Merry Xmas from Argentina View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996730#3996730 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - JBossWS vs JBoss WS4EE
according to the JBoss webservice stacks table : http://wiki.jboss.org/wiki/Wiki.jsp?page=WebServiceStacks It indicates that for my version of Jboss appserver (4.0.0) We are using the JBossWS4EE stack, NOT the JBossWS. The reason is that I remembered downloading JBossWS at http://labs.jboss.com/portal/jbossws/downloads This should not be used and installed on my JBoss 4.0.0 env, right ? Also, is JBossWS4EE an additional download on top of the JBoss 4.0.0 download ? I don't think so because I cant find such links and JBoss 4.0.0 already has a jboss-ws4ee.sar under the direcotry. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3996734#3996734 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user