[jboss-user] [JBoss Tools (users)] - Re: How to create an Oracle connection profile for a Seam pr

2008-11-13 Thread kingcu
I figured it out: the list box on the New Driver Definition dialog got squeezed into two line, then I just made the dialog larger and the Oracle Thin Driver showed up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189248#4189248 Reply to the post : http:/

[jboss-user] [JBoss Tools (users)] - How to create an Oracle connection profile for a Seam projec

2008-11-13 Thread kingcu
My setup is Eclipse 3.3 and JBossTools 2.1.2GA. When creating a new Seam web project, on the Seam Facet dialog, I selected Oracle 10g for database type, then clicking "New" for connection profile. In the "New Connection Profile" list that pops up, I don't see an Oracle connection profile, there

[jboss-user] [JBoss Seam] - Please help: setting up GWT in hosted mode with Seam 2.0

2007-08-09 Thread kingcu
I tried to run GWT in host mode (I need this for debugging GWT code), but got the following exception: java.lang.NullPointerException | org.jboss.seam.servlet.SeamResourceServlet.loadResourceProviders(SeamResourceServlet.java:43) | org.jboss.seam.servlet.SeamResourceServlet.init(Se

[jboss-user] [JBoss Seam] - Re: GWT example: WebRemote method always returns failure

2007-07-31 Thread kingcu
JIRA issue created: http://jira.jboss.org/jira/browse/JBSEAM-1748 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069452#4069452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069452 _

[jboss-user] [JBoss Seam] - Re: GWT example: WebRemote method always returns failure

2007-07-31 Thread kingcu
Just confirmed this works for GWT 1.3.3, but not 1.4.10. I will open a JIRA issue for this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069451#4069451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069451 __

[jboss-user] [JBoss Seam] - Re: I'm back

2007-07-31 Thread kingcu
Hi Pete, Would you be able to forward the following issue (GWT - Seam remoting integration) to Michael Neale, the author of the Seam GWT example. Thanks, wt http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114829 View the original post : http://www.jboss.com/index.html?module=bb&op=v

[jboss-user] [JBoss Seam] - Re: GWT example: WebRemote method always returns failure

2007-07-31 Thread kingcu
BTW, anyone succeeded in running GWT in hosted mode? I tried "ant gwt-shell", it's complaining about "can't load module". I then manually created a command line script following GWT's examples, it's complaining about "can't connect to resource seam/resource/gwt". View the original post : http

[jboss-user] [JBoss Seam] - GWT example: WebRemote method always returns failure

2007-07-30 Thread kingcu
This is an issue regarding @WebRemote in the seam-gwt example, running on JBoss 4.2.0 with Seam 2.0.0 B1. The GWT compilation output files are shipped with seam 2.0 under examples/remoting/gwt/view and there are 16 files, when I just run "ant deploy" (which uses the shipped GWT files). It works

[jboss-user] [EJB 3.0] - Problem using orm.xml instead of annotation

2007-07-27 Thread kingcu
Hi, I have a bunch of entities with persistence annotations and all worked well. Now that I need to remove the annotation and instead, use orm.xml to define the mapping. I did that for one of the entities and tried to deploy to JBoss 4.2.0 GA, but got an exception. Here is my orm.xml: |

[jboss-user] [JBoss Seam] - Re: Gwt integration in Seam2.0.0.Beta1 doens't work

2007-07-27 Thread kingcu
Have you tried examples/remoting/gwt? That works for me just fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068240#4068240 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068240 ___

[jboss-user] [Clustering/JBoss] - Maximum number of nodes supported?

2007-07-25 Thread kingcu
Hi, We are planning on a J2EE application with fair amount of web flow and also expected even more flow in the future. We want to achieve the best performance/price ratio, so what we planned is to use commodity quality desktop PCs to construct a server grid. JBoss AS as a leading open source J2

[jboss-user] [JBoss Seam] - Re: Seam extended EL + Trinidad

2007-07-18 Thread kingcu
Is this working now with Seam 2.0 B1 and Trinidad 1.0.1/1.2.1? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065551#4065551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065551 ___

[jboss-user] [JBoss Seam] - Re: Please help: problem integrating Trinidad, Richfaces and

2007-07-18 Thread kingcu
I found the problem. I had | in my components.xml and apparently Seam 2.0 doesn't like the conversation-is-long-running-parameter. Once I remove that, it gets pass that. But then, I got another exception on a component that uses Richfaces API (I am using rich:tree and need to build the t

[jboss-user] [JBoss Seam] - Please help: problem integrating Trinidad, Richfaces and Sea

2007-07-18 Thread kingcu
This problem is for integrating Trinidad 1.0.1, Richfaces 3.0.1 and Seam 2.0.0 Beta1 running on JBoss AS 4.2.0 GA. I know there is a seamdiscs example that shows the integration. By checking out the seam project from CVS using tag JBoss_Seam_2_0_0_B1, I had no problem building, deploying and run

[jboss-user] [JBoss Seam] - Re: Exception on running the seamdiscs example

2007-07-17 Thread kingcu
Should I run ant at the project root? Just did sync with CVS and all jars under drools/lib folder are gone, causing Eclipse to complain about missing required library. It seems to me that most of the time, the seam project is in a broken state, I just can't find the gap when it is in good mode,

[jboss-user] [JBoss Seam] - Exception on running the seamdiscs example

2007-07-17 Thread kingcu
I built the seamdiscs example from cvs with no problem, and deployed with no problem either. When I open the browser and point it to the url "http://localhost:8080/seam-discs";, the page doesn't load and I got the following exception: 12:39:34,765 INFO [Contexts] starting up: org.jboss.seam.se

[jboss-user] [JBoss Seam] - Latest info on Trinidad-Seam integration?

2007-07-12 Thread kingcu
I found this on apache's wiki http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail. However, it's about Seam 1.2. Now that Seam is on 2.0 and Trinidad is on 1.2.1, I wonder if there is any updated information regarding the integration of the two for their latest versions. Also, when

[jboss-user] [JBoss Seam] - Re: Problem running the seamdiscs example

2007-06-11 Thread kingcu
Just found two more issues while playing with the seamdiscs example. 1. The EntityQuery "artists" only retrieves the first 5 results, which is fine for the artist table when paging is desired. However, when editing a disc, the artist dropdown still uses this query and it only shows first 5 arti

[jboss-user] [JBoss Seam] - Re: Problem running the seamdiscs example

2007-06-11 Thread kingcu
Thank you! It works now after updating from the CVS. I have one more question: the packaging of seamdiscs.ear looks a little wierd to me. It has WEB-INF folder directly under the ear file, while it's also package under the war file at the same time. Also, it seems that the META-INF folder of th

[jboss-user] [JBoss Seam] - Re: Problem running the seamdiscs example

2007-06-11 Thread kingcu
It looks like the exceptions are too long to put into one post. Here are the others: 2007-06-11 13:04:33,794 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-discs]] Session event listener threw exception | java.lang.NoClassDefFoundError | at org.apache.cata

