[jboss-user] [JBoss Seam] - Re: @Factory usage

2007-05-10 Thread tonylmai
Got it to work. Thanks Daniel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044864#4044864 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044864 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Seam EL Exception: Argument type mismatch

2007-05-10 Thread tonylmai
Hello, I ran into a exception using Seam's EL in a JSF page. It seems that the parameter passed into the method was not parsed correctly. I'd tried int, Integer, and String and all arrived at the same exception. The following are the codes: @Stateful | @Scope(ScopeType.SESSION) |

[jboss-user] [JBoss Seam] - Re: Private configuration in Seam?

2007-05-09 Thread tonylmai
Thanks Pete. I finally spent time yesterday re-reading the manual. Should have done that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044530#4044530 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044530

[jboss-user] [JBoss Seam] - Private configuration in Seam?

2007-05-07 Thread tonylmai
Hello, How would I go about passing a configuration to a Seam component? I.e. in my Authenticator, I would like it to connect to a remote server and authenticate there (hence I need a remoteHostAddress configuration read by Authenticator). Any idea? Thanks View the original post :

[jboss-user] [JBoss Seam] - Re: Private configuration in Seam?

2007-05-07 Thread tonylmai
Can you give me an example on how to read a configuration out of component.xml? Thanks Pete View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043796#4043796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043796

[jboss-user] [JBoss Seam] - Re: Seam complained about Identity

2007-05-03 Thread tonylmai
I am using Seam 1.2.1GA with JBoss AS 4.0.5GA, JSF 1.2. The project was generated with seam-gen. Here is a snippet of my login.xhtml page: div | label jsfc=h:outputLabel for=loginID#{res['login.loginId.label']}/label | input jsfc=h:inputText type=text name=loginID id=loginID |

[jboss-user] [JBoss Seam] - Re: Seam complained

2007-05-03 Thread tonylmai
I took everything out of the login.xhtml page and all things referencing to identity in the pages.xml and am still running into this exception. Any idea on where else to look for? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042872#4042872 Reply to the post

[jboss-user] [JBoss Seam] - Setting up context into a remote EJB app

2007-05-03 Thread tonylmai
Hello all, I have an existing EJB middle-tier app that was developed and deployed with JBoss 4.0. I would like to put together a Seam Web UI app for this middle-tier app. How would I go about making an initial context into this remote EJB app. This EJB app may or may not seat on the same

[jboss-user] [JBoss Seam] - Injection of LocaleSelector does not work in 1.2.1GA

2007-05-03 Thread tonylmai
The following code used to work when I first tried it with 1.1.6GA. Now, the the injection of LocaleSelector no longer works. The value is null. Any idea? Thanks public class LocaleChanger { | | @In | LocaleSelector localeSelector; | | @Logger | Log log; |

[jboss-user] [JBoss Seam] - Seam's Identity and Authenticator

2007-05-03 Thread tonylmai
Can someone tell me the correlation between Seam's Identity and Authenticator? It is my understanding that we can declare/override the RuleBasedIdentity as followed: @Name(org.jboss.seam.security.identity) | @Scope(ScopeType.SESSION) | @Intercept(InterceptionType.AFTER_RESTORE_VIEW) |

[jboss-user] [JBoss Seam] - Re: How to configure JBoss AS 4.0.5GA, JSF 1.2 Sun RI, Facel

2007-05-02 Thread tonylmai
I found Gavin's original posting and fixed the problem. Here it is if anyone is looking for the solution. http://www.jboss.com/index.html?module=bbop=viewtopict=94738 Perhaps Seam's team could make it sticky. ;-) View the original post :

[jboss-user] [JBoss Seam] - Seam complained

2007-05-02 Thread tonylmai
Hello, I have a very simple login page that uses Seam's Identity. The first time I invoke this page, I saw the following log entry: anonymous wrote : 18:51:44,000 INFO [ServletCacheAdministrator] Created new instance of ServletCacheAdministrator | 18:51:44,000 INFO

[jboss-user] [EJB/JBoss] - Do we have any support from EJB/JBoss' developers in this fo

