[jboss-user] [Installation, Configuration DEPLOYMENT] - Production server freezes every two to three days

2008-02-18 Thread tuxzilla
I am new to JBoss. I have a JBoss 4.2.0 running on RedHat CentOS 4.5 (2.6.9-42.0.3.EL_HPTRAID #1 SMP) that freezes every two to three days. When it does so I see many httpd processes spawned. Httpd is still logging request but 503 error is given. When I try to use kill -3 to get a thread dump

[jboss-user] [JBoss Seam] - TransactionSuccessEvent and TransactionCompletionEvent

2007-09-01 Thread tuxzilla
What is the difference between the two? Based on the source code javadoc: TransactionSuccessEvent: An event that is processed when a transaction completes succesfully TransactionCompletionEvent: An event that is processed when a transaction ends But I am not sure what the real difference is.

[jboss-user] [JBoss Seam] - Re: Timers from previous deployments are still persistent

2007-08-31 Thread tuxzilla
One solution that helps is to have a @Destroy method in which you cancel the timer using timer.cancel(). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080151#4080151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080151

[jboss-user] [JBoss Seam] - How to put named anchor in s:link/

2007-08-25 Thread tuxzilla
I'd like to construct named anchors in the form of http://url#name in s:link/. I tried to read the doc but didn't find anything. Is that possible? How can I do it? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078038#4078038 Reply to the post :

[jboss-user] [JBoss Seam] - is there a way to get rid cid=... from url

2007-08-19 Thread tuxzilla
I am wondering if there is anyway to not generate cid in url, for the purpose of search engine optimization. Search engines will rank the page lower if there are multiple urls pointing to the same page. Thanks. View the original post :

[jboss-user] [JBoss Seam] - Seam 2.0 BETA + s:convertEntity/ problem

2007-08-13 Thread tuxzilla
I am running Seam 2.0 Beta on JBoss 4.2.1. I have a category list as s:selectItems/ values in an edit entity page. The problem is that in this page if I don't change the category selection I always get a Not a valid value error on the selection box when I submit. Even when I change the

[jboss-user] [JBoss Seam] - Re: Seam 2.0 weird exception in org.jboss.seam.Entity

2007-08-11 Thread tuxzilla
Does anyone have a solution yet? I have the same problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073252#4073252 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073252 ___

[jboss-user] [JBoss Seam] - Re: weird problem with Firefox, contentType, Seam 2.0

2007-08-09 Thread tuxzilla
It works great. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4072687#4072687 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072687 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - where can I checkout Seam 2.0 source

2007-08-08 Thread tuxzilla
I couldn't seen to find url anywhere. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4072125#4072125 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072125 ___ jboss-user

[jboss-user] [JBoss Seam] - weird problem with Firefox, contentType, Seam 2.0

2007-08-08 Thread tuxzilla
I just upgraded my app to Seam 2.0 from Seam 1.2.1. The UI in firefox is now pretty badly broken. I have mixed javascript with jstl to dynamically generate javascript through a loop. Now the same code is fine in IE, but broken in Firefox. What is weird is that when I saved the source to the

[jboss-user] [JBoss Seam] - Help with checking the permission of ownership

2007-07-13 Thread tuxzilla
I have a permission requirement on objects that only owners or Admin role users can update. I am ok with the Role part, using hasRole('admin'). But I am not sure how to write ownership checking into a generic rule. Anyone has solved a similar problem? Thanks. View the original post :

[jboss-user] [JBoss Seam] - Problem running SeamTest

2007-07-10 Thread tuxzilla
I changed all the EJBs in my app to pojo, and used Seam entityManager. I got this error when I ran my test that extends SeamTest: [testng] Caused by: java.lang.RuntimeException: org.hibernate.TransactionExce ption: Could not register synchronization for container transaction Here is the

[jboss-user] [JBoss Seam] - Can I configure Seam from an external property file?

2007-07-02 Thread tuxzilla
I'd like to use an external property file outside the deployed ear to configure the attributes of Seam components. Does anybody know how I can do that? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059747#4059747 Reply to the post :

[jboss-user] [JBoss Seam] - seam.properties not working for me

2007-07-01 Thread tuxzilla
I put two properties in seam.properties [EMAIL PROTECTED] sendMail.bypassEmail=false to configure a event scoped bean | | @Name(sendMail) | @AutoCreate | @Scope(ScopeType.EVENT) | public class SendMail { | | private String testMail; | private boolean bypassEmail; |

[jboss-user] [JBoss Seam] - Re: seam.properties not working for me

2007-07-01 Thread tuxzilla
The project is based on seam-gen. seam.properties is in the root level of the application jar file, where includes SendMail.java. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059481#4059481 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Error using RuleBasedIdentity in Seam 2.0 beta 1

2007-06-29 Thread tuxzilla
I am pretty sure I only have seam 2.0 jar in the classpath. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059353#4059353 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059353 ___

[jboss-user] [JBoss Seam] - Null EntityManager after upgrading to Seam 2.0 Beta1

2007-06-28 Thread tuxzilla
I have a pojo bean annotated as @Startup and with entityManager injected. After upgrading to 2.0 Beta1 and JBoss 4.2 the init method of the bean annotated with @Create complained about null entityManager during startup. It used to work fine under Seam 1.2.1GA and JBoss 4.0.5. | @Startup |

[jboss-user] [JBoss Seam] - Re: Null EntityManager after upgrading to Seam 2.0 Beta1

2007-06-28 Thread tuxzilla
That is it! I changed core:managed-persistence-context/ to presistence:managed-persistence-context/. I was following the instruction here: http://fisheye.jboss.com/browse/JBoss/jboss-seam/seam2migration.txt?r=1.2[/url]. I wish it could be more explicit though. Thanks. View the original post :

[jboss-user] [JBoss Seam] - Error using RuleBasedIdentity in Seam 2.0 beta 1

2007-06-28 Thread tuxzilla
After migrating my app from seam 1.2.1GA to 2.0 beta 1, I am having problem accessing my login page. The exception is anonymous wrote : | Caused by: java.lang.IllegalArgumentException: Could not invoke method by reflection: RuleBasedIdentity.setSecurityRules(org.drools.RuleBase) with

[jboss-user] [JBoss Seam] - Problem with injecting EntityManager when invoking action wi

2007-06-27 Thread tuxzilla
I have a list view page that pops up within page a send-to-friend form (using display block/none toggle). The send to friend form is submitted via a:commandButton action=#{sendToFriend.send}/. The problem is that when the form is submitted, I always get the exception saying that the

[jboss-user] [JBoss Seam] - Re: Problem with injecting EntityManager when invoking actio

2007-06-27 Thread tuxzilla
Ok, it turned out the problem has nothing to do with AJAX submission. The form has a hidden field which I bound it to sendToFriend.entityIdField property. If I remove this property, everything works fine. But I do need this property to pass the id of the entity to sendToFriend bean. Here is

[jboss-user] [JBoss Seam] - Re: Problem with injecting EntityManager when invoking actio

2007-06-27 Thread tuxzilla
Yes I do have getters and setters for the property. It is a POJO. I finally found out the solution. It is simply adding (required=false) in the entityManager annotation. This is anti-intuitive because you'd expect entityManager to always be available. But it seems that when the UIInput

[jboss-user] [EJB 3.0] - weird problem with loading collections of subclasses

2007-06-23 Thread tuxzilla
I have a class Listing with two collections reviews and discussions. Both Review and Discussion are subclasses mapped to the same table, distinguished by a discriminator column type. I am using Seam 1.2.1 but the problem is most likely related to the persistence mapping. Here are the mappings:

[jboss-user] [JBoss Seam] - How to do post injection initialization

2007-06-15 Thread tuxzilla
I want to set some property of a bean right after it is injected into another bean. For example, I want to invoke b.setProperty1(p1) in public Class A { |@In(create=true) |private B b; | } Do I do this with org.jboss.seam.postSetVariable.b event by adding this inside class A? |

[jboss-user] [JBoss Seam] - Re: How to do post injection initialization

2007-06-15 Thread tuxzilla
Ok. I worked around this problem by invoking the setter in an action method. My only question now is what is the event org.jboss.seam.postSetVariable for? I am too new to Seam to fully understand what it means when the manual says called when the context variable is set. Does it mean bean

[jboss-user] [JBoss Seam] - Re: Timers from previous deployments are still persistent

2007-06-14 Thread tuxzilla
Yes, I will wait for 1.3.0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054579#4054579 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054579 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Trouble with SeamTest when bean is annotated @Startup

2007-06-12 Thread tuxzilla
Unfortunately it didn't work either. I removed the ejb annotations and made it a POJO. Then I injected entityManager using @In, I got a similar problem, the root of which is due to the micro-container (and the JNDI) not available before the starting up of the bean: anonymous wrote : |

[jboss-user] [JBoss Seam] - Re: Trouble with SeamTest when stateful session bean is anno

2007-06-12 Thread tuxzilla
Never mind. On closer inspection, your solution of adding depends={org.jboss.seam.core.ejb} worked. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4053691#4053691 Reply to the post :

[jboss-user] [JBoss Seam] - Trouble with SeamTest when stateful session bean is annotate

2007-06-11 Thread tuxzilla
I couldn't get the SFSB to instantiate correctly in my SeamTest because the component startup was invoked before the embedded ejb container startup. Here is the error message: anonymous wrote : | org.jboss.seam.InstantiationException: Could not instantiate Seam component: companyList |

[jboss-user] [JBoss Seam] - Timers from previous deployments are still persistent

2007-06-08 Thread tuxzilla
I have a ScheduleController that schedule tasks: | @Startup | @Scope(ScopeType.APPLICATION) | @Name(scheduleController) | public class ScheduleController { | @In | private Schedule schedule; | | @In(create=true) | private ScheduledTask aTask; | |

[jboss-user] [JBoss Seam] - Re: Timers from previous deployments are still persistent

2007-06-08 Thread tuxzilla
ok. any idea when Seam 1.3 will GA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4052755#4052755 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052755 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: PersistenceException during testNG unit test

2007-05-15 Thread tuxzilla
have you solved the problem? I am having the exact problem too. I'd like to know your answer. Thanks. Sheldon View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045968#4045968 Reply to the post :

[jboss-user] [EJB 3.0] - Can't make SEAM unit test work

2007-05-15 Thread tuxzilla
I followed the example at http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/testing.html#d0e15875 to unit test my own bean but I get: SEVERE: Could not find datasource: java:/n2TestDatasource javax.naming.NoInitialContextException: Need to specify class name in environment or system

[jboss-user] [EJB 3.0] - Re: Can't make SEAM unit test work

2007-05-15 Thread tuxzilla
Post the persistent.xml again: | ?xml version=1.0 encoding=UTF-8? | !-- Persistence deployment descriptor for tests -- | persistence xmlns=http://java.sun.com/xml/ns/persistence; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |