[jboss-user] [JBoss Seam] - [tooling] "seam generate-entities" does not seem generating
Hi folks, I have a database which contains 20+ existing tables and wanted to use "seam generate-entities" to get the object models quickly. I used the seam-gen tool step by step as described in the Seam 1.2.1 GA documentation but did not get the java files as expected. Here is the shell output: | [EMAIL PROTECTED]:~/sd/lib/jboss-seam-CVS.20070417$ ./seam generate-entities | Buildfile: build.xml | | validate-workspace: | | validate-project: | | generate-entities: | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering) | [hibernate] 1. task: hbm2java (Generates a set of .java files) | [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment | [hibernate] INFO: Hibernate 3.2.0.cr5 | [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment | [hibernate] INFO: hibernate.properties not found | [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment buildBytecodeProvider | [hibernate] INFO: Bytecode provider name : cglib | [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment | [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.reveng.OverrideRepository addFile | [hibernate] INFO: Override file: /home/ningning/sd/project/seam/EatSmart-alpha/resources/seam-gen.reveng.xml | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure | [hibernate] INFO: Using Hibernate built-in connection pool (not for production use!) | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure | [hibernate] INFO: Hibernate connection pool size: 20 | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure | [hibernate] INFO: autocommit mode: false | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure | [hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/iEat | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure | [hibernate] INFO: connection properties: {user=ningning, password=} | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: RDBMS: MySQL, version: 5.0.38-Debian_1-log | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ ) | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.dialect.Dialect | [hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory | [hibernate] INFO: Using default transaction strategy (direct JDBC transactions) | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup | [hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Automatic flush during beforeCompletion(): disabled | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Automatic session close at end of transaction: disabled | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: JDBC batch size: 15 | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: JDBC batch updates for versioned data: disabled | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Scrollable result sets: enabled | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: JDBC3 getGeneratedKeys(): enabled | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Connection release mode: auto | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Default catalog: # | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Maximum outer join fetch depth: 2 | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Default batch fetch size: 1 | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Generate SQL with comments: disabled | [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings | [hibernate] INFO: Order SQL updates by primary k
[jboss-user] [Remoting] - Re: exceptions on ejb invocations using rmi over http
anonymous wrote : | Is there a way to access the originally thrown exception on the client? | Please see section "5.4.13. Exception handling for web based clients" of the Remoting documentation. anonymous wrote : | Is there a way to access the originally thrown exception on the client? Are there other ways to access ejbs over http without using webservices? | The Remoting HTTP transport has, in effect, a standalone web server on the server side. It borrows some code from Tomcat, but it doesn't need a running instance of Tomcat. Please see section "5.4.8. HTTP Invoker" for more information. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039710#4039710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039710 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: What is the difference between EJB and POJO transactions
"[EMAIL PROTECTED]" wrote : It's not the default behavior. The default behavior is to flush a persistence context (translation: dirty check objects, generate and execute SQL DML) when a transaction commits. | | If you use Hibernate as your JPA provider, you can enable FlushModeType.MANUAL when you begin a conversation, so that the persistence context bound to that conversation is only flushed when you call entityManager.flush(). | | Please also read the Seam documentation, I'm basically quoting verbatim. | What U mean Christian, in EJB U can also disable auto flush and set to manual. in persistence.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039712#4039712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039712 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simplest usage
Hello petemuir, I've tried the SFSB version too, no error but still the same. Can U help? package myapp; | | import javax.ejb.Remove; | import javax.ejb.Stateful; | | import org.jboss.seam.annotations.Begin; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.End; | import org.jboss.seam.annotations.Name; | | @Stateful | @Name("admin") | public class Admin implements AdminI { | private byte[] uploadedFile; | | public void setUploadedFile(byte[] uploadedFile) | { | this.uploadedFile = uploadedFile; | } | | public byte[] getUploadedFile() | { | return uploadedFile; | } | | @Begin | public void start() | { | System.out.println("Start conversation"); | } | | @End | public void parse() throws Exception | { | if(uploadedFile != null) | System.out.println("size = " + uploadedFile.length); | else | System.out.println("picture is null"); | } | | @Destroy @Remove | public void destroy() {} | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039713#4039713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Make a
what is custom process? and custom forms ARE in 3.2... so I do not understand your point View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039714#4039714 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039714 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: questions about GPD
installing the plugin in eclipse is real simple... I do not see a problem at all here View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039715#4039715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM books
designer of what? processes? Lot's of good courses on that separate of jBPM View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039716#4039716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Compression in Remoting
Hi Hasan, Based on the previous thread that you mentioned, I'm afraid that the CompressingMarshaller/UnMarshaller must be broken, and I haven't had the opportunity to find out why. The socket transport prefixes each request and response with a version byte, and if you see a message complaining about an incorrect version, it probably means that that the CompressingUnMarshaller is returning in incorrect byte. If you can figure out why the CompressingMarshaller/UnMarshaller isn't working, that would be great. -Ron View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039717#4039717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - xhtml and ©
Hi, if I write in the .xhtml file in output html is not rendered. © element too. I tried , , XML CDATA but with no success. Know anybody how to display HTML entities ? Thanks Mila View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039718#4039718 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039718 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Buddy Replication on Weblogic
I have configured two weblogic admin servers on the same machine. A sample application (the one posted on JBoss site, JBoss and Weblogic) using JBossCache is deployed on both these app servers. When Buddy replication is not configured, the contents are replicated. But when buddy replication is enabled at that time, contents are not replicated immediately and there is no specific time interval observed when contents are replicated. If I access application-1 on admin server and put something into cache and then try to view the cache contents from application-2 on other admin server, they are not reflected there. Please find the configuration file that I am using. Another thing I observed is I get following error on application startup === ===2007-04-23 12:11:49,143 ERROR [org.jboss.cache.transaction.DummyTransactionManager] ([ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)') binding of DummyTransactionManager failed | javax.naming.OperationNotSupportedException: bind not allowed in a ReadOnlyContext; remaining name '/TransactionManager' | at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:145) | at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSupportedException(ReadOnlyContextWrapper.java:161) | at weblogic.jndi.factories.java.ReadOnlyContextWrapper.bind(ReadOnlyContextWrapper.java:57) | at weblogic.jndi.internal.AbstractURLContext.bind(AbstractURLContext.java:45) | at javax.naming.InitialContext.bind(InitialContext.java:359) | at org.jboss.cache.transaction.DummyTransactionManager.getInstance(DummyTransactionManager.java:33) | at org.jboss.cache.DummyTransactionManagerLookup.getTransactionManager(DummyTransactionManagerLookup.java:17) | at org.jboss.cache.TreeCache._createService(TreeCache.java:1393) | at org.jboss.cache.TreeCache.createService(TreeCache.java:1378) | at org.jboss.cache.example.j2eeservices.JBossCacheManager.main(JBossCacheManager.java:74) | at org.jboss.cache.example.servlet.CacheServlet.init(CacheServlet.java:29) | at javax.servlet.GenericServlet.init(GenericServlet.java:256) | at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276) | at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) | at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) | at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68) | at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) | at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48) | at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504) | at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1698) | at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1675) | at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1595) | at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2734) | at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:892) | at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336) | at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) | at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) | at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) | at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) | at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) | at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) | at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) | at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) | at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26) | at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641) | at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) | at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229) | at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154) | at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) | at weblogic.deploy.internal.targetserver.BasicDeploym
[jboss-user] [JBoss jBPM] - Re: The error of datasource
I can ensure the ds.xml is not the cause of this problem . I copied from JBOSS_HOME/docs/examples/jca/postgres-ds.xml, and modified . Thank you . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039720#4039720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039720 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - basic question
hi, i don't understand docs: "Seam serializes processing of concurrent requests that take place in the same long-running convesation context, in the same process." Can any one explain me in points, how to well form app, to prevent app from concurent requests? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039722#4039722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.
I followed this steps, but wsconsume generate only 2 class: the interface and the class which implement it. I create the web.xml, generate the war file, and when I put it in jboss I obtain this: 09:39:15,267 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4. 0.5.GA/server/default/deploy/WPM3.war org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nest ed throwable: (org.jboss.ws.WSException: Cannot find required security resource: WEB-INF/wsse.keystore) So, I create an empty file called wsse.keystore, and I obtain this: 09:40:26,803 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4. 0.5.GA/server/default/deploy/WPM3.war org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nest ed throwable: (org.jboss.ws.WSException: Cannot find required security resource: WEB-INF/wsse.truststore) So, I create an empty file called wsse.truststore, and I obtain this: 09:45:19,415 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4. 0.5.GA/server/default/deploy/WPM3.war org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nest ed throwable: (org.jboss.ws.WSException: Cannot find port in wsdl: {http://local host:8080/WPM3}wpmPort) Can you help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039723#4039723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - c3p0 connection not being involved in business transaction?
I am using JBoss4 with c3p0 datasources connecting to MySQL 5 DB. I have recently realised that all c3p0 connections are not managed by business transaction. So if in my SessionBean I'm obtaining c3p0 DS connection (by lookup in JNDI) and then calling setRollbackOnly() on this session context, the DB transaction is not being rolled back. I am very surprised - when I replace this DS with standard local-tx-datasource it works perfectly - by calling ctx.setRollbackOnly() DB transaction is being rolled back. Cannot find any way to specify which transaction manager c3p0 should use. And actually I believe described behaviour doesn't conform to J2EE 1.4 spec - specification says that every JDBC connection obtained from JNDI inside business transaction should be controlled by this transaction. Can you help me? Is C3P0 capable of joining the business transaction? Configuration of C3P0 DS I'm using is: | | | | java:XXXDS | jdbc:mysql://localhost:3306/dbXXX | com.mysql.jdbc.Driver | XXX | XXX | 1 | 30 | 1000 | false | | false | 0 | XXX | | false | 60 | 1 | 60 | 3 | 0 | 0 | 0 | 3 | | true | false | false | jboss:service=Naming | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039724#4039724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem by inserting of entities
Hi, I use JBoss Seam 1.2.1 GA, Jboss 4.0.5 GA and JSF for one project. I have made one new Session bean for inserting/deleting some data in/from database. It's look something like this: | | @Stateless | @Name("initialize") | public class InitializeData implements Initialize | { | @PersistenceContext | private EntityManager em = null; | | public void insertData() | { | try | { | | PriceCategory cat1 = new PriceCategory("Old", new BigDecimal(3.2)); | PriceCategory cat2 = new PriceCategory("New", new BigDecimal(5.2)); | | em.persist(cat1); | em.persist(cat2); | | em.flush(); | } | catch(Exception e) | { | e.printStackTrace(); | } | } | But when I call this method from JSF, I get always this exception by first em.persist()-call: | | 09:27:45,078 INFO [STDOUT] Hibernate: insert into PriceCategory (priceCategoryId, name, dailyFee, optLock) values (null, ?, ?, ?) | 09:27:45,093 WARN [JDBCExceptionReporter] SQL Error: -104, SQLState: 23000 | 09:27:45,093 ERROR [JDBCExceptionReporter] Unique constraint violation: SYS_CT_61 in statement [insert into PriceCategory (priceCategoryId, name, dailyFee, optLock) values (null, ? | , ?, ?)] | 09:27:45,093 ERROR [STDERR] javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not insert: [model.PriceCategory] | 09:27:45,093 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:622) | 09:27:45,093 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218) | | I don't really understand what happend there. Perheps my entity bean PriceCategory: | | @Entity | @Table(name = "PriceCategory") | @Name("pricecategory") | public class PriceCategory implements Serializable { | | @Id | @GeneratedValue(strategy=GenerationType.IDENTITY) | @Column(name = "priceCategoryId") | private Integer id; | | @Column(name = "name", nullable = false, length = 20, unique=true) | private String name; | | @Column(name = "dailyFee", nullable = false, precision = 4, scale = 2) | private BigDecimal dailyFee; | | @Version | @Column(name = "optLock") | private Integer version; | ... | | I am really stuck at this point and without data in database cann't do anything more. Could anyone give me some hint for get over it? Thanks a lot for every help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039725#4039725 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039725 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Assign a generic sub-process task in the parent process?
The only option that seems doable is | | | | : | So, I've issued a feature request to allow for setting Actor or Swimlane on process level: JBPM-955. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039726#4039726 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem by inserting of entities
My best bet is that insertData() gets called multiple times. How is it invoked? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039727#4039727 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Does Seam support EAR-scoped persistence units?
Hi, we are currently setting up the base structure for a bigger project. We want to use an EAR-scoped persistence unit, i.e. a jar-file in the lib folder of the EAR. Can anybody tell me if Seam supports this? I am currently not sure about the criteria Seam uses to decide which artefact in an EAR must be scanned for Seam components. Thanks for any hints. -- Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039728#4039728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039728 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Out of Memory Leaks
Try using JRocket. Permgen issues are tricky and are a real problem for apps like yours that load and reload a zillion classes. Someone else can probably go into the details but JBoss isn't alone, for a quick fix grab the latest R27.2 JRocket release. JRocket handles permgen differently than Sun's JVM. No settings to tweak and generally no permgen problems either. Be sure and grab the latest, I had problems with the prior version. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039729#4039729 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039729 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Un expected behavior observed with Token details
For our Application we have defined a Process Definition which consists of States. When a Process Instance is created of this Process Definition and the workflow is initiated, The Root Token flows throw the Workflow (which may result in the creation of Child Tokens) and these tokens will eventually stop or halt at certain states. The states they reside on is decided by certain parameters and the path followed by the token. After the successful execution of a Process Instance we have a necessity to know the state (i.e. State Name) in which the token has halted. So we firstly find the Process Instance we require, get the Root Token, and then get the children of this Root Token. We then use the Token Class method getNode().getName(), which will return the Node Name on which this Token resides. Expected Behavior: This value of getNode().getName() can never be null as the Token has to be on a State at the point when the execution has completed successfully. Deviation: The State is returned as null, thus resulting in a NULLPOINTEREXCEPTION. On later inspecting the database we found that in the table JBPM_TOKEN where the details of the token are stored, the column value of Node for this particular token is NULL. We have attached an Excel Sheet with the details of this table and have highlighted the NULL field. I have exported database details for JBPM_TOKEN to an spreadsheet which depicts null value under the NODE_ column I intended to attach the excel sheet but couldn't find a way to attach to this message. Can any one help in: 1) for attaching the spread sheet 2) to find the solution for NODE_ attribute becoming NULL. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039730#4039730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM too slow due to too mnany process instance
Could you explain me the system of indexes, I'm not an expert in data bases View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039731#4039731 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039731 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EAR scoped persistence unit
Hi, does JBoss EJB 3 support EAR scoped persistence units? I am not finished with testing. But currently I get the impression that the may entites.jar in the lib-folder of my EAR is ignored. Thanks for any hints. -- Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039732#4039732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
About your second problem: s:button does not submit the form. I also found out the hard way that objects passed using enhanced EL are not set then either. Try using a h:commandButton, which does submit the form. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039733#4039733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
About your second problem: s:button does not submit the form. I also found out the hard way that objects passed using enhanced EL are not set then either. Try using a h:commandButton, which does submit the form. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039734#4039734 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Out of Memory Leaks
Hi , Thnx for this tip ... Can i have a link to this jrocket ? Thnx again View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039735#4039735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039735 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: What is the difference between EJB and POJO transactions
EJB 3.0 does not support disabling automatic flushing of the persistence context. This was one of the questionable changes forced into the specification by certain experts. The PC is always flushed automatically if there is a commit, the only way to prevent it is complicated auto commit mode. Or the Hibernate setting that is also available in Seam. As soon as other JPA providers also add this essential feature, Seam will support that too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039736#4039736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039736 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM too slow due to too mnany process instance
come on please use your favourite search engine for this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039738#4039738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039738 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Buddy Replication on Weblogic
I am using JBossCache-1.4.1.SP3 and weblogic9.2 on windows machine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039737#4039737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Un expected behavior observed with Token details
1: impossible, publish it somewhere and post the link 2: please state which jbpm version, which database, a unit test demonstrating the behaviour etc...etc...etc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039739#4039739 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: The error of datasource
the error indicates otherwise. Can you post the ds.xml inside quote tags? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039740#4039740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Question : seam and fine grain url control (regular expr
"petemuir" wrote : Use the urlrewrite filter (see the wiki in cvs for an example) or a page action. I think a page action is not sufficient for what I'm trying to do ... I'm sorry but I dont know what that "wiki in cvs" is (?) ... but maybe you're talking about http://tuckey.org/urlrewrite/ ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039742#4039742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam
Are you using EJB3 timers? If so, then the EJB3 implantation version will have been changed from 4.0.5 to 4.2.0.CR2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039743#4039743 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039743 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityHome question
Hi, I'm trying to "veto" an update in MyHome by overriding the update() method like this: | public String update() { | if(!valid()) { | return null; | } | return super.update(); | } | My problem here is that the "UPDATE" request to the database is issued even if ''super.update()'' never is called. Is there anyway to stop the "UPDATE" from being issued or do I have to solve this by not using the Home infrastructure ? /Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039744#4039744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039744 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Out of Memory Leaks
Got it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039745#4039745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: xhtml and ©
Facelets parses xml, which doesn't support html named entities, so use numeric entities instead. This has been discussed exhaustively on the facelets list, so ifyou want more details, take a look there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039746#4039746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Does Seam support EAR-scoped persistence units?
"tnfink" wrote : I am currently not sure about the criteria Seam uses to decide which artefact in an EAR must be scanned for Seam components. The existence of a seam.properties file in the root of the archive. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039747#4039747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityHome question
By this point the model has been updated. A flush occurs as EJB3 automatically flushes the PC at method boundaries, you can turn this off by using a flushMode=MANUAL conversation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039748#4039748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - where can I download portal 2.6.CR1
where can I download portal 2.6.CR1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039749#4039749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: NegotiateKerberos
You have to put negotiate.jar | negotiate-src.jar | | | to lib folder of your server View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039750#4039750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JBoss AS
Hi, maybe this is little of topic, but i want to start JBoss AS in debug mode on linux to debug my seam app, and here is problem. How can I start debug ver. on linux? In windows we have run.bat/debug.bat but for linux is only run.sh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039752#4039752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss AS
Look in run.conf and uncomment the relevant line View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039753#4039753 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
anonymous wrote : also i'm just trying to optimize my database table, but theres nothing to performance persist into table, for select there is so many performance tuning options (Query Hints, indexes, partitions and so on), but for insert i don't know haw i can increase performance on database level indexes slowing insert statements. Also id which is generated by hibernate (@Id @GeneratedValue(strategy=GenerationType.TABLE) was much faster than with sequence (GenerationType.SEQUENCE) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039755#4039755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityHome question
Ok, been away from seam for a while but previously I always used "em.merge( .. )" when handling objects in Conversations. Has something changed in seam in regarding to Transactions/Conversations (maybe the Homes are using Extended-PCs or something else I have not used yet?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039756#4039756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityHome question
A home uses an SMPC (which is like an EJB3 EXTENDED PC but for the scope of the conversation which means your entities don't become detached during the conversation) so there is no need to merge. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039757#4039757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Failing to login using LDAP UserModule
"maph2880" wrote : | I am using the LDAPUserModuleImpl user module.. For the user module, i have specified the common properties for userCtxDN and uidAttributeID. For the Role and Membership modules, I am using DB. | I thing the simple reason is that you are mixing UserModule from LDAP with RoleModule and MembershipModule from DB. HibernateMembershipModuleImpl won't be able to resolve user/role relationship in such scenario and I suspect this is the root of exception during login process. So simply you cannot mix modules in such way. Only usage of delegating UserProfileModule for DB is allowed - like configured in default ldap config. Sory if documentation wasn't clear enough about this. I will add a note there. If you'll have any other issues don't hesitate to ask. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039758#4039758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: where can I download portal 2.6.CR1
Release process takes few days. At the moment you can grab it from svn and archive should be available soon: http://anonsvn.jboss.org/repos/portal/tags/JBoss_Portal_2_6_0_CR1/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039759#4039759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam, WS and jbpm
Hello to all! I've a problem with seam, web service and jbpm... In particular, in my application, I want, from a web service, to register a order ( that i received from ws in xml format ) and start a instance in to jbpm process. I use seam - jbpm for to manage this order ( to check, to reject, to assign to person etc ) with ui interface ( jsf ), but I don't know how to create a instance from ws in the jbpm process. I read some post like: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104926 where Shane wrote: Web services support is still under development, in CVS only. I can't really help you with starting a JBPM process because we haven't built support for that yet :) So I'm in trouble, can somebody give me a idea o a simple example? Or at best, the ws support is near to out ? Any help will be appreciated! Thanks, Stefano View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039760#4039760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - WrappedResultSet cast excpetion
Hi all; When i want to cast WrappedResultSet to OracleConnection i have the following error : --- java.lang.UnsupportedOperationException: Do not know how to handle method=public abstract long java.sql.Blob.length() throws java.sql.SQLException at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:247) at sun.reflect.GeneratedMethodAccessor82.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.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195) at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) at $Proxy62.length(Unknown Source) -- thank's for your help; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039765#4039765 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Failure to look up session bean from war in same ear
I have an application where a war is packaged in an ear together with an ejb3 jar. The application has worked fine before but suddenly when building a new version it started to cause problems. When trying to look up a session bean from a servlet in the war file I get the following exception: se.broaden.portal.t2.SubscriptionServiceException: Error performing 'se.broaden. | portal.t2.SubscriptionService.findSubscriptions(java.lang.String msisdn)' --> ja | vax.naming.CommunicationException: Receive timed out [Root exception is java.net | .SocketTimeoutException: Receive timed out] | | | Caused by: java.net.SocketTimeoutException: Receive timed out | at java.net.PlainDatagramSocketImpl.receive0(Native Method) | at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java | :136) | at java.net.DatagramSocket.receive(DatagramSocket.java:712) | at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12 | 87) | at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at se.broaden.portal.t2.tv.ServiceLocator.get_se_broaden_portal_t2_Subsc | riptionServiceBean_Remote(ServiceLocator.java:108) | at se.broaden.portal.t2.SubscriptionServiceDelegate.getSubscriptionServi | ceRemote(SubscriptionServiceDelegate.java:40) | at se.broaden.portal.t2.SubscriptionServiceDelegate.findSubscriptions(Su | bscriptionServiceDelegate.java:196) | ... 32 more What happens is that for some reason my web app tries to do a service discovery over multicast instead of using the local server in the same vm. I've run it with debugger and see that at line 1442 in NamingContext the localServer is null, hence it goes for discovery which doesn't work in my setup as I haven't deployed any HA stuff. The application is generated with AndroMDA 3.3-SNAPSHOT and obviously that has something to do with it as an older version of the same application which is generated with AndroMDA 3.2-SNAPSHOT works fine when deployed on the same jboss server. However, I've examined all deployment descriptors generated by AndroMDA and compared them to the ones that actually work and I can't find anything strange and nothing that has to do with naming. There is no jndi.properties or anything like that. I've also checked with the debugger what actually happens in the generated ServiceDelegate which is used to look up the session bean. It creates an InitialContext with null environment, exactly as the working app does, but fails when trying to look up the remote interface. What could possible cause this behavior when a war in the same ear file starts to try to discover naming service? No clustering what so ever is configured as far as I can see. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039766#4039766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039766 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to make seam generate-entities detect many to many relat
I am using 'seam generate-entities' to reverge engineer an existing database. It seams that it doesn't correclty recognise a many to many relation i have and it generates a new entity to represent the relashioship. Currently my schema is: Table 'Request' id: 'RequestID' Table 'Document' id: 'DocumentID' many to many relationship table: 'RequestDocumentIDs' columns: 'RequestID', 'DocumentID' (with foreign key contraints) How does seam detects many to many relatioships? do i have to give the tables specific names? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039773#4039773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam src on SVN
Thanks shane It would be nice if it is informed in the forum once seam is moved to SVN repo regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039772#4039772 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - NamingException:Connection Reset
Hello All, When i try to do a lookup for a Queue/Topic it gives be the following Naming Error javax.naming.CommunicationException: Failed to retrieve stub from server D1FBMCS:8002 [Root exception is java.net.SocketException: Connection reset] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:263) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(Unknown Source) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.(Unknown Source) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250) The Main cause of this problem is because of the Connection getting reset. Also This problem does not happen frequently. When i run my application for some long period of time only then this problem is happening and also it happens only few times. AnyBody know about this problem and when and why this connection will get reset. Also can the problem be because of the local Port which was in the TIME_WAIT state was used for creation of sockets. I am using JBoss:JBoss 4.0.4 GA Os:Windows 8002 is the port where NamingService is running and its RMI port is 8003 Regards Sanjeeth S View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039775#4039775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam
Hello, i'm using the seam-wrapper for EJB3 timers via @Asynchronous. In a simple case it works fine: Timer iface: @Local | public interface TimerTester { | @Asynchronous | public abstract Timer say(String what, @Expiration | Date expireTime, @IntervalDuration | Long intervallDuration, @Duration Long duration); | } Timer Bean: @Name("timerTester") | @AutoCreate | @Stateless | public class TimerTesterImpl implements TimerTester{ | @In | Timer timer; | @Resource | TimerService timerService; | public Timer say(String what, Date expireTime, Long intervallDuration, Long duration) { | System.out.println(what); | return timer; | } | } controller (stateless bean with local iface): public void sayHello() { | Timer timer =timerTester.say("hello", new Date(System.currentTimeMillis()+1000), 1l,10l); | log.info(timer, null); | } Page | My case, which doesn't work anymore: SFSB: | ... | @In(create = true) | OfferLifecycle offerLifecycle; | ... | if (persistOffer()) { | if (schedule) { | | timer = offerLifecycle.scheduleOfferStart(inOffer.getId(), inOffer.getStartTimestamp()); | | debug("offer start pending with timer "); | | timer = offerLifecycle.scheduleOfferEnd(inOffer.getId(), inOffer.getEndTimestamp()); | | debug("offer end pending with timer"); | } Timer bean: @Local | public interface OfferLifecycle { | @Asynchronous | public abstract Timer scheduleOfferStart(Long offerId, @Expiration | Date startTime); | @Asynchronous | public abstract Timer scheduleOfferEnd(Long offerId, @Expiration | Date expireTime); | } @Stateless | @Name("offerLifecycle") | public class OfferLifecycleBean implements OfferLifecycle { | | @In(create = true) | OfferDAO offerDAO; | @In | Timer timer; | @Resource | TimerService timerService; | | public Timer scheduleOfferStart(Long offerId, Date startTime) { | offerStart(loadOffer(offerId)); | return timer; | } | public Timer scheduleOfferEnd(Long offerId, Date expireTime) { | | offerEnd(loadOffer(offerId)); | return timer; | } | private Offer loadOffer(Long offerId) { | return offerDAO.findById( offerId, | LockMode.UPGRADE); | } persistOffer() has flushed the session (because of flush mode manual) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039778#4039778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to make seam generate-entities detect many to many r
since seam crud pages doesn't support many-to-many it would break the crud to enable it. (Hibernate tools the engine below seam-gen does support it though - your linktables just need to *only* contain link info and foreignkeys to the respective entities; then it should just work) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039780#4039780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Out of Memory Leaks
we also had PermGen problems Can confirm that JRocket helps with PermGen problems. You could try SUN JVM 1.6.0 update1 - it suspiciously works here untill now but maybe the server wasn`t just stressed enough and there seams to be no significant change in the SUN changelog regarding this issue... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039782#4039782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - setting a security for individual portlet instances
Hi, I am using jboss-portal-2.6-BETA1. Basically i want that user which is not having a role of admin is not able to add some default portlets like CMSportlet,role portlets to his dashboard so I try to set security for individual portlet instances so i login as admin and goto management portlet. After selecting security link for proper portlet instance a window opens which has checkboxes for user roles but after selecting proper checkbox there is no update button so the changes i made were lost. eg: I want to change the security of CMSportletInstance so that user (except admin role) can not be able to view or add CMSportletInstance in his dashboard. I also try to put Admin view for CMSportletInstance in portlet-instances.xml located at jboss-portal.sar\portal-core.war\WEB-INF which creates instances of these portlets. But it wont work. Any suggections !!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039781#4039781 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Out of Memory Leaks
Hi, We had this issue in production. For us it was a bug in hibernate and java assist when using remote interfaces to the SLSB's. The fix is to replace javaassist.jar and hibernate jars in jboss. We used javaassist 3.4 and hibernate 3.2.3.ga. Hope this helps. Here is our patch script. | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039784#4039784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to customize the jbpm workflow(VERY URGENT)
Hi Friends, I am new to Jbpm And I want to take help from Urs.Let me know how to use other textfields like combo boxes,textareas,radio buttons in a workflow using Jpdl in JBPM.which changes i have to make in Processdefinition.xml file...This is very Urgent... Waiting for ur response. Thanks& Regards, Sathya, Developer, CSIL, Bangalore, India. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039786#4039786 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039786 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBoss Seam and Web Services using OC4J stack
i have the same problem making a hibernate persistence working on OC4J,made my own Web Test Application. Does anyone know what to do and if there are some application samples that work on OC4J 10.1.3.2 with Hibernate persistence 3.2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039787#4039787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Best Strategy for Deleting 1000's of rows (EJB 2.1)
Hi Can anyone suggest the best way to delete large numbers of rows from a table using EJB 2.1? Obviously you can implement a findAll method and then loop through each Entity calling remove() but surely there must be a better way from a performance perspective? I had tried implementing a home business method combined with an ejbSelect containing a DELETE statement until I realized EJBQL in EJB 2.1 doesn't support DELETE's! This issue seems to have been addressed in EJB 3.0 and Hibernate but if your stuck with EJB 2.1 what is the best strategy? Is it just to write some JDBC or is there a better more 'EJB' way to do it? Cheers, Ben View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039788#4039788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: packaging a war file with struts 1.3.8 for jboss 4.0.4
ok, i removed all commons-logging.jar from my ear file, war file and jar file. Also removed in MANIFEST file. But now, i have this message : 13:57:36,459 INFO [EjbModule] Deploying OrdreRencontre 13:57:37,056 ERROR [MainDeployer] Could not create deployment: file:/home/baudouin/site/binaires/jboss-4.0.4.GA/server/default/tmp/deploy/tmp12426orvault.ear-contents/siteweb.war java.lang.NoClassDefFoundError: org/apache/struts/action/ActionServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039789#4039789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Initialization code
Bumping this one since I'd really like to make this work... thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039790#4039790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Initialization code
You can't/shouldn't access an EntityManager during @Startup. My suggestion is to schedule your method to execute at a later date using @Asynchronous View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039792#4039792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Upgrade from Seam 1.1 to 1.2.1
Got it. The invalid token is "undefined". When subcribing to the topics, two tokens are returned. However, upon the first poll the second one is being sent as "undefined". Subsequent polls use both tokens correctly. Looks like a typical uninitialized javascript variable somewhere on the Seam part. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039794#4039794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Upgrade from Seam 1.1 to 1.2.1
Could you please raise this in JIRA and assign to me? I'll need enough information to reproduce the issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039795#4039795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam, WS and jbpm
This stuff is going to be ready really really soon, because Gavin's supposed to be talking about it at JavaOne. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039797#4039797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
SAmmy you ARE the man. Thats another one for the doco!! or FAQ. Instant fix on the button vs commandbutton. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039798#4039798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Question : seam and fine grain url control (regular expr
Seam now includes the tuckey.org URL rewrite filter, at least in CVS (thanks to Paul Tuckey). Deeper integration is planned, hopefully making it possible to configure URL rewriting in pages.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039801#4039801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simplest usage
Does it work with a facelets page instead of a jsp? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039802#4039802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Upgrade from Seam 1.1 to 1.2.1
Done. JBSEAM-1229. I hope it's an easy fix. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039808#4039808 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039808 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to customize the jbpm workflow(VERY URGENT)
quick answer: - use jbpm 3.2 - learn jsf - do it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039810#4039810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam, WS and jbpm
"[EMAIL PROTECTED]" wrote : This stuff is going to be ready really really soon, because Gavin's supposed to be talking about it at JavaOne. Great guys!!! With pleasure Shane and of course thank to Gavin !!! This kind of news make me happy. But I must apologise to you if I ask when this happen ( in near days or weeks or months ), this because I started my project and I need this feature. Moreover I'm available to write a example to help others persons that have the same problem, of course first I need a little help from you!!! Thanks and acknowledgement Stefano View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039812#4039812 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: CMS file upload issue
I remember to have seen a jira resolution in the release not, about large file uploads. don't remember if it is for 2.4.1 or 2.6 look at those release not and in the jira... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039814#4039814 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
"snau2005" wrote : anonymous wrote : also i'm just trying to optimize my database table, but theres nothing to performance persist into table, for select there is so many performance tuning options (Query Hints, indexes, partitions and so on), but for insert i don't know haw i can increase performance on database level | indexes slowing insert statements. Also id which is generated by hibernate (@Id @GeneratedValue(strategy=GenerationType.TABLE) was much faster than with sequence (GenerationType.SEQUENCE) | hi again snau2005, ok, of course, i will try to use GenerationType.TABLE, maybe it will be increase performance a bit, does anybody knows some database performance optimizations, which can help me a bit ? Regards, Paata View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039815#4039815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - SER with JBoss
Iam working on SER(SIP Express Router) with JBoss,but i don't have knowledge on JBoss.Pls could u tell something abt JBoss that is related to SER. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039816#4039816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: setting a security for individual portlet instances
use rather the descriptor file to set it (as you did). it may be also helpfull to reset the portal instances tables in the database. so you make sure you are using the exact new definition (sometime it may mess with the definition from the manager and the one from the file). look at posts about reseting the portal database, to clear the instance definition (becarefull, you will loose all the changes that are not in the descriptor file). if this is the pb. if not : I don't see why. these things you want to do works perfectly. may be a small detail that goes wrong in what you have done (you know, bugs we don't see until they appear "so simple"). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039818#4039818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Trouble creating user on the fly programatically
may be there must be the transaction manager injected in the portlet, I you did not declare it. this is done in the jboss-portlet.xml, with the look at the jboss-portlet.xml of the UserPortlet for example. something like : | MyPortlet | | | Required | | | may be put the transaction injection at another place. this I can't say from what you have post. hope it helps... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039820#4039820 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Deploying seam app along side standard jsf app problem
In case anyone has the same problem, I couldn't come up with a proper solution so have had to hack one in. A sort of if you can't beat em join em answer. I still don't know if the problem is happening because of a bug or feature. I had to wire Seam into the JSF app, so the web.xml had the following added to it. org.jboss.seam.servlet.SeamListener and the faces-config.xml file had the following added. org.jboss.seam.jsf.SeamPhaseListener just like a regular Seam project. So far everything in the JSF app still works and hopefully will stay that way. Thank you for all the replies. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039822#4039822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
Ok!! Having indexes will slow down an insert statement. Why? The database has to write an extra entry into an index for each insert. Depending on indexed column, this may also slow down update statements. Using transacttions is even worse. The database must write into a transaction log to be able to do a rollback if necessary. Using sequences instead of an id generated by Java. Yes, a little bit of course. For each insert statement, Hibernate must query the database for the next sequence number, or hibernate must update the Java object with the new sequence number set by the database using an sql query. In general all SQL databases are slow when it comes to disk io, i.e. taking care of the data. The data files are normally not optimized for either reading and/or writing. A relation database will force the disk to move the read head, which is a physical movement, serveral times on the disk for each data read/write operation. Indexes are normally read into memory, but the data has to be read/written. This is why realtion database are fast in finding items (in memory index lookup) but relatively slow when it comes to fetching/writing data. Regards Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039823#4039823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: c3p0 connection not being involved in business transacti
C3p0 is not JCA and is unaware of transaction enlistement. It is simply a pooling library. To get the behavior you want, you need to use a JBossJCA datasource where we provide the pooling, transaction enlistment etc. Have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossJCA generally and http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources more specifically. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039825#4039825 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - UsernameToken Support jbossws-1.2.0
Hi, is it right that jbossws in version 1.2.0. supports the UsernameToken? If yes, how can i implement it? I don't found some helpful threads here or some samples which shows that right usage of this token... I am using the jax annotation for mark my WebService classes. Thanks for help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039827#4039827 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039827 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.
sgof, I am not using any sort of security, so I'm not sure what those errors are about. The last error sounds like your wsdl is not syntactically correct. I would suggest starting with a simple example wsdl like the one I provided and a plain JBoss 4.0.5.GA install and get that working first. Once that works, try modifying the project bit by bit to fit what you are trying to do. Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039826#4039826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Exception in stopping MBean Service in JBoss 4.0.5
i have the same problem when i create a jmx-bean with ejb3-annotations when shutting down the server. did you find a solution yet? does anyone have the same problem or any suggestions for solving the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039829#4039829 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Problem with composite Primary key which is also a foreign k
hello, I have a entity like: public class Parent implements Serializable { @OneToMany(cascade =CascadeType.ALL, mappedBy = "site", fetch=FetchType.EAGER) @OrderBy("position ASC") @Sort(type = SortType.NATURAL) private SortedSet childs; // method for adding the child object : public void addChild(Child child) { if(this.childs==null) this.childs=new TreeSet(); child.set(this); this.childs.add(child); } } and the child class as follows: @Entity @IdClass(ChildPK.class) @Table(name = "child") public class Child implements Serializable, Comparable { @Id private int parentId; @Id private Language language; @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = false) @JoinColumn(name = "parent_id",nullable = false,insertable = false, updatable = false, referencedColumnName = "id", columnDefinition = "parent_id INT NOT NULL") private Parent parent; } And the primary key class as follows : public final class ChildPK implements Serializable { @Column(name = "parent_id",insertable = false, updatable = false, nullable = false) private int parentId; @Enumerated(EnumType.STRING) private Language language; public boolean equals(Object other) {.} } now the problem is if i am inserting a new parent with a new child .. it inserts the parent and then tries to insert the child with the parentId(foreign key) as 0 ... in other case where there is no composite key it inserts the parent and then gets the autogenerated parent id and assigns it the child and then inserts the child .. why dosent that happen with the child with composite key. What am i doing worng? Any help would be appreciated Regards Imran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039831#4039831 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039831 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: WrappedResultSet cast excpetion
You wouldn't do a cast you need to call the | getUnderlyingResultSet() | on the WrappedResult set. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039834#4039834 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039834 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam and Richfaces : Drag and Drop Problem
this also happened to me. but when i set UseJBossWebLoader=true but now my backing bean dosen't find the ajax4jsf.jar and richfaces.jar in my WEB-INF\lib folder, and fails to deploy. It fails when it has to to call processDrop with org.ajax4jsf.dnd.event.DropEvent argument. I tried to put the jars in the server/deploy/lib but now it gets | 2007-04-23 16:04:21,090 WARN [org.apache.myfaces.config.FacesConfigurator] More than one managed | bean w/ the name of 'a4j' - only keeping the last | 2007-04-23 16:04:21,090 WARN [org.apache.myfaces.config.FacesConfigurator] More than one managed | bean w/ the name of 'a4jSkin' - only keeping the last | 2007-04-23 16:04:21,090 WARN [org.apache.myfaces.config.FacesConfigurator] More than one managed | bean w/ the name of 'ajaxContext' - only keeping the last | when i deploy the first time it works fine. but when i redeploy the time stamp on the jar in WEB-INF/lib change and if i don't copy them againg to server/deploy/lib i get: javax.servlet.ServletException: loader constraints violated when linking org/ajax4jsf/dnd/Draggable class | my question is how can i get around this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039836#4039836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Obtaining a handle to a EntityHome object
Hi The seam-gen code has reference to the EntityHome object . In the .java file if I do a Object o = new EntityHomeObject<> the compilation goes thru but somethings start failing . ( logging fails etc ) I searched the forums and found that this is the NOT the way to do . But I am not able to find any other way to obtain a new handle to the EntityHome . So my question is how to get a handle to the EntityHome object from the java code ? Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039833#4039833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
Sorry, but this is ridicolous. If you want to tune duping 10.000 records into a table use a stored procedure and be done with it. That is what they are made for. If this is too slow, you can still temporarily disable indexes, select a ptoper transaction isolation level etc. etc. Regards Felix P.S.: And DON'T forget to use bind variables :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039839#4039839 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039839 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to make seam generate-entities detect many to many r
Thanks for the quick reply! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039841#4039841 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039841 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
grdzeli_kaci, anonymous wrote : | | int count = 0; | | for (int i = 0; i < usagesObjs.size(); i++) { | | UsageObject usageObject = usagesObjs.get(i); | | entityManager.persist(usageObject); | | if (i / 50 >= 0) { | | entityManager.flush(); | | count = 0; | | } | | count++; | | | if (i / 50 >= 0) { - here perhaps is an error, shouldn't be count instead of i ? i found my old test, run it again, and got 40 000 entries in 11-13 seconds, but my table have only 4 columns no indexes etc ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039842#4039842 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Exception in stopping MBean Service in JBoss 4.0.5
I did not find a solution, but since it looks harmless, I'm living with this "feature"...nobody else seemed to complain ;-) May be somebody will reply to you now ! Andrea View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039840#4039840 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039840 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with composite Primary key which is also a forei
Either your pk is ChildPK.class or it is an id. It cannot be both and you can not have two @ids. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039843#4039843 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039843 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Actions behavior
Hi all I've read about the Actions but I'm here width some questions, that i appreciate some feedback: Can a action accept arguments and variables? Is an action always associated with a process, or i could have the same action for various process deployed? Can i retrieve the list of Actions avaiable? >From a Action instance from a certain process, can I access to another process >instance? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039845#4039845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Session Replication - Concurrency Problems?
Hi I'm having same problem. The sticky_session property is disabled (siticky_session=0) in mod_jk config. The Sessions are replicated, I can see they when I invoke the printDetails method in the jboss.cache:service=TomcatClusteringCache MBean, but fail over doesn't work properly and I see the message described above in the log... How you solved the problem? Thanks "Zwitsch" wrote : Hi, | | I set up a cluster which consists of 2 nodes of Jboss AS 4.0.5 with an Apache 2.0 lodabalancer in front. I also set up farming and session replication and all this just works fine. | | But out of my (distributable) application I am getting the following outputs: | | anonymous wrote : 15:27:26,358 INFO [CacheListener] Possible concurrency problem: Replicated version id 8 matches in-memory version for session EwvKAOhv-wpLJ+1T58te1A** | | Every call of the app I am getting this message with the counter "id x matches" increasing by 1. | What is wrong? Has this something to do with the serialization of the objects put in the session? | | The session replication though seems to work fine. Although failover works. | | Thanks | Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039848#4039848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
anonymous wrote : i found my old test, run it again, and got 40 000 entries in 11-13 seconds, but my table have only 4 columns no indexes etc ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039850#4039850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
Hi All! The intention of my last post was to explain why sequences, indexes etc. make the solution less performant. I still agree with Felix. Huge bulk operations shall be done by using the tools provided by the database, in this case a stroed procedure. //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039852#4039852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
The fact that s:button/s:link don't submit a form is in the docs, twice AFAIK. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039853#4039853 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039853 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with composite Primary key which is also a forei
Thanks for the fast reply ... The primary key for my example is ChildPK.class and according to the ejb3 specification i have the annotation @IdClass(ChildPK.class) in my child class all the columns in the pk class have to be present in the child class with @Id annotation so there will be two @Id annotations coz of the composite key.. the one you are talking about is the @Embeddable annotation. I am not using that. Thanks and Regards Imran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039851#4039851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039851 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
ok, but for us mortals... eachDisplayableCategory does not get submitted when you click s:button refine... | | | | | | | | | | | you have to have a h:commandButton | | | | | | | | | | | To me.. being a noobie, I don't really know when form is submiited or not.. s:button seems to avoid the validation... just a bit confusing... You experts know these things... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039854#4039854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: What is the difference between EJB and POJO transactions
"[EMAIL PROTECTED]" wrote : I recommend the last option, since it works with whatever components you execute and it is good from a scalability perspective. Also, you don't need to write any code or use any annotations with it. | Now that I've read the bold part, I'm a bit confused about the relationship between @Transactional and TransactionalSeamPhaseListener (I thought that I need both). Do you mean, that if I use the TransactionalSeamPhaseListener, I don't need to mark my POJOs with @Transactional at all? Thanks, Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039855#4039855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user