2007-04-10 Thread tonylmai
Are we boring them with our questions. They don't seem participate or reply to our questions :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036111#4036111 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036111

[jboss-user] [EJB/JBoss] - Another NullPointerException in JBoss 4.0.5GA

2007-04-09 Thread tonylmai
Does anyone know the cause of this problem? Thanks anonymous wrote : | 14:12:12,375 WARN [ServiceController] Problem starting service persistence.units:jar=authen.jar,unitName=authen | java.lang.NullPointerException | at org.hibernate.util.StringHelper.qualify(StringHelper.java:264)

[jboss-user] [JBoss Messaging] - How to configure MDB to listen to a queue from a remote serv

2007-04-07 Thread tonylmai
Hello, I have a stand-alone application that listens to messages sent from a remote server. I now would like to turn this app into a Java EE application. The JMS consumer in this stand-alone application would now become MDB bean. How do I configure this MDB to listen to messages sent from the

[jboss-user] [JBoss Messaging] - Re: Where did my messages (sent by a SessionBean) go?

2007-04-05 Thread tonylmai
Here is the trace. I don't see confirmation that a message had been sent. anonymous wrote : 2007-04-05 14:52:34,375 DEBUG [org.jboss.jms.message.MessageIdGeneratorFactory] checked out MessageIdGenerator for 0, reference count is 5 | 2007-04-05 14:52:34,375 DEBUG

[jboss-user] [JBoss Messaging] - Re: Where did my messages (sent by a SessionBean) go?

2007-04-05 Thread tonylmai
Here is a log for a successful sent and received. anonymous wrote : 2007-04-05 15:02:27,734 DEBUG [org.jboss.jms.server.security.SecurityMetadataStore] No SecurityMetadadata was available for td-private, using default security config | | 2007-04-05 15:02:27,734 DEBUG

[jboss-user] [JBoss Messaging] - Re: Where did my messages (sent by a SessionBean) go?

2007-04-05 Thread tonylmai
There was a transient field in my message class that was changed for testing and we forgot to put it back to transient status. Hence the message object was not serializable. It would have been nice if JBoss Messaging would display an message or throw an exception instead of silently swallowed

[jboss-user] [JBoss Messaging] - Re: killing messaging server shutsdown my app?

2007-04-05 Thread tonylmai
I have stand-alone application that connects to JBoss Messaging server. My app does not quit after the JMS server went down. May have something to do with Tomcat. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035203#4035203 Reply to the post :

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-05 Thread tonylmai
Just an update on the consequences. The version seemed to depend on which component in JBoss got invoked first. Too unpredictable to hardwired the version like I mentioned before. I am using a tester to prime the server with EJB component first. It worked for now. View the original post :

[jboss-user] [JBoss Messaging] - Incompatible local class org.jboss.remoting.InvokerLocator