[jboss-user] [JBoss Seam] - Problem running the seamdiscs example

2007-06-11 Thread kingcu
Hi, I am getting the following exceptions when running the seamdiscs example on JBoss AS 4.2.0 GA. What I did are: 1. Download and install JBoss AS 4.2.0 GA; 2. Check out the jboss-seam module from CVS; 3. Run ant under the project folder; 4. Run ant under jboss-seam\trinidad; 5. Modify build.pr

[jboss-user] [JBoss Seam] - Re: EntityHome for nested entity CRUD?

2007-05-25 Thread kingcu
Thank you both for the help. Now, I got it to work by adding another @Role to the BusinessHome. But, I had to create a second page for creating the child (the page is almost identical to the page creating the parent, except for the different name used for the Home component), which is a little l

[jboss-user] [JBoss Seam] - Re: EntityHome for nested entity CRUD?

2007-05-24 Thread kingcu
Because the one-to-many relation is on the Business entity itself, both parent and child have the same EntityHome class, which is BusinessHome. Accordingly, they will have the same Seam component name - "businessHome". And I don't think there can be two Seam components with teh same name within

[jboss-user] [JBoss Seam] - Re: EntityHome for nested entity CRUD?

2007-05-24 Thread kingcu
Converter is not needed for id, since it's a Long. Now I can pass the id from the page to Home and use getEntityManager().find() to load the parent business entity and wire it up with the child. But we are kind of falling back to the old style, I was hoping that there be a way to inject the pare

[jboss-user] [JBoss Seam] - Re: EntityHome for nested entity CRUD?

2007-05-24 Thread kingcu
Could you elaborate a little more on this? I only know JSF converter is used to convert between string representation and object type. However, parentBusiness here is a managed entity instance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048389#4048389 R

[jboss-user] [JBoss Seam] - Re: Need some clarification about seam-gen-ed EntityHome cla

2007-05-24 Thread kingcu
Thanks a lot, Gavin. That really helps. BTW, could you please comment on my other post about using EntityHome for nested entities? http://www.jboss.com/index.html?module=bb&op=viewtopic&t=109328 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048347#4048347