2007-04-04 Thread tonylmai
Hello all, I am trying to migrate my application from using JBoss MQ to JBoss Messaging. I have followed the doc and installed JBoss Messaging 1.2.0 SP1, I ran the queue example and it worked fine. However, when I tried to run my client (external) app, I have the following error: anonymous

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
I'd like to clarify that this client app threw the exception while looking up an EJB remote. I have another tester that uses pure JMS and this client had problem starting up and publishing messages to the JBoss server. Thanks View the original post :

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
It did sound suspicious. Yet my client referenced only 3 jar files two of which are JBoss's (jboss-j2ee.jar and jboss-messaging-client.jar). jboss-j2ee.jar is picked it up from jboss.home\client while jboss-messaging-client.jar is from jboss-messaging-1.2.0.sp1 installed directory. The 3rd jar

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
I must have gone mad. I mistyped the second posting. My JMS client had NO problem publishing to the server. It's EJB client that HAD problem looking up an EJB remote. anonymous wrote : I have another tester that uses pure JMS and this client had problem starting up and publishing messages to

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
How would I find out which Invoker I used? I took the default that came with JBoss 4.0.5GA. My EJBs does not declare any Invoker and so do my ejb config files. I searched JBoss's output and found the following: anonymous wrote : | 12:54:19,531 INFO [SocketServerInvoker] Invoker started for

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
I found a posting on this board not to use jboss-all-client.jar so I removed it from my computer totally. My client only used those 3 jars I mentioned. Here is the client output. Notice the fourth jar in the list is for the client itself. anonymous wrote : D:\dev\exchange\binjava -classpath

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
I looked at all the jar files relating to jboss.remoting on the server. I found one jboss-remoting.jar resided in the server\messaging\lib (595KB, dated today probably because I'd just reinstalled JBoss + JBoss Messaging) I also found another copy of jboss-remoting.jar in

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
From the exception thrown: anonymous wrote : local class incompatible: stream classdesc serialVersionUID = -2909329895029296248, local class serialVersionUID = -4977622166779282521 server version = -2909329895029296248 == Long.valueOf(0xd79ffbdff05ab388L); local version = -4977622166779282521

[jboss-user] [JBoss Messaging] - Re: Incompatible local class org.jboss.remoting.InvokerLocat

2007-04-04 Thread tonylmai
Based on that finding, I hardwired the following system property -Djboss.remoting.version=2 and now my client is connecting alright. Don't know if that would cause any consequences. We'll see. Thanks View the original post :

[jboss-user] [JBoss Messaging] - Where did my messages (sent by a SessionBean) go?

2007-04-04 Thread tonylmai
Hello, I have a problem in my client application in receiving messages published by a SessionBean (EJB3). I am using JBoss Messaging with JBoss 4.0.5GA. My client had no problem looking up the name, created a destination and then a MessageConsumer for the destination (queue). None of the

[jboss-user] [Messaging, JMS JBossMQ] - What tools are available for debugging JMS in JBoss?

2007-04-03 Thread tonylmai
Hello all, I have a problem in my client application in receiving messages published by a SessionBean. I am using JBoss MQ came with JBoss 4.0.5GA. None of the messages published by my SessionBean (to a queue) would end up in my client's application. My SessionBean had no problem looking up

[jboss-user] [Messaging, JMS JBossMQ] - What is my JBossMQ's connection factory JNDI name?

2007-04-02 Thread tonylmai
How can I tell what name my JBossMQ's connection factory is registered under? /ConnectionFactory does not seem to work. Could someone tells me what went wrong? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4033587#4033587 Reply to the post :

[jboss-user] [Messaging, JMS JBossMQ] - Re: What is my JBossMQ's connection factory JNDI name?

2007-04-02 Thread tonylmai
Never mind, My ServiceLocator swallowed the original exception and threw a different message. Sorry about that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4033815#4033815 Reply to the post :

[jboss-user] [EJB/JBoss] - RuntimeException: java.lang.NullPointerException in JBoss 4.

2007-04-01 Thread tonylmai
Does anyone know the cause of this exception? Thanks -- anonymous wrote : java.lang.RuntimeException: java.lang.NullPointerException | at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:113) | at

[jboss-user] [Messaging, JMS JBossMQ] - How to create Destination (Queue) programmatically?

2007-03-29 Thread tonylmai
Does anyone know if we can create a new queue in JBossMQ programmatically? something like queue/private/Tony and queue/private/Anthony? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4032949#4032949 Reply to the post :

[jboss-user] [Beginners Corner] - How to solve circular dependencies in JBoss 4.0.5GA?

2007-03-23 Thread tonylmai
Hello all, I have two stateless session beans that exchange data with each other. If I were to declare EJB injection (@EJB tag) of each other in the beans, the container would complain: anonymous wrote : 14:37:58,625 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | ---

[jboss-user] [EJB/JBoss] - How to solve circular dependencies in JBoss 4.0.5GA?

2007-03-23 Thread tonylmai
Hello all, I have two stateless session beans that exchange data with each other. If I were to declare EJB injection (@EJB tag) of each other in the beans, the container would complain: anonymous wrote : 14:37:58,625 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | ---