[jboss-user] [JBoss Seam] - Re: EntityHome for nested entity CRUD?

2007-05-24 Thread kingcu
Tried to pass parentBusiness through , but got java.lang.IllegalArgumentException. It looks like only allows primitive types plus the String type. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048344#4048344 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Re: Need some clarification about seam-gen-ed EntityHome cla

2007-05-24 Thread kingcu
Yes, one Widget has many Feeds. But, both WidgetHome and FeedHome's isWired() (generated by seam-gen) simply return true, that's where I am confused. To me, FeedHome.isWired() should be something like: return getInstance().getWidget() != null; View the original post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - EntityHome for nested entity CRUD?

2007-05-23 Thread kingcu
Hi, I have an entity named Business defined as below: @Entity | public class Business { | | @ManyToOne(fetch = FetchType.EAGER) | @JoinColumn(name = "PARENT_BUSINESS_ID", nullable = true) | private Business parentBusiness; | | @OneToMany(fetch = FetchType.LAZY)

[jboss-user] [JBoss Seam] - Re: Need some clarification about seam-gen-ed EntityHome cla

2007-05-22 Thread kingcu
"[EMAIL PROTECTED]" wrote : You only "wire" things from the many end of a one-to-many association. | | If there are no -to-one associations originating at the entity, isWired() always returns true, and wire() is empty. But if there are -to-one associations originating at the entity, does is

[jboss-user] [JBoss Seam] - Need some clarification about seam-gen-ed EntityHome class

2007-05-21 Thread kingcu
Hi, I used "seam generate-entities" to generate a complete CRUD application from an existing database schema. Everything works great! I just need some clarification/education to better understand EntityHome. Here is the background description: there is a bidirectional one-to-many relation betw

[jboss-user] [JBoss Seam] - Re: First JBoss Seam book released

2007-05-17 Thread kingcu
Then you better change the subtitle to "From Dummy to Novice", because the word "Professional" is not something one can get to after reading this book and thus is extremely misleading. "kasim" wrote : "smithbstl" wrote : I skimmed the other book:"Beginning JBoss Seam: From Novice to Profession

[jboss-user] [JBoss Seam] - Security: access control at entity level?

2007-05-02 Thread kingcu
After reading chapter 20 of the Seam book, it seems to me that Seam has built in security support for access control at the method level of session beans. I wonder if the @Restrict annotation can be put on entities to control access to certain entities. Here is my situation: I have some busines

[jboss-user] [JBoss Seam] - Re: Exception on servlet processing request

2007-04-09 Thread kingcu
"[EMAIL PROTECTED]" wrote : Do you have or something similar in your components.xml? If not, read up on how to wrap non-faces servlets with the Seam context filter in the Seam documentation. | I have that in components.xml, but it seems like the url-pattern "/reporting" in components.xml do

[jboss-user] [JBoss Seam] - Exception on servlet processing request

2007-04-09 Thread kingcu
Hello I am getting the following exceptions when one of the servlets gets an incoming request. Any idea? Thanks, Tong | 13:26:09,680 ERROR [ExceptionFilter] uncaught exception | java.lang.IllegalStateException: No application context active | at org.jboss.seam.Component.forName(Compo

[jboss-user] [JBoss Seam] - Re: Question regarding page parameter

2007-04-04 Thread kingcu
I read the pages.dtd to find the action element and got it working with that. Here is how I did it: 1. Add a String property "selectedTab" to the backing EntityHome of the main page; 2. In each child page's Seam page config XML (child.page.xml), add an action element that calls "setSelectedTab(

[jboss-user] [JBoss Seam] - Question regarding page parameter

2007-04-04 Thread kingcu
Hi, I have a question on using the page parameters. Here is the situation: I have a main page and some child pages, navigation goes from the main page to the child pages and then back to the main page; some state on the main page needs to be kept when going to the child page and restored later

[jboss-user] [JBoss Seam] - Re: help on s:fileUpload

2007-04-02 Thread kingcu
Just realized that s:button doesn't submit a form, so changed it to h:commandButton and it worked. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033824#4033824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033824 ___

[jboss-user] [JBoss Seam] - help on s:fileUpload

2007-04-02 Thread kingcu
Seam version 1.2.1. I am always getting NULL value for the upload file. I tried using both InputStream and byte[]; I also tried putting the upload file property in a SLSB and a class that extends EntityHome, but neither worked. Anyway here is my code: | | |

[jboss-user] [JBoss Seam] - Re: Hot deployment of JSF file at development time?

2007-03-30 Thread kingcu
Just switched to MyEclipse: hot deploy worked perfectly out of the box, no extra config needed. Although I love most of the JBoss softwares, I have to say JBoss Eclipse really s**ked. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033376#4033376 Reply to the

[jboss-user] [JBoss Seam] - Re: Hot deployment of JSF file at development time?

2007-03-30 Thread kingcu
I am trying to avoid using Ant. But I guess the reason why seam-gen is recommended is because JBoss Eclipse's deficiency on supporting hot deployment. I've used IBM WSAD 5.1 before and I could edit a page and switch to the browser immediately to see the change. Just hope the Red Hat Deverloper S

[jboss-user] [JBoss Seam] - Hot deployment of JSF file at development time?

2007-03-30 Thread kingcu
Here is what I am trying to achieve: at development time, you often need to change a page multiple times to get a satisfied result; but redeploying the whole EAR every time a small change is made is tedious and time consuming. So, I like to find a way to allow me make changes to the JSF files an

[jboss-user] [JBoss Seam] - seam-gen reverse engineer doesn't recognize link table

2007-03-29 Thread kingcu
I have a one-to-many relationship, which involves 3 database tables: a table for the one side, a table for the many side and a link table. After I run seam generate-entities, it created 3 entity beans, instead of 2 as I would expect! I can probably get around this by removing the link table and

[jboss-user] [JBoss Seam] - Re: Can't get seam generate-entities to work.

2007-03-29 Thread kingcu
That worked for me. Thank you very much for the prompt help. BTW, the full file name is seam-gen.reveng.xml. Also, is this a generic fix for using seam-gen with Oracle DB? OR it's just a fix for my specific situation? View the original post : http://www.jboss.com/index.html?module=bb&op=view

[jboss-user] [JBoss Seam] - Re: Can't get seam generate-entities to work.

2007-03-29 Thread kingcu
I didn't get the complete log when redirecting the output to a log file. Anyway, here is the last past of the output missing from my last post. As you can see, the build failed without creating the source files. | [hibernate] An exception occurred while running exporter #2:hbm2java (Generate

[jboss-user] [JBoss Seam] - Re: Can't get seam generate-entities to work.

2007-03-29 Thread kingcu
Ok, it looks like lower/upper case does matter for seam-gen. I used "WAS" as the schema name, which matches exactly what I see in Oracle Enterprise Manager, however, I got the following exceptions. Any idea? | Buildfile: C:\jboss-seam-1.2.1.GA\seam-gen\build.xml | | validate-workspace:

[jboss-user] [JBoss Seam] - Can't get seam generate-entities to work.

2007-03-28 Thread kingcu
Hi everyone, I have problem with the seam generate-entities command. After the following series of commands, nothing happened: 1. seam setup (enter all the configuration information) 2. seam new-project (new project created) 3. seam generate-entities (I am supposed to get all the CRUD files cr

[jboss-user] [JBoss Seam] - Please help: problem with running the hotel booking example

2007-03-23 Thread kingcu
Greetings, everyone! I am having a problem running the booking example: every time I typed in a username and tabbed into the next textbox "Name", the browser takes me into the seam debug page; and there are some exceptions thrown (attached below) saying "Exception while invoking expression #{re

[jboss-user] [JBoss Seam] - Hotel Booking Example: doc and src are out of sync

2007-03-21 Thread kingcu
Dear Seam Project Team, While reading Seam Reference Documentation (1.2.0 patch1), in section 1.6.2, it mentioned: "Finally, the LoggedIn annotation and the LoggedInInterceptor are used to protect actions that require a logged in user.". However, when looking at the source directory jboss-sea

[jboss-user] [Installation, Configuration & Deployment] - Re: How to install both JBoss 4.0.1sp1 and 4.0.5GA on the sa

2007-02-12 Thread kingcu
Thanks for the great wiki link. Can you please further point me to some link that explains how to configure multiple IP address on a single NIC? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015110#4015110 Reply to the post : http://www.jboss.com/index.htm

[jboss-user] [Installation, Configuration & Deployment] - How to install both JBoss 4.0.1sp1 and 4.0.5GA on the same s

2007-02-09 Thread kingcu
Hi friends, Can someone tell me how to install both JBoss 4.0.1sp1 and 4.0.5GA on the same server? 4.0.1 is needed for one of our old EJB 1.1 app, while 4.0.5 is for another EJB3 app. Thanks, wt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013928#4013928

[jboss-user] [Installation, Configuration & Deployment] - Where to place common JARs?

2007-02-01 Thread kingcu
Hi everyone, I am trouble shooting my JBoss AS 4.0.1sp1 deployment, but before asking help, I'd like to gain some knowledge on deployment and try it myself first. So, here is what I'd like to find out: let's say I need to deploy two web applications under the same server, and both web apps are

[jboss-user] [Beginners Corner] - Re: Please help with EJB3 ClassCastException.

2007-01-13 Thread kingcu
As for jboss.xml, I don't have it in my ear; I think if I use annotation, I can avoid xml configuration. Also, since JBoss 4.0.5 doesn't support J2EE 5 yet, my application ear is still J2EE 1.4; not sure if this will cause any problem. Here is what my application.xml looks like: | http://

[jboss-user] [Beginners Corner] - Re: Please help with EJB3 ClassCastException.

2007-01-13 Thread kingcu
Here is the exception: 22:33:03,944 ERROR [[action]] Servlet.service() for servlet action threw exception | java.lang.ClassCastException | at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229) | at javax.rmi.PortableRemoteObject.narrow(Portab

[jboss-user] [Beginners Corner] - Re: Please help with EJB3 ClassCastException.

2007-01-12 Thread kingcu
I can see the right jndi names in jmx-console. And in fact, I was using the default jndi names initially, but did not work; then I changed to custom jndi. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001185#4001185 Reply to the post : http://www.jboss.com

[jboss-user] [Beginners Corner] - Please help with EJB3 ClassCastException.

2007-01-12 Thread kingcu
Hi Friends, I am writing my first ejb 3 project that has a simple stateless session bean, which is accessed by my struts action class. Here is how the bean class looks like: @Stateless | @Local ({BeanLocal.class}) | @LocalBinding (jndiBinding="myapp/BeanL

[jboss-user] [EJB 3.0] - Installing EJB3 on JBoss AS 4.0.1 sp1?

2007-01-03 Thread kingcu
Hi, I am wonder how to install EJB3 on AS 4.0.1, the reason being our production system is on 4.0.1 and can't be upgraded easily at this time, which our new feature development calls for EJB3. Thanks, Tong View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997

[jboss-user] [Installation, Configuration & Deployment] - Re: Got NoClassDefFoundError when deployed to production ser

2006-11-09 Thread kingcu
Just got my problem fixed, it's because JFreeChart calls Java2D, which requires a display environment, which is not available on the Linux server. So, I changed the batch file to add -Djava.awt.headless=true to tell JVM to use a headless display. See below link for details: http://java.sun.com/

[jboss-user] [Installation, Configuration & Deployment] - Re: Got NoClassDefFoundError when deployed to production ser

2006-11-09 Thread kingcu
The class is PiePlot, which is part of JFreeChart.jar, and this jar IS there in the WAR file. I thought any class under WEB-INF/lib is automatically under the classpath, otherwise it would have failed on my local machine also. Or maybe I am missing something like the difference between running i

[jboss-user] [Installation, Configuration & Deployment] - Got NoClassDefFoundError when deployed to production server,

2006-11-08 Thread kingcu
Greetings, everyone. I am encountering a weird problem with deployment. I am using JBoss 4.0.1 and JBoss Eclipse IDE 1.6. When running the web app on my local machine inside JBoss IDE (actually on my local JBoss 4.0.1 server), it works fine with no problem. However, after I deploy my EAR onto

[jboss-user] [JBoss Eclipse IDE (users)] - Problem with deployment

2006-11-08 Thread kingcu
I am using JBoss IDE 1.6 (built on Eclipse) and developing a web app that utilize JFreeChart (through Cewolf tags in JSPs). It works fine when I ran it on my local machine through the IDE debug feature. However, when I deploy it onto the production server (JBoss 4.0.1), the chart is not drawn a

[jboss-user] [JBoss Eclipse IDE (users)] - How to import a WAR file and run it as a web project?

2006-11-03 Thread kingcu
New to JBoss IDE: I am using JBoss IDE 1.6 GA and trying to bring up a WAR file as a web project and finally to run it as a web app. Can someone give some directions? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983109#3983109 Reply to the post :

[jboss-user] [JBoss Eclipse IDE (users)] - Hot code replacing in debugging?

2006-10-24 Thread kingcu
Hi everyone, I've beening using WSAD 5.1/RAD 6 in my previous work and now I am working in another company that uses JBoss Eclipse IDE. When I was using WSAD, I was able to make a change in the code (JSP or Servlet or EJB) and without restarting the testing server, to see the change in the ru

[jboss-user] [JBoss Eclipse IDE (users)] - How to plug in Struts for JBoss Eclipse IDE?

2006-10-11 Thread kingcu
Any hint/document link is appreciated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977549#3977549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977549 ___ jboss-us