[jboss-user] [Installation, Configuration Deployment] - What jars to be included with a remote client

2007-03-19 Thread tonylmai
Does anyone have a list of what JAR files I need (beside my app) to distribute with a remote client application? I am going nuts over one missing class after another. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029460#4029460 Reply to the post :

[jboss-user] [Beginners Corner] - What jars to be included with a remote client

2007-03-19 Thread tonylmai
Does anyone have a list of what JAR files I need (beside my app) to distribute with a remote client application? I am going nuts over one missing class after another. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029462#4029462 Reply to the post :

[jboss-user] [Beginners Corner] - Re: What jars to be included with a remote client

2007-03-19 Thread tonylmai
BTW, I am using 4.0.5GA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029464#4029464 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029464 ___ jboss-user mailing list

[jboss-user] [Installation, Configuration Deployment] - Re: What jars to be included with a remote client

2007-03-19 Thread tonylmai
BTW, I am using 4.0.5GA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4029463#4029463 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029463 ___ jboss-user mailing list

[jboss-user] [JBoss Messaging] - JMS Activation error with MDB

2007-03-16 Thread tonylmai
Hello, I have developed a very simple MDB to test with JBoss Messaging 1.2/JBoss 4.0.5GA. When JBoss came up, it complained about JMS activation with the following warning and then error: (as you can see in this log, a queue was created, a MDB was started and then a warning and an exception)

[jboss-user] [JBoss Messaging] - Re: JMS Activation error with MDB

2007-03-16 Thread tonylmai
Never mind. I found a work around in the earlier post. The real question for us less savvy on JBoss Messaging would be then how to build a binary from the subversion code? Is it possible for someone to build a patch and release it? Thanks View the original post :

[jboss-user] [EJB/JBoss] - Re: What does this mean? Not binding factory to JNDI, no JND

2007-03-15 Thread tonylmai
That made sense. Thanks Rhodan76 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4028438#4028438 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4028438 ___ jboss-user mailing list

[jboss-user] [JBoss Messaging] - Re: Running JBoss with JBoss Messaging inside eclipse?

2007-03-14 Thread tonylmai
I use plain eclipse. I don't have problem running JBoss server in eclipse. I just don't know how to bring it up 'with' JBoss Messaging since it requires a passing flag of '-c messaging' and I don't know how to specify that in eclipse. View the original post :

[jboss-user] [EJB/JBoss] - Re: How to model an entity field of type Money.class?

2007-03-13 Thread tonylmai
Thanks for the suggestion. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4027585#4027585 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4027585 ___ jboss-user mailing list

[jboss-user] [EJB/JBoss] - Does JBoss validate EntityBean length setting?

2007-03-13 Thread tonylmai
Hi all, Would JBoss validate an Entity's attribute for length? @Entity | public class ExampleName implements Serializable { | ... | private String name; | | @Column(nullable = false, length=25) | public String getName() { | ... | } when I invoke the following

[jboss-user] [JBoss Messaging] - Running JBoss with JBoss Messaging inside eclipse?

2007-03-13 Thread tonylmai
Hello all, Any idea on how to run JBoss with JBoss Messaging inside eclipse? I don't know how to specify the -c messaging flag. I override the run.bat but that only seem to affect running JBoss from a command line. Thanks for your help. View the original post :

[jboss-user] [EJB/JBoss] - Re: Problem looking up EJB session bean (Name not bound)

2007-03-12 Thread tonylmai
I think the problem I am having is relating to the way I packaged my ear file. When I unpacked the ear and deployed only the jar file, I had no problem looking up the remote interfaces. I would greatly appreciate if someone can help clarifying what I need in my ear file. O'Reilly's Enterprise

[jboss-user] [Beginners Corner] - Re: Problem looking up EJB session bean (Name not bound)

2007-03-12 Thread tonylmai
I think the problem I am having is relating to the way I packaged my ear file. When I unpacked the ear and deployed only the jar file, I had no problem looking up the remote interfaces. I would greatly appreciate if someone can help clarifying what I need in my ear file. O'Reilly's Enterprise

[jboss-user] [EJB/JBoss] - What does this mean? Not binding factory to JNDI, no JNDI na

2007-03-12 Thread tonylmai
I found the following snippet in my JBoss log right after it tried to deploy my ear file: 09:46:03,000 INFO [SessionFactoryImpl] building session factory | 09:46:03,140 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured What does it mean? View the

[jboss-user] [EJB/JBoss] - Re: Problem looking up EJB session bean (Name not bound)

2007-03-12 Thread tonylmai
No. I thought with EJB3, the JNDI name should be defaulted the unqualified classname. Do I need an explicit JNDI name if I were to deploy with EAR file? Deployment with JAR did not seem to require the JNDI names at all. View the original post :

[jboss-user] [EJB/JBoss] - How to model an entity field of type Money.class?

2007-03-12 Thread tonylmai
Hello all, Say I have a customized class called Money. I would like to model an entity bean called Account that has a field called balance of type Money. @Entity | public class Account implements Serializable { | private Money balance; | | | @Column(nullable=false,

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to model an entity field of type Money.class?

2007-03-12 Thread tonylmai
Hello all, Say I have a customized class called Money. I would like to model an entity bean called Account that has a field called balance of type Money. @Entity | public class Account implements Serializable { | private Money balance; | | | @Column(nullable=false,

[jboss-user] [Beginners Corner] - Problem looking up EJB session bean (Name not bound)

2007-03-09 Thread tonylmai
Hello all, Can someone help me with a simple context lookup? I have a session bean deployed within JBoss 4.0.4 GA AS, JDK 5. My EJB3 code is as: @Stateless | @Local(AuthenticatorLocal.class) | @Remote(AuthenticatorRemote.class) | public class AuthenticatorBean implements Authenticator {

[jboss-user] [EJB/JBoss] - Problem looking up EJB session bean (Name not bound)

2007-03-09 Thread tonylmai
Hello all, Can someone help me with a simple context lookup? I have a session bean deployed within JBoss 4.0.4 GA AS, JDK 5. My EJB code is as followed: @Stateless | @Local(AuthenticatorLocal.class) | @Remote(AuthenticatorRemote.class) | public class AuthenticatorBean implements

[jboss-user] [JBoss Seam] - Problem looking up EJB session bean (Name not bound)

2007-03-09 Thread tonylmai
Hello all, I orginally posted this question on 'JBoss User - Beginners Corner' and 'JBoss User - EJB/JBoss' forums but got no response. I am hoping to get better luck with this forum. Can someone help me with a simple context lookup? I have a session bean deployed within JBoss 4.0.4 GA AS,

[jboss-user] [JBoss Seam] - Re: Problem looking up EJB session bean (Name not bound)

2007-03-09 Thread tonylmai
cja987, At least I got replies from you. No one seemed to care on the other forums. :(( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4026754#4026754 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026754

[jboss-user] [JBoss Seam] - Re: How to dynamically navigate after identity.login()

2007-03-02 Thread tonylmai
You can override the RuleBasedIdentity.login to redirect the user to the correct page. @Name(org.jboss.seam.security.identity) | @Scope(ScopeType.SESSION) | @Intercept(InterceptionType.AFTER_RESTORE_VIEW) | public class YourNewIdentity extends RuleBasedIdentity { | ... | @Override

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to use @Id @GeneratedValue(strategy=GenerationType.AUTO)

2007-03-01 Thread tonylmai
How does the id get generated? Say I have a simple entity bean with 2 attributes id and desc. Attribute id is tagged with @Id @GeneratedValue(strategy=GenerationType.AUTO). Can I create a new object of this class with just the desc and let Hibernate create the id? In the database end, do I

[jboss-user] [JBoss Seam] - How to use @Id @GeneratedValue(strategy=GenerationType.AUTO)

2007-03-01 Thread tonylmai
My apology for posting the following Persistent/Hibernate question on this board. I had posted it on the Persistent/Hibernate forum but found myself visit this forum more frequent than others. The question is: How does an ID declared as @Id @GeneratedValue(strategy=GenerationType.AUTO) get

[jboss-user] [JBoss Seam] - Re: How to use @Id @GeneratedValue(strategy=GenerationType.A

2007-03-01 Thread tonylmai
It turned out that the @Id @GeneratedValue(strategy=GenerationType.AUTO) worked just fine. The problem with my code was that I had a constructor that takes in the message. In order for the id to be generated by the Persistent layer, I needed to construct the object using the default

[jboss-user] [JBoss Seam] - Injection intermittent problem on the example 'message'

2007-03-01 Thread tonylmai
Hello, I modified the code in the example 'messages' bundled with Seam. I injected a (session) UserAccount to the class MessageManagerBean and modified the findMessages to include a where clause in the query. It worked like a champ and all corresponding messages belong to this user were found

[jboss-user] [JBoss Seam] - Re: ResourceBundle in hebrew / default locale

2007-03-01 Thread tonylmai
Try setting 'he' as the default locale in your browser. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024458#4024458 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024458 ___

[jboss-user] [JBoss Seam] - Re: ResourceBundle in hebrew / default locale

2007-03-01 Thread tonylmai
May I ask how you type Hebrew language into the resourceBundleEditor? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024468#4024468 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024468

[jboss-user] [JBoss Seam] - Re: ResourceBundle in hebrew / default locale

2007-03-01 Thread tonylmai
I guess my question is due to the fact that I don't know how to use international language on a computer. :( I am trying to develop a site with Vietnamese yet I don't know to type Vietnamese using a computer, especially with a tool like Eclipse. I was thinking of asking a developer in Vietnam

[jboss-user] [JBoss Seam] - Re: How to use Seam Identity?

2007-02-28 Thread tonylmai
I got it now. If entityManager was injected as @In then it would use Hibernate query. In earlier code I injected with @PersistenceContext and that was why I was able to use SQL select statement against the database table. Back to overriding the RuleBasedIdentity, the login method allows me to

[jboss-user] [JBoss Seam] - Re: How to use Seam Identity?

2007-02-28 Thread tonylmai
Got it. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024022#4024022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024022 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Changing Locale in Seam?

2007-02-28 Thread tonylmai
I have the following code | public class LocalChanger { | public String englishAction() { | FacesContext context = FacesContext.getCurrentInstance(); | context.getViewRoot().setLocale(Locale.ENGLISH); | return

[jboss-user] [JBoss Seam] - Re: Changing Locale in Seam?

2007-02-28 Thread tonylmai
Seam does make it simpler doesn't it. ;-) Coded it. Will test it out as soon as I complete this half baked module that I've been working on all afternoon. 8( Thank Ricardo. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024056#4024056 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Changing Locale in Seam?

2007-02-28 Thread tonylmai
I replied before I saw your second posting. I like your first code snippet better. That way I can control time and other stuffs. I figured you meant injecting a LocaleSelector so that what I did. Here is how I coded it. | @In | LocaleSelector localeSelector; | | public

[jboss-user] [JBoss Seam] - How does the LoggedInInterceptor in the booking example work

2007-02-27 Thread tonylmai
Can someone help me in understanding how the LoggedInInterceptor in the booking example work? Many thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4023298#4023298 Reply to the post :

[jboss-user] [JBoss Seam] - Re: How does the LoggedInInterceptor in the booking example

2007-02-27 Thread tonylmai
Thanks Garvin. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4023307#4023307 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023307 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: How does the LoggedInInterceptor in the booking example

2007-02-27 Thread tonylmai
My apology, Gavin, not Garvin. ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4023310#4023310 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023310 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Where are the generated SQL db statements for the EJBs?

2007-02-27 Thread tonylmai
I remembered during seam-gen setup process, it asked if we wanted the db tables to be dropped and recreated upon every build. Does it generate the SQL statements for each table corresponding to each Entity bean? If yes, where would the SQLs be located? Once again, many thanks ;-) View the

[jboss-user] [JBoss Seam] - Re: Where are the generated SQL db statements for the EJBs?

2007-02-27 Thread tonylmai
I created the tables and the error went away. What if I modified the entity bean? Would the table got updated automatically? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4023350#4023350 Reply to the post :

[jboss-user] [JBoss Seam] - Error Loading AJAX Library with JSF 1.2 RI

2007-02-27 Thread tonylmai
Hello all, I don't even use AJAX in my app. Perhaps somewhere in the config files that reference this AJAX? Does anyone know where or what to look for that reference this lib? Thanks - Server log - SEVERE: Error Loading Library:

[jboss-user] [JBoss Seam] - How to use Seam Identity?

2007-02-27 Thread tonylmai
I like Seam Identity. It simplifies my login session verification process significantly. What I would like to do next is to outject a LoginSession with account ID, etc... once the user has login. How do I go about overriding/suplementing the Identity.login method? (I am assuming there is an

[jboss-user] [JBoss Seam] - Re: How to use Seam Identity?

2007-02-27 Thread tonylmai
Hi Gavin, I am using Seam 1.1.6, not 1.2 and I received the following error when I copied the Authenticator example code (http://docs.jboss.com/seam/1.2.0.GA/reference/en/html/security.html#d0e6073) Server log --- Caused by: org.jboss.seam.RequiredException: In attribute requires

[jboss-user] [JBoss Seam] - Re: How to use Seam Identity?

2007-02-27 Thread tonylmai
I am using Seam-managed PC. But it's throwing me the above error. Here is a snippet of stacktrace: | 18:07:03,015 INFO [Lifecycle] starting up: org.jboss.seam.security.identity | 18:07:03,562 INFO [Pages] reading pages.xml | 18:07:03,625 ERROR [SeamLoginModule] Error invoking login

[jboss-user] [JBoss Seam] - Re: How to use Seam Identity?

2007-02-27 Thread tonylmai
With the (created=true) flag, I now got this: | 21:54:46,578 INFO [Lifecycle] starting up: org.jboss.seam.security.identity | 21:54:46,734 INFO [Pages] reading pages.xml | 21:54:46,843 INFO [STDOUT] Verify login for tony | 21:54:46,843 ERROR [SeamLoginModule] Error invoking login

[jboss-user] [JBoss Seam] - Re: How to use Seam Identity?

2007-02-27 Thread tonylmai
1.2 did not solve the problem. I am still running into the error: | 23:02:21,453 INFO [Lifecycle] starting up: org.jboss.seam.security.identity | 23:02:22,625 INFO [Pages] reading pages.xml | 23:02:23,546 INFO [STDOUT] Verify login for tony | 23:02:23,718 ERROR [SeamLoginModule] Error

[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2007-02-24 Thread tonylmai
Well this thread is about running the booking example on JBoss with JSF 1.2 RI. And I still can't do that. :-( The booking example deals with MyFaces or at least references it. Yet the suggested steps did not say what to do with it. I use Exadel Studio Pro and I know that they have to tweak

[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2007-02-23 Thread tonylmai
Have anyone been able to run the book example with 4.0GA + JSF 1.2 yet? After followed the guide in here, I still run into problem (see log below). Can someone help? Thanks 11:52:14,921 ERROR [STDERR] Feb 23, 2007 11:52:14 AM com.sun.faces.spi.InjectionProviderFactory createInstance INFO:

[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2007-02-23 Thread tonylmai
I am using RI 1.2. The only other jar I suspect that caused the problem is jsf-facelets.jar. I am using facelets-1.1.12. Isn't it compatible? A only other version that is newer would be facelets-1.2-DEV-20061110. When I used this, JBoss threw this in the log: 19:27:43,125 ERROR [[/webclient]]

[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2007-02-23 Thread tonylmai
I downloaded and unzipped 5.0Beta1 in hoping to run a demo deployed in a JBoss AS that is compatible with JSF 1.2. After running seam-gen for a new project for AS 5.0, I ran the build.xml provided by seam-gen. It deployed a seam-booking.ear (directory) and a seam-booking-dev-ds.xml into the

<    1   2