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

2007-04-12 Thread sjmenden
Use seams built in enum handling:

Here is an example of handling a True/False Enum


  | 
  | Active
  | *
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 



  | public enum BooleanEnum {
  | TRUE("TRUE"),
  | FALSE("FALSE");
  | private final String name;
  | 
  | /**
  |  * Prevent instantiation and subclassing with a private constructor.
  |  */
  | private BooleanEnum(String name) {
  | this.name = name;
  | }
  | 
  | private static final Map INSTANCES = new HashMap();
  | 
  | static {
  | INSTANCES.put(TRUE.toString(), TRUE);
  | INSTANCES.put(FALSE.toString(), FALSE);
  | }
  | 
  | // ** Common Methods ** //
  | 
  | public String toString() {
  | return name;
  | }
  | 
  | Object readResolve() {
  | return getInstance(name);
  | }
  | 
  | public static JobStatus getInstance(String name) {
  | return (JobStatus) INSTANCES.get(name);
  | }
  | }
  | 

And in the entity:


  | @Enumerated(EnumType.STRING)
  | @Column(name="ACTIVE")
  | @NotNull
  | public BooleanEnum getActive() {
  | return active;
  | }
  | public void setActive(BooleanEnum active) {
  | this.active = active;
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036737#4036737

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036737
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: AUto generated id fileds

2007-03-31 Thread sjmenden
Ran into the same problem, make sure in your Atom.java Entity the id field is 
annotated with a @Generated, reveng won't put it there by default, it will only 
put the @Id

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033497#4033497

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - problem getting exceptions to be directed to /error.xhtml

2007-03-07 Thread sjmenden
I need some assistence getting my exceptions routed to my own /error.xhtml 
page.  I have a seam gen'd project from around 3 days old CVS.

No matter what I do, I can't get seam to redirect to the /error.xhtml after an 
exception, please help.

I am getting the page that looks like:
An Error Occurred:

+ Stack Trace
+ Component Tree
+ Scoped Variables


Here is my code, where am I going wrong?  I also removed the jboss-seam-debug 
jar but that only prevents me from seeing the debug.seam page, I still get this 
page, and I want my error.xhtml.


components.xml:

  | 
  | 
  | 
  | 

pages.xml

  | http://jboss.com/products/seam/pages-1.2.dtd";>
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | Not found
  | 
  | 
  | 
  | 
  | 
  | Not found
  | 
  | 
  | 
  | 
  | 
  | 
  | Another user changed the same data, please try 
again
  | 
  | 
  | 
  | 
  | 
  | You don't have permission to do this
  | 
  | 
  | 
  | 
  | 
  | Please log in first
  | 
  | 
  |  
  | 
  | 
  | Unexpected error, please try again
  | 
  | 
  | 
  | 
  | 



The actual Exception that is getting thrown is:
org.jboss.seam.framework.EntityNotFoundException

because I am testing with an entity id on my home object that doesn't exist.


Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026101#4026101

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to trigger a new Entity Instance with Home Object in sea

2007-03-03 Thread sjmenden
I used seam gen to generate my entities for CRUD operations and it appears to 
work great at first.  However, there is an inheirent problem.  On the List page 
for my entity, I can create my entity one time and everything works great.  The 
next time I go to create another entity, the previous one must still be 
resident becuase I get a duplicate identifier error from Hibernate, because it 
is attempting to persist the same entity.

This is default behavior with the seam generated CRUD app, and I am wondering 
how to get around it, I know the answer, I just don't know where to put the 
code.  I know that when clicking on the Create Entity, I should somehow trigger 
a new instance of the Entity in the Home object to be created.  

What confuses me is the done button has a propogation="end" on it, which I 
assumed would end the conversation and a new one would be created, thus, a new 
reference to my entityHome object, but that is not the case, there is still the 
reference to the old one.

Thanks for the help.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024877#4024877

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Any experience with SeamFaceletViewHandler?

2007-02-24 Thread sjmenden
double post,  apologizes:curses back button:

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021807#4021807

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021807
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Any experience with SeamFaceletViewHandler?

2007-02-24 Thread sjmenden
Speak for yourself man, just copy one of the examples, or do seam gen, and that 
is it, start coding.  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021806#4021806

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Latest CVS seam-gen...

2007-02-22 Thread sjmenden
btw, running 4.0.5

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020724#4020724

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020724
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Latest CVS seam-gen..."The page isn't redirecting properly"

2007-02-22 Thread sjmenden
Using latest code in CVS, when I generate a basic project with seam-gen and two 
enties, upon hitting http://localhost:8080/myapp for the first time I receive:

"The page isn't redirecting properly"

I tried this by generating another project with existing entities, same issue.

My previous apps that I didn't seam-gen work fine.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020716#4020716

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020716
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Who uses EntityHome objects?

2007-02-07 Thread sjmenden
I use the EntityHome exclusively and I can't live without it.  It 
significantely reduced my code and made everything much more maintainable.  I 
do have a lot of customer logic in my Class that extends EntityHome, but this 
is expected.  The main point is, I get full CRUD from one class and one xhtml 
page.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012638#4012638

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012638
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Can't get the Seam Exception Handling feature to work.

2007-01-22 Thread sjmenden
I am having the same problem, I'm eager to see the solution to this.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004884#4004884

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with exceptions.xml

2006-12-30 Thread sjmenden
I am having problems getting exceptions.xml working.  I want to get a simple 
scenario working of redirecting all exceptions to /error.xhtml.

exceptions.xml

  | 
  |
  |   Unexpected failure
  |   
  |
  | 
  | 

And I am testing this by throwing a NPE in one of my EJBs(extends EntityHome).  
I am not getting the error page, and I am getting the debug.seam output embeded 
in my template.xhtml with the url of the page I was calling, in this case 
ticket.seam. The output is all crammed on the left hand side of the page in the 
navigation.

Any ideas how I can fix this.  I even removed the debug jar and I still got 
that debug output (not the full debug.seam page though).  I even tried:


  | 
  | false
  | @jndiPattern@
  | 
  | 
  | and
  | 
  | 
  | org.jboss.seam.core.init.debug
  | false
  | 
  | 

but it changed nothing.


Optimally, I would like to keep the debug.seam page so I can reference it, but 
I would in general like to forward all exceptions to /error.xhtml.  What am I 
doing wrong?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997020#3997020

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997020
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Classloading problem I think.

2006-12-29 Thread sjmenden
Not at all, I commented out the Injecting of the FacesMessages and I haven't 
gotten the exception all day long, strange.

btw, how do I add messages to the facesMessages in a Class that extends 
EntityHome, because there is no direct access to facesMessages in Home since it 
is private and not visible to subclasses.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996926#3996926

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996926
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Classloading problem I think.

2006-12-28 Thread sjmenden
I apologize for the lack of information:

The exception is reliable to reproduce, but seems to happen at random.  It 
happened last when I executed 4 actions that interacted with drools 
workingMemory in the backend.  It worked the first 3 actions and failed the 
4th.  However, previously, it worked the first 2 and failed the 3rd.  Always 
with a very similar exception:


  | javax.faces.el.EvaluationException: Cannot get value for expression 
'#{org.jboss.seam.core.facesMessages}'
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:51)
  | at 
org.jboss.seam.Component.getInstanceFromFactory(Component.java:1668)
  | at org.jboss.seam.Component.getInstance(Component.java:1617)
  | at org.jboss.seam.Component.getInstance(Component.java:1594)
  | at org.jboss.seam.Component.getInstanceToInject(Component.java:1844)
  | at org.jboss.seam.Component.injectFields(Component.java:1344)
  | at org.jboss.seam.Component.inject(Component.java:1114)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
  | at sun.reflect.GeneratedMethodAccessor2964.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | at sun.reflect.GeneratedMethodAccessor2963.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
  | at sun.reflect.GeneratedMethodAccessor2962.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
com.fi.apps.annotations.LoggedInInterceptor.checkLoggedIn(LoggedInInterceptor.java:35)
  | at sun.reflect.GeneratedMethodAccessor2961.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:79)
  | at sun.reflect.GeneratedMethodAccessor2960.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
  | at sun.reflect.GeneratedMethodAccessor2965.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:25)
  | at org.j

[jboss-user] [JBoss Seam] - Classloading problem I think.

2006-12-28 Thread sjmenden
I am consistently getting long exceptions with the below as the root cause.   I 
believe this is from a classloading conflict, do you guys have any hints 
whatsovever as to how to trouble shoot this?  I'm puzzled, and the exception is 
not helpful.


  | Caused by: java.lang.NullPointerException
  | at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | at 
org.jboss.seam.jsf.SeamApplication11.getPropertyResolver(SeamApplication11.java:168)
  | at 
org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
  | at 
org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
  | ... 127 more
  | 


lib dir listing:

  | [EMAIL PROTECTED] lib]# ll -R
  | .:
  | total 26924
  | -rw-r--r-- 1 root root 1034049 Dec  8 14:27 ant.jar
  | -rw-r--r-- 1 root root9180 Dec  8 14:27 ant-launcher.jar
  | -rw-r--r-- 1 root root  421008 Dec  8 14:27 ant-nodeps.jar
  | -rw-r--r-- 1 root root  188671 Dec  8 14:27 commons-beanutils-1.7.0.jar
  | -rw-r--r-- 1 root root   46725 Dec  8 14:27 commons-codec-1.3.jar
  | -rw-r--r-- 1 root root  559366 Dec  8 14:27 commons-collections-3.1.jar
  | -rw-r--r-- 1 root root  168446 Dec  8 14:27 commons-digester-1.6.jar
  | -rw-r--r-- 1 root root  112341 Dec  8 14:27 commons-el-1.0.jar
  | -rw-r--r-- 1 root root   23464 Dec 26 20:26 commons-email-1.0.jar
  | -rw-r--r-- 1 root root   22379 Dec 12 10:35 commons-fileupload.jar
  | -rw-r--r-- 1 root root   61562 Dec 12 10:36 commons-io-1.1.jar
  | drwxr-xr-x 2 root root4096 Dec  8 14:39 drools
  | -rw-r--r-- 1 root root   24432 Dec  8 14:27 el-api.jar
  | -rw-r--r-- 1 root root   97471 Dec  8 14:27 el-ri.jar
  | -rw-r--r-- 1 root root 2574777 Dec  8 14:27 hibernate-all.jar
  | -rw-r--r-- 1 root root  635956 Dec  8 14:27 hsqldb.jar
  | -rw-r--r-- 1 root root   50493 Dec  8 14:27 javax.servlet.jsp.jar
  | -rw-r--r-- 1 root root  672720 Dec  8 14:27 jboss-aop-jdk50.jar
  | -rw-r--r-- 1 root root  658606 Dec  8 14:27 jboss-cache-jdk50.jar
  | -rw-r--r-- 1 root root 8210655 Dec  8 14:27 jboss-ejb3-all.jar
  | -rw-r--r-- 1 root root5096 Dec  8 14:27 jboss-seam-debug.jar
  | -rw-r--r-- 1 root root  627241 Dec  8 14:27 jboss-seam.jar
  | -rw-r--r-- 1 root root   70801 Dec  8 14:27 jboss-seam-ui.jar
  | -rw-r--r-- 1 root root  600277 Dec  8 14:27 jbpm-3.1.2.jar
  | -rw-r--r-- 1 root root 1821443 Dec  8 14:27 jgroups.jar
  | -rw-r--r-- 1 root root  291366 Dec  8 14:27 jsf-facelets.jar
  | -rw-r--r-- 1 root root   16923 Dec  8 14:27 jstl-1.1.0.jar
  | -rw-r--r-- 1 root root   33215 Dec 26 20:18 mailer.jar
  | -rw-r--r-- 1 root root  783685 Dec  8 14:27 mailstuff.jar
  | -rw-r--r-- 1 root root  249563 Dec  8 14:27 myfaces-api-1.1.4.jar
  | -rw-r--r-- 1 root root  524089 Dec  8 14:27 myfaces-impl-1.1.4.jar
  | -rw-r--r-- 1 root root   16878 Dec  8 14:27 portlet-api-lib.jar
  | -rw-r--r-- 1 root root1172 Dec  8 14:27 readme.txt
  | -rw-r--r-- 1 root root   97523 Dec  8 14:27 servlet-api.jar
  | -rw-r--r-- 1 root root  653510 Dec  8 14:27 testng-4.5.1-jdk15.jar
  | -rw-r--r-- 1 root root 4717585 Dec  8 14:27 thirdparty-all.jar
  | -rw-r--r-- 1 root root 1281201 Dec 12 10:35 tomahawk-1.1.3.jar
  | 
  | ./drools:
  | total 3172
  | -rw-r--r-- 1 root root 443432 Dec  8 14:39 antlr-2.7.6.jar
  | -rw-r--r-- 1 root root 546498 Dec  8 14:39 antlr-3.0ea8.jar
  | -rw-r--r-- 1 root root  36846 Dec  8 14:39 commons-jci-core-1.0-406301.jar
  | -rw-r--r-- 1 root root  10802 Dec  8 14:39 commons-jci-janino-2.4.3.jar
  | -rw-r--r-- 1 root root 207723 Dec  8 14:39 commons-lang-2.1.jar
  | -rw-r--r-- 1 root root  26202 Dec  8 14:39 commons-logging-api-1.0.4.jar
  | -rw-r--r-- 1 root root 635207 Dec  8 14:39 drools-compiler-3.0.5.jar
  | -rw-r--r-- 1 root root 550976 Dec  8 14:39 drools-core-3.0.5.jar
  | -rw-r--r-- 1 root root 383546 Dec  8 14:39 janino-2.4.3.jar
  | -rw-r--r-- 1 root root 358843 Dec  8 14:39 stringtemplate-2.3b6.jar
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996777#3996777

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996777
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Any experience with SeamFaceletViewHandler?

2006-12-26 Thread sjmenden
Speak for yourself, just follow one of the example projects as a template.  
Setting everything up has been the easiest experience for me.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996350#3996350

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996350
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem injecting drools WorkingMemory

2006-12-08 Thread sjmenden
I am following the example as closely as I possibly can.  I can not track seam 
to track down this problem.

Here is the directory structure of the drools example deployed and my 
application deployed:

JBoss- seam

EAR contents:

  | drwxr-xr-x 3 root root   4096 Dec  8 11:00 drools
  | drwxr-xr-x 4 root root   4096 Dec  8 11:00 jboss-seam-drools-exp.war
  | -rw-r--r-- 1 root root   3005 Dec  8 11:00 jboss-seam-drools.jar
  | -rw-r--r-- 1 root root 627241 Dec  8 11:00 jboss-seam.jar
  | drwxr-xr-x 2 root root   4096 Dec  8 11:00 lib
  | drwxr-xr-x 2 root root   4096 Dec  8 11:00 META-INF
  | -rw-r--r-- 1 root root923 Dec  8 11:00 numberguess.drl
  | -rw-r--r-- 1 root root   1026 Dec  8 11:00 pageflow.jpdl.xml
  | 

drools/lib:

  | -rw-r--r-- 1 root root 443432 Dec  8 11:00 antlr-2.7.6.jar
  | -rw-r--r-- 1 root root 546498 Dec  8 11:00 antlr-3.0ea8.jar
  | -rw-r--r-- 1 root root  36846 Dec  8 11:00 commons-jci-core-1.0-406301.jar
  | -rw-r--r-- 1 root root  10802 Dec  8 11:00 commons-jci-janino-2.4.3.jar
  | -rw-r--r-- 1 root root 207723 Dec  8 11:00 commons-lang-2.1.jar
  | -rw-r--r-- 1 root root  26202 Dec  8 11:00 commons-logging-api-1.0.4.jar
  | -rw-r--r-- 1 root root 635207 Dec  8 11:00 drools-compiler-3.0.5.jar
  | -rw-r--r-- 1 root root 550976 Dec  8 11:00 drools-core-3.0.5.jar
  | -rw-r--r-- 1 root root 383546 Dec  8 11:00 janino-2.4.3.jar
  | -rw-r--r-- 1 root root 358843 Dec  8 11:00 stringtemplate-2.3b6.jar
  | 

lib:

  | jbpm-3.1.2.jar
  | 



My Purchasing App 

EAR contents:

  | drwxr-xr-x 3 root root   4096 Dec  8 11:11 drools
  | drwxr-xr-x 4 root root   4096 Dec  8 11:11 purchasing.jar
  | drwxr-xr-x 4 root root   4096 Dec  8 11:11 purchasing.war
  | -rw-r--r-- 1 root root 619971 Dec  8 11:11 jboss-seam.jar
  | -rw-r--r-- 1 root root 600277 Dec  8 11:11 jbpm-3.1.2.jar
  | drwxr-xr-x 2 root root   4096 Dec  8 11:11 META-INF
  | -rw-r--r-- 1 root root359 Dec  8 11:11 purchasingRules.drl
  | 

drools/lib:

  | -rw-r--r-- 1 root root 443432 Dec  8 11:11 antlr-2.7.6.jar
  | -rw-r--r-- 1 root root 546498 Dec  8 11:11 antlr-3.0ea8.jar
  | -rw-r--r-- 1 root root  36846 Dec  8 11:11 commons-jci-core-1.0-406301.jar
  | -rw-r--r-- 1 root root  10802 Dec  8 11:11 commons-jci-janino-2.4.3.jar
  | -rw-r--r-- 1 root root  26202 Dec  8 11:11 commons-logging-api-1.0.4.jar
  | -rw-r--r-- 1 root root 635207 Dec  8 11:11 drools-compiler-3.0.5.jar
  | -rw-r--r-- 1 root root 550976 Dec  8 11:11 drools-core-3.0.5.jar
  | -rw-r--r-- 1 root root 383546 Dec  8 11:11 janino-2.4.3.jar
  | -rw-r--r-- 1 root root 358843 Dec  8 11:11 stringtemplate-2.3b6.jar
  | 

purchasing.war/WEB-INF/lib:

  | -rw-r--r-- 1 root root  24432 Dec  8 11:11 el-api.jar
  | -rw-r--r-- 1 root root  97471 Dec  8 11:11 el-ri.jar
  | -rw-r--r-- 1 root root   5096 Dec  8 11:11 jboss-seam-debug.jar
  | -rw-r--r-- 1 root root  70709 Dec  8 11:11 jboss-seam-ui.jar
  | -rw-r--r-- 1 root root 291366 Dec  8 11:11 jsf-facelets.jar
  | 



There are a few difference in location, like I have some libs in WEB-INF/lib 
whereas drools has it in /lib

I don't think this matters though because I have the correct paths in my 
application.xml.  My application deploys fine, but the first time I try to 
access a page which accesses drools I get:


  | 17:16:25,918 ERROR [STDERR] StringTemplate: problem parsing group 
: java.lang.ClassCastException: antlr.CommonToken cannot be cast to 
antlr.Token
  | 17:16:25,919 ERROR [STDERR] java.lang.ClassCastException: antlr.CommonToken 
cannot be cast to antlr.
  | 


Do you guys have any pointers whatsoever as to the means that I can debug this 
problem.  I will, as a last resort, take the drools example and copy all of my 
files to it and see if that works, but right now I am running a seam-gen 
project that has a little different dir structure.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992282#3992282

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992282
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: drools namespace?

2006-12-08 Thread sjmenden
Also, from the SEAM docs on drools:


  | 
  | 


  | @In WorkingMemory policyPricingWorkingMemory;
  | 

Is there some magic happening here?  Because the components.xml defines 
policyPricingMemory, yet the EJB is injecting policyPricingWorkingMemory.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992263#3992263

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992263
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem injecting drools WorkingMemory

2006-12-07 Thread sjmenden
I made some progress but now getting massive exceptions.  I changed the 
components.xml to look like the drools example one:

components.xml

  | ...
  | 
  | purchasingRules.drl
  | 
  | 
  | 
  | #{ruleBase}
  | 
  | ...
  | 


But now I'm getting a ClassCastException, and I have verified my jars 
exactly(crosses fingers) mirror the ones in the example.  I'm running SEAM CR2 
with JBoss 4.0.5


  | 17:16:25,918 ERROR [STDERR] StringTemplate: problem parsing group 
: java.lang.ClassCastException: antlr.CommonToken cannot be cast to 
antlr.Token
  | 17:16:25,919 ERROR [STDERR] java.lang.ClassCastException: antlr.CommonToken 
cannot be cast to antlr.Token
  | 17:16:25,919 ERROR [STDERR] at 
antlr.CharScanner.makeToken(CharScanner.java:173)
  | 17:16:25,920 ERROR [STDERR] at 
org.antlr.stringtemplate.language.GroupLexer.mID(GroupLexer.java:333)
  | 17:16:25,920 ERROR [STDERR] at 
org.antlr.stringtemplate.language.GroupLexer.nextToken(GroupLexer.java:103)
  | 17:16:25,920 ERROR [STDERR] at 
antlr.TokenBuffer.fill(TokenBuffer.java:69)
  | 17:16:25,920 ERROR [STDERR] at antlr.TokenBuffer.LA(TokenBuffer.java:80)
  | 17:16:25,920 ERROR [STDERR] at antlr.LLkParser.LA(LLkParser.java:52)
  | 17:16:25,920 ERROR [STDERR] at antlr.Parser.match(Parser.java:210)
  | 17:16:25,921 ERROR [STDERR] at 
org.antlr.stringtemplate.language.GroupParser.group(GroupParser.java:117)
  | 17:16:25,921 ERROR [STDERR] at 
org.antlr.stringtemplate.StringTemplateGroup.parseGroup(StringTemplateGroup.java:754)
  | 17:16:25,921 ERROR [STDERR] at 
org.antlr.stringtemplate.StringTemplateGroup.(StringTemplateGroup.java:264)
  | 17:16:25,921 ERROR [STDERR] at 
org.antlr.stringtemplate.StringTemplateGroup.(StringTemplateGroup.java:244)
  | 17:16:25,921 ERROR [STDERR] at 
org.drools.semantics.java.RuleBuilder.(Unknown Source)
  | 17:16:25,921 ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addRule(Unknown Source)
  | 17:16:25,922 ERROR [STDERR] at 
org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
  | 17:16:25,922 ERROR [STDERR] at 
org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:52)
  | 17:16:25,922 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 17:16:25,922 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 17:16:25,922 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 17:16:25,922 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:597)
  | 17:16:25,923 ERROR [STDERR] at 
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | ...
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992101#3992101

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem injecting drools WorkingMemory

2006-12-07 Thread sjmenden
I am following the documentation for injecting the WorkingMemory into an EJB.  
I know my problem is configuration, but there are no working examples specific 
to the documentation, so I'm having trouble:


  | SEVERE: Error Rendering View[/purchase.xhtml]
  | org.jboss.seam.RequiredException: In attribute requires value for 
component: purchaseHome.purchasingRulesMemory
  | at org.jboss.seam.Component.getInstanceToInject(Component.java:1844)
  | at org.jboss.seam.Component.injectFields(Component.java:1317)
  | at org.jboss.seam.Component.inject(Component.java:1087)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
  | ...
  | 


components.xml

  | http://jboss.com/products/drools";>
  | 
  | ...
  | 
  | 
  | 
  | purchasingRules.drl
  | 
  | 
  | 
  | 
  | 
  | ...
  | 
  | 
  | 


purchasingRules.drl, located in the resources dir, but I'm copying it over to 
WEB-INF/classes because the docs say that the rule is looked for on the 
classpath

  | package test.purchasing
  | 
  | rule "Step 1"
  | 
  | when
  | s : PurchaseStatus( status == "New Request")
  | then 
  | System.out.println("Rule Triggered!");
  | System.out.println(s);
  | s.setStatus("Waiting for purchase Approval.");
  | s.setNextStep("Step 1");
  | 
  | end
  | 


PurchaseHome.java

  | ...
  | 
  | @Name("purchaseHome")
  | @LoggedIn
  | public class PurchaseHome extends EntityHome {
  | 
  | @In WorkingMemory purchasingRulesMemory;
  | 
  | ...
  | }
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992092#3992092

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - drools namespace?

2006-12-07 Thread sjmenden
Documentation does not denote the correct namespace for installing drools 
components.xml, and I can find no examples that make use of how the 
documentation says implement drools.


  | Caused by: org.dom4j.DocumentException: Error on line 16 of document  : The 
prefix "drools" for element "drools:rule-base" is not bound. Nested exception: 
The prefix "drools" for element "drools:rule-base" is not bound.
  | at org.dom4j.io.SAXReader.read(SAXReader.java:482)
  | at org.dom4j.io.SAXReader.read(SAXReader.java:343)
  | at 
org.jboss.seam.init.Initialization.getDocument(Initialization.java:240)
  | at 
org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:129)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992054#3992054

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992054
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NPE in Parameters.java when using ICEfaces

2006-12-06 Thread sjmenden
excellent, is there a jira link or whatever those ICEfaces guys use.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991684#3991684

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991684
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - NPE in Parameters.java when using ICEfaces

2006-12-06 Thread sjmenden
I only get this exception when using ICEfaces inputText, however the exception 
ends in a SEAM class, so I think it is most pertinent in the SEAM forum first.

I converted only one of my h:inputText to ice:inputText, when I try to load the 
page I get the exception:


  | java.lang.NullPointerException
  | at 
org.jboss.seam.util.Parameters.convertMultiValueRequestParameter(Parameters.java:47)
  | at org.jboss.seam.Component.injectParameters(Component.java:1126)
  | at org.jboss.seam.Component.inject(Component.java:1089)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
com.fi.apps.annotations.LoggedInInterceptor.checkLoggedIn(LoggedInInterceptor.java:35)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:79)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:25)
  | at org.jboss.seam.util

[jboss-user] [JBoss Seam] - Re: ICEfaces and EL problem

2006-12-02 Thread sjmenden
Thanks Gavin, didn't know if it was a known issue or not.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990781#3990781

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990781
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - ICEfaces and EL problem

2006-12-02 Thread sjmenden
I installed Icefaces into my app and got it working, however in turn, it broke 
the EL.

On my index.xhtml I have a login/logout, the logout will be shown on the 
evaluation of #{loggedIn}

Which worked pre ICEfaces, when I installed ICEFaces the actual icefaces 
component worked, but part of my EL stopped working, the part that evaluates 
variables that don't exist.

When I first open the index.seam in the browser the page has #{loggedIn} 
however, the variable loggedIn is not created until a user actually logs in. 
Pre ICEfaces, everything worked great, since I am assuming that loggedIn 
resolved to null, which I assume equates with false.  

In the server.log I tracked down the problem to:
could not resolve variable loggedIn


But no more exceptions or anything, that was all I saw in the debug.


Has anyone else had this problem or a solution?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990775#3990775

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990775
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Programmatic https, how?

2006-12-01 Thread sjmenden
How should I programatically forward http to https for sensitive pages like 
register and login.  Should this be even done programmatically or with 
something like mod_rewrite with apache in the front?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990557#3990557

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990557
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem using Expression language enhancements

2006-12-01 Thread sjmenden
Clarification: #{purchase.totalUnitCost()} to map to public Double 
totalUnitCost()


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990556#3990556

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990556
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem using Expression language enhancements

2006-12-01 Thread sjmenden
I was originally trying to get an action method working:

I wanted purchase.totalUnitCost() to map to the method public Double 
totalUnitCost()

I only had to convert it to ValueBinding because I couldn't get the action 
method to work.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990555#3990555

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990555
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem using Expression language enhancements

2006-12-01 Thread sjmenden
Actually, the way I'm getting around this is to define a Transient field with 
the name of the action method.

so:


  | ...
  | @Transient private Double totalUnitCost;
  | ...
  | @Transient
  | public Double getTotalUnitCost() {
  | double total = 0;
  | for(Item item : items) {
  | total += item.getUnitCost();
  | }
  | return total;
  | }
  | ...
  | 

and in the EL:

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990516#3990516

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990516
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem using Expression language enhancements

2006-12-01 Thread sjmenden
Hmm, I think I know the problem.  I am trying to access action methods with the 
Enhanced EL in an Entity, which probaly is not going to work since I'm assuming 
EL assumes everything is field level access.

So the reason I got one of the  examples working before is because I did it 
from an EJB3 and not an entity.

If I am right, maybe the docs should be specific that action methods can not be 
accessed within entity beans.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990511#3990511

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990511
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem using Expression language enhancements

2006-12-01 Thread sjmenden
I am also getting exceptions when I try to invoke action methods.  I actually 
reproduced the docs example of print.println('Hello World!')

However, when I go invoke an action method with parameters, it craps out.  Any 
idea of what could cause this, because the documentation says I can do the 
following syntax:


  | 
  | 

I changed the getStatus() to status and it works, I was just using that as an 
example previously, but here is what I really want to get working:

Purchase.java

  | ...
  | @Transient
  | public Double totalUnitCost() {
  | double total = 0;
  | for(Item item : items) {
  | total += item.getUnitCost();
  | }
  | return total;
  | }
  | ...
  | 

viewPurchases.xhtml

  | ...
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | ...
  | 


  | 12:13:31,140 ERROR [STDERR] Dec 1, 2006 12:13:31 PM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/viewPurchases.xhtml]
  | com.sun.facelets.tag.TagAttributeException: /viewPurchases.xhtml @159,58 
value="#{purchase.totalUnitCost()}" Error Parsing: #{purchase.totalUnitCost()}
  | at 
com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:259)
  | at 
com.sun.facelets.tag.jsf.ValueHolderRule$DynamicValueBindingMetadata.applyMetadata(ValueHolderRule.java:115)
  | at 
com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
  | at 
com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:140)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
  | at 
com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
  | at 
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:510)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 

[jboss-user] [JBoss Seam] - Problem using Expression language enhancements

2006-12-01 Thread sjmenden
I've had this problem in CR1 and now CR2.

I follow the instructions in Chapter 18: Expression language enhancements but I 
still get exceptions when trying whatever.doMethod() in the expression 
language.  Any pointers would be appreciated.

faces-config.xml

  | 
  | 
  | 
org.jboss.seam.ui.facelet.SeamFaceletViewHandler
  | 
  | 
  |  
  | messages
  | 
org.jboss.seam.ui.facelet.SeamFaceletViewHandler
  | 
  | 
  | 
  | 
  | org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener
  | 
  | 
  | 
  | 

Purchase.java

  | @Entity
  | @Role(name="tempPurchase", scope=ScopeType.EVENT)
  | @Table(name="purchases")
  | public class Purchase implements Serializable {
  | 
  | ...
  | 
  | private String status;
  | 
  | ...
  | 
  | public String getStatus() {
  | return status;
  | }
  | public void setStatus(String status) {
  | this.status = status;
  | }
  | 
  | ...
  | 
  | }
  | 

viewPurchases.xhtml

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 



  | 10:43:01,944 ERROR [STDERR] Dec 1, 2006 10:43:01 AM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/viewPurchases.xhtml]
  | com.sun.facelets.tag.TagAttributeException: /viewPurchases.xhtml @151,55 
value="#{purchase.getStatus()}" Error Parsing: #{purchase.getStatus()}
  | at 
com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:259)
  | at 
com.sun.facelets.tag.jsf.ValueHolderRule$DynamicValueBindingMetadata.applyMetadata(ValueHolderRule.java:115)
  | at 
com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
  | at 
com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:140)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
  | at 
com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
  | at 
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:510)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
  | 

[jboss-user] [JBoss Seam] - Recommended way to do SSL

2006-11-26 Thread sjmenden
What is the most recommended way to SSL protect specific pages, like login and 
register and any other sensitive ones.

Off the top of my mind, one could achieve this through URL rewriting with 
Apache as the front end.

Are there any other ways to do this?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988626#3988626

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988626
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using the EntityHome and problems therein

2006-11-16 Thread sjmenden
Self are blind..

I am still having problems I need to work out, but I got passed my initial 
problem, I wasn't adding the following to my TicketHome.java


  |  @RequestParameter 
  | Long ticketId;
  | 
  | @Override
  | public Object getId() 
  | { 
  | if (ticketId==null)
  | {
  | return super.getId();
  | }
  | else
  | {
  | return ticketId;
  | }
  | }
  | 
  | @Override @Begin
  | public void create() {
  | super.create();
  | }
  | 

which explains where the RequestParameter definition is suppose to go.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986685#3986685

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986685
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using the EntityHome and problems therein

2006-11-16 Thread sjmenden
I copied an example working project I created using seam gen where it generated:


  | 
  | 
  | 
  | 

Whereas mine looks like this, the value doesn't matter since it is for display.

  | 
  |
  | 
  | 

tempTicket is only for the temporary Ticket instance for searching.  In the 
dataTable I have tickets as my object and each individual is ticket, so 
ticket.id works. 

The problem is when I click the link above to try to view an individual ticket, 
no ticket gets loaded in the background.

Honestly, it is because I don't understand the "magic" that is going on.  
ticketId is getting passed as a parameter, however, in the EntityHome and Home 
objects from Seam I can't see anywhere that it trys to read in the id or 
ticketId as a RequestParameter.  I would really like to know how it magic is 
working when it works 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986675#3986675

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986675
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Using the EntityHome and problems therein

2006-11-16 Thread sjmenden
I am creating a Help Ticketing system and I am following the SEAM documenation 
and making use of the EntityHome for CRUDing my Ticket Entity.  The initial 
creation and updating works great, however when I go to view tickets, then 
click on a ticket which gets redirected back to my original ticket.xhtml page, 
with ticketId as a parameter, I can not for the life of me get the ticket to 
display.  

I need another pair of eyes to see where I am going wrong.


ticket.xhtml

  | http://www.w3.org/1999/xhtml";
  | xmlns:s="http://jboss.com/products/seam/taglib";
  | xmlns:ui="http://java.sun.com/jsf/facelets";
  | xmlns:f="http://java.sun.com/jsf/core";
  | xmlns:h="http://java.sun.com/jsf/html";
  | template="template.xhtml">
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |
  | 
  | 
  | 
  | Contact Information
  | 
  | 
  | Name
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | Problem 
Description
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |
  | 
  | 
  | 
  | 
  | 



Ticket.java

  | @Entity
  | @Name("ticket")
  | @Role(name="tempTicket", scope=ScopeType.EVENT)
  | @Table(name="tickets")
  | public class Ticket implements Serializable {
  | 
  | //seam-gen attributes (you should probably edit these)
  | private int id;
  | private Integer version;
  | private String name;
  | 
  | 
  | @Id @GeneratedValue
  | public int getId() {
  |  return id;
  | }
  | 
  | public void setId(int id) {
  |  this.id = id;
  | }
  | 
  | @Version
  | public Integer getVersion() {
  |  return version;
  | }
  | 
  | private void setVersion(Integer version) {
  |  this.version = version;
  | }   
  | 
  | @NotNull
  | @Column(length=50)
  | @Length(max=50)
  | public String getName() {
  |  return name;
  | }
  | 
  | @Lob
  | public String getProblemDescription() {
  | return problemDescription;
  | }
  | 
  | public void setProblemDescription(String problemDescription) {
  | this.problemDescription = problemDescription;
  | }
  | 
  | }
  | 
  | 



viewTickets.xhtml

  | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | http://www.w3.org/1999/xhtml";
  | xmlns:ui="http://java.sun.com/jsf/facelets";
  | xmlns:h="http://java.sun.com/jsf/html";
  | xmlns:f="http://java.sun.com/jsf/core";
  | xmlns:s="http://jboss.com/products/seam/taglib";
  | 
xmlns:a="https://ajax4jsf.dev.java.net/ajax";
  |   template="template.xhtml">
  | 
  | 
  | 
  | 
  | Tickets
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | Subject:
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

[jboss-user] [JBoss Seam] - Re: Seam + Ajax4Jsf == Exception?

2006-10-30 Thread sjmenden
I was under the impression that using the "JBoss 4.0.5.GA with the EJB3 
profile" will still NOT work with SEAM.  In fact, the JBoss download area says 
that to use SEAM you still must install JBoss using the -installer.jar.

I couldn't find the newest installer right off hand, but there definitely is a 
beta 3 jems installer for 4.0.5.  The beta 2 is for 4.0.4.   I have the newest 
JEMS installer and 4.0.5 with SEAM working beautifully over here.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981848#3981848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Could not register Synchronization

2006-10-10 Thread sjmenden
I have the  java.lang.RuntimeException: org.hibernate.TransactionException: 
Could not register synchronization from time to time and I've fixed it by 
redeploying the app, but I am tired of doing that and I want to find a real 
solution.

It is happening currently when I click view jobs to list out my jobs, then I 
wait a whlie, 15 minutes?  and I click the delete button to delete a job and I 
get the exception:


  | 16:36:39,031 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id _id14:_id16:0:_id68
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at javax.faces.component.UIData.broadcast(UIData.java:513)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: javax.faces.el.EvaluationException: /viewJobs.xhtml @130,45 
action="#{viewJobs.delete}": java.lang.RuntimeException: 
org.hibernate.TransactionException: Could not register synchronization
  | at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | ... 28 more
  | Caused by: java.lang.RuntimeException: org.hibernate.TransactionException: 
Could not register synchronization
  | at 
org.jboss.ejb3.stateful.StatefulBeanContext.remove(StatefulBeanContext.java:273)
  | at org.jboss.ejb3.AbstractPool.remove(AbstractPool.java:171)
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.remove(SimpleStatefulCache.java:299)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:89)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jbo

[jboss-user] [JBoss Seam] - Re: Stale Data until redeploy

2006-10-04 Thread sjmenden
I see now what you are saying with the example.  However, that still begs the 
question, what is the correct way to implement pagination when one has Lazily 
initialized collections where the EXTENDED PersistenceContext must be used, but 
you are saying that there is a problem using that with @Scope(SESSION)

Also, I can't use EAGER fetching with my collections (List) because of the 
cannot select multiple bags bug.  Or has that been fixed?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976051#3976051

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976051
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Stale Data until redeploy

2006-10-04 Thread sjmenden
So you are saying that one way to fix it is to do a refresh on all jobs in the 
job list?


  | public String view() {
  | Map parameters = new HashMap();
  | StringBuffer queryString = new StringBuffer();
  | 
  | queryString.append("from Job");
  | Query query = em.createQuery(queryString.toString());
  | 
  | jobs = (List) query.getResultList();
  | 
  | //Refresh all of the jobs
  | for(int x = 0; x < jobs.size(); x++){
  | em.refresh(jobs.get(x));
  | }
  | return "viewJobs";
  | }
  | 

This does work to get the latest data, but isn't there a better way?  Now I am 
doing an additonal trip to the database for every job, there must be someway to 
force the retrieval of the new data each call NOT from cache?   Isn't this 
going to scale horrible when I get thousands of jobs?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976050#3976050

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976050
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Stale Data until redeploy

2006-10-04 Thread sjmenden
Thank you for the response, I am currently not passing the entity reference to 
the details screen like you advised not too.  I pass the entity id as a 
parameter, then in my details screen I em.load the entity. 

What is the most accepted way to do pagination?  If I don't use the SESSION 
should I use CONVERSATION?  

My error, then, was assuming that the IssueFinderBean.java in the issues 
example was standard practice to do pagination.  If it is not, then this is 
very misleading to people who are trying to learn SEAM by the examples.

So how do I correctly implement my goals: pagination with the most recent data 
everytime the page is refreshed?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976018#3976018

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976018
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Stale Data until redeploy

2006-10-03 Thread sjmenden
I need the Statefullness because I intent on adding pagination, and I need the 
extended persistence context because the job contains Lazy initialized 
collections.

Am I just overlooking something very simple?  All I want is for the data for 
this specific viewJobs SFSB to be refreshed everytime the view method gets 
called.  There must be someway to override the default behavior?

Please advise


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975935#3975935

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Stale Data until redeploy

2006-10-03 Thread sjmenden
I posted in the EJB 3.0 forum without much success, so I am hoping this forum 
can help me, as the users are more active.

I am having a horrible time with stale data.  In my seam app, I create jobs 
then list the jobs, and I can click on a job to edit it.  However, when I edit 
a job, the changes absolutely refuse to show up in the listing of jobs, the 
listing of jobs only shows the state of when I initially created a job, and NO 
changes.

This is really driving me mad and I am not sure how to fix it.

I am using MySQL InnoDB, and everything shows up as correct in the database.  
All the data is current and right, however in my view, all the data is old.  Is 
there some cache I need to disable, or someway to can ensure the data for 
listing my jobs is not stale.

I've tried several things like giving the Query hints and disabling 2nd level 
cache in the persistence.xml, but nothing works.



  | @Name("viewJobs")
  | @Stateful
  | @Scope(ScopeType.SESSION)
  | public class ViewJobsBean implements ViewJobs {
  | 
  | @Logger
  | private Log log;
  | 
  | @DataModel
  | private List jobs; 
  | 
  | @DataModelSelection
  | private Job job;
  | 
  | @PersistenceContext(type=EXTENDED)
  | private EntityManager em;
  | 
  | public String view() {
  | Map parameters = new HashMap();
  | StringBuffer queryString = new StringBuffer();
  | 
  | queryString.append("from Job");
  | 
  | Query query = em.createQuery(queryString.toString());
  | //  query.setHint("org.hibernate.cacheable", new Boolean(false));
  | //  query.setHint("org.hibernate.cacheMode", CacheMode.IGNORE);
  | //  query.setHint("org.hibernate.flushMode", FlushMode.ALWAYS);
  | 
  | jobs = (List) query.getResultList();
  | return "viewJobs";
  | }
  | 
  | public void delete(){
  | em.remove(job);
  | view();
  | }
  | 
  | public void refresh() {
  | view();
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {}
  | }
  | 


  | 
  | 
  | org.hibernate.ejb.HibernatePersistence
  | java:/jobsDatasource 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

The only way to Can get the changes to the jobs to show up is if I redeploy the 
web app.  Am I missing something?

Help with this is greatly appreciated

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975895#3975895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975895
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Data not getting refreshed, how to disable cache?

2006-10-03 Thread sjmenden
I even disabled second level cache to no avail?  I am still getting stale data. 
  Mysql command line is still reporting something different than what I am 
seeing in my view.


  | 
  |   
  |   org.hibernate.ejb.HibernatePersistence
  |   java:/testDatasource
  |   
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  | 
  | 


Help is greatly appreciated.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975753#3975753

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975753
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Data not getting refreshed, how to disable cache?

2006-10-02 Thread sjmenden
I also tried doing this:


  | query.setHint("org.hibernate.cacheable", new Boolean(false));
  | query.setHint("org.hibernate.cacheMode", CacheMode.IGNORE);
  | 

But I am still getting stale data, the only way to get the new data is to 
redeploy the webapp. 

Please help.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975546#3975546

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975546
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Data not getting refreshed, how to disable cache?

2006-10-02 Thread sjmenden
I am wondering how I disable cache on a per Query basis to ensure the latest 
data?

In my code I am select a list of jobs to be displayed in the view.  The status 
of the jobs gets updated frequently, however the changes are not being shown in 
the view.  In the output of jboss, I do get the sql being generated, so I know 
a database call is happening, I am assuming the data being returned is cached 
data.

How Do I indicate to the entity manager NOT to cache this data, or to force a 
fresh retrieval?


  | ...
  | 
  | Map parameters = new HashMap();
  | StringBuffer queryString = new StringBuffer();
  | queryString.append("from Job");
  | Query query = em.createQuery(queryString.toString());
  | jobs = (List) query.getResultList();
  | 
  | ...
  | 


Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975505#3975505

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975505
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NumberFormatException on inputTextArea?

2006-09-28 Thread sjmenden
Thanks Gavin, I'll go grab the cvs copy.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974978#3974978

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974978
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - NumberFormatException on inputTextArea?

2006-09-28 Thread sjmenden
I am having a strange problem I am not sure how to fix, possibly a customer 
converter?

I have an inputTextArea which I allow the user to input any text, later to be 
parsed, the text can contain any characters necessarily:


  | 
  |  
  |
  | Job Parameters:  
  |
  |
  | 
  |
  |  
  | 

The EJB looks like this:


  | @Name("createPluginJob")
  | @Stateless
  | public class CreatePluginJobBean implements CreatePluginJob {
  | 
  | ...
  | 
  | private String parameterText;
  | public String getParameterText() {return parameterText;}
  | public void setParameterText(String parameterText) {this.parameterText 
= parameterText;}
  | 
  | ...
  | 
  | public String create() {
  | PluginCommand networkCommand = new PluginCommand();
  | networkCommand.setFqClassName(fqcn);
  | 
  | StringReader stringReader = new 
StringReader(parameterText.trim());
  | BufferedReader reader = new BufferedReader(stringReader);
  | 
  | String line = null;
  | try {
  | log.info("Parsing parameterText: \n" + parameterText);  
//NumberFormatException happening here
  | while((line = reader.readLine()) != null) {
  | log.info("extracted line: " + line);
  | 
networkCommand.getParameters().put(StringUtils.substringBefore(line, "="), 
StringUtils.substringAfter(line, "="));
  | }
  | } catch(IOException e) {
  | log.error(e.getMessage());
  | }
  | log.info("Extracted parameters: " + 
networkCommand.getParameters());
  | 
  | job.setNetworkCommand(networkCommand.buildCommand());
  | em.persist(job);
  | FacesMessages.instance().add("Successfully created job");
  | return "createPluginJob";
  | }
  | }
  | 

It seems as though the NumberFormatException is happening the first time I try 
to do anything with the parameterText value.  The exception is as follows:


  | Caused by: javax.faces.el.EvaluationException: /createPluginJob.xhtml 
@50,93 action="#{createPluginJob.create}": 
javax.ejb.EJBTransactionRolledbackException: java.lang.NumberFormatException: 
For input string: "H"
  | at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | ... 27 more
  | Caused by: javax.ejb.EJBTransactionRolledbackException: 
java.lang.NumberFormatException: For input string: "H"
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
  | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
  | at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
  | at $Proxy104.create(Unknown Source)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:589)
  | at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
  | at 
com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
  | ... 28 more
  | 


A

[jboss-user] [EJB 3.0] - Generating hbm from Annotated Entity Beans

2006-09-08 Thread sjmenden
I hope this is an acceptable place to post this question versus another forum.

My Goal:   Generate hibernate mapping xml files from my Annotated Entity beans 
so I can use them in a non web application.

Here is what I've tried.  I think I just need to be steered on the right track.





  |   
  | 
  | 
  | 
  |   
  | 
  |  
  |  
  |  
  |   
  | 
  | 

Whether I include the  or not the mappings aren't generated 
in the hibernate.cfg.xml.

Ant output:


  | 
  | generatehbm:
  | [hibernatetool] Executing Hibernate Tool with a EJB3 Configuration
  | [hibernatetool] 1. task: cfg2cfgxml (Generates hibernate.cfg.xml)
  | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.ejb.Version 
  | [hibernatetool] INFO: Hibernate EntityManager 3.2.0.CR1
  | [hibernatetool] Sep 8, 2006 11:15:31 AM 
org.hibernate.cfg.annotations.Version 
  | [hibernatetool] INFO: Hibernate Annotations 3.2.0.CR1
  | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment 

  | [hibernatetool] INFO: Hibernate 3.2 cr2
  | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment 

  | [hibernatetool] INFO: hibernate.properties not found
  | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernatetool] INFO: Bytecode provider name : cglib
  | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment 

  | [hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
  | [hibernatetool] Sep 8, 2006 11:15:32 AM org.hibernate.tool.hbm2x.Version 

  | [hibernatetool] INFO: Hibernate Tools 3.1.0.beta5
  | [hibernatetool] 2. task: hbm2hbmxml (Generates a set of hbm.xml files)
  | 
  | BUILD SUCCESSFUL
  | Total time: 3 seconds
  | 
  | 

generated hibernate.cfg.xml file:

  | 
  | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
  | 
  | 
  | false
  | 
  | 
  | 


But there are no actual mappings generated?

Guidance would be greatly appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970407#3970407

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with extra action method executing

2006-09-06 Thread sjmenden
Just to let you know, you are not alone.  I am not sure if there is some 
special attribute to the pages.xml xml, however, I ran into the exact same 
problem.   Lessoned learned, don't use pages.xml with a Stateful bean that uses 
pagination, it won't work.  I had to change the way I was doing things because 
I believe what you described above is intended by the pages.xml action.   You 
define pages there so that the corresponding action gets executed EVERY time 
the page is loaded without exception.  

If this breaks your application, then you shouldn't use pages.xml, but look at 
the @Factory method possibly.  Or the pull-style section of the seam 
documentation.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969719#3969719

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969719
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How do I access the Context Path of the Web App?

2006-09-01 Thread sjmenden
I just found this:

#{facesContext.externalContext.requestContextPath}

Is there any other way?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968970#3968970

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968970
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How do I access the Context Path of the Web App?

2006-09-01 Thread sjmenden
I am using facelets, seam, ect..  

In my previous projects, I always avoided hard coded cotext paths with jstl:



How can I duplicate this in jsf/facelets?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968969#3968969

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: when and how does the seam create tables in the databas

2006-08-30 Thread sjmenden
Hibernate is going to automatically create the tables based on which POJOs are 
declared as @Entity beans and the subsequent annotations to the getter methods 
in that Entity bean.Hibernate will do this as long as your enforce a 
create-drop policy, or update I believe.

Entity beans must have an id field denoted by @Id and typically 
@GeneratedValue, other than that, every other field is created as a column 
mapped by the Type of the field, unless otherwise specified.

If you already have the database structure set up in the database, you could 
also mirror the structure in your Entity beans (given it the db structure isn't 
too difficult, or you're really good in sql).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968451#3968451

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968451
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: TransactionException: Could not register synchronization

2006-08-30 Thread sjmenden
Its times like these I want to crythen laugh really hard, as always Gavin 
was right, it was in my code.  

The entire problem has to do in this line:


  | Query query = em.createQuery("from Group where group.id = :id");
  | 


I left out the group alias, so hibernate has no idea what group.id means.  It 
should be:


  | Query query = em.createQuery("from Group group where group.id = :id");
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968433#3968433

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968433
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - log4j truncates my stack traces, why?

2006-08-30 Thread sjmenden
I want to configure log4j.xml to NOT truncate my stack traces, and I've 
searched google for about an hour on how to do it to no avail, someone please 
HELP!

Ex.


  | Caused by: javax.transaction.RollbackException: Already marked for rollback 
TransactionImpl:XidImpl[FormatId=257, GlobalId=dhcp59-211.rdu.redhat.com/22, 
BranchQual=, localId=22]
  | at 
org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:635)
  | at 
org.hibernate.transaction.CMTTransaction.registerSynchronization(CMTTransaction.java:156)
  | ... 48 more
  | 

But I really want to see those 48 more.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968405#3968405

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968405
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: TransactionException: Could not register synchronization

2006-08-30 Thread sjmenden
For reference: 

persistence.xml

  | 
  |
  |   org.hibernate.ejb.HibernatePersistence
  |   java:/DefaultDS
  |   
  |  
  |  
  |  
  |  
  |  
  |   
  |
  | 
  | 

components.xml

  | 
  | 
  | 
  | @myFacesLifecycleBug@
  | @jndiPattern@
  | 
  | 
  | 
  | 12
  | 
  | 
  | 
  | java:/issuesEntityManagerFactory
  | 
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968376#3968376

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968376
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: TransactionException: Could not register synchronization

2006-08-30 Thread sjmenden
I don't touch transactions in my code anywhere.   Here is a strange thing.  I 
take the type=EXTENDED off of my persistence context, and I get a 
NullPointerException on:


  | Query query = em.createQuery("from Group where group.id = :id");
  | 

Which tells me that the EntityManager is somehow not getting injected via the 
@PersistenceContext?  HOWEVER, I have another @Stateful bean which has similar 
functionality, and it is working find.  Why is this one being ornery?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968375#3968375

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968375
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: TransactionException: Could not register synchronization

2006-08-30 Thread sjmenden
What is the EJB3 bug and is there a work around?  I do not use an IDE, so I 
won't be able to debug  it at the moment.

The server.log was not very helpful, though it gave a little more information, 
nothing additional on the exception though:


  | 2006-08-30 08:43:31,146 DEBUG [org.jboss.seam.util.Naming] JNDI 
InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2006-08-30 08:43:31,147 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: org.jboss.seam.core.manager
  | 2006-08-30 08:43:31,147 DEBUG [org.jboss.seam.core.Manager] Found 
conversation id in request parameter: 4
  | 2006-08-30 08:43:31,147 DEBUG [org.jboss.seam.core.Manager] Restoring 
conversation with id: 4
  | 2006-08-30 08:43:31,148 DEBUG [org.jboss.seam.contexts.Contexts] found in 
application context: org.jboss.seam.core.init
  | 2006-08-30 08:43:31,148 DEBUG 
[org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation 
context: ConversationContext(4)
  | 2006-08-30 08:43:31,148 DEBUG [org.jboss.seam.util.Naming] JNDI 
InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2006-08-30 08:43:31,149 DEBUG 
[org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] beginning 
transaction prior to phase: RENDER_RESPONSE(6)
  | 2006-08-30 08:43:31,149 DEBUG [org.jboss.seam.util.Naming] JNDI 
InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2006-08-30 08:43:31,150 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] 
resolving name: groupViewer
  | 2006-08-30 08:43:31,150 DEBUG [org.jboss.seam.Component] instantiating Seam 
component: groupViewer
  | 2006-08-30 08:43:31,150 DEBUG [org.jboss.seam.util.Naming] JNDI 
InitialContext 
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
  | 2006-08-30 08:43:31,151 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
  | 2006-08-30 08:43:31,154 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
  | 2006-08-30 08:43:31,160 DEBUG [org.hibernate.impl.SessionImpl] opened 
session at timestamp: 4738833658511360
  | 2006-08-30 08:43:31,160 DEBUG [org.hibernate.jdbc.JDBCContext] 
TransactionFactory reported no active transaction; Synchronization not 
registered
  | 2006-08-30 08:43:31,160 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] 
Looking for a JTA transaction to join
  | 2006-08-30 08:43:31,160 DEBUG [org.hibernate.jdbc.JDBCContext] successfully 
registered Synchronization
  | 2006-08-30 08:43:31,166 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] 
resolved name to seam component
  | 2006-08-30 08:43:31,170 DEBUG 
[org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor]  
LongLivedSessionPropagationInterceptor
  | 2006-08-30 08:43:31,170 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] 
Looking for a JTA transaction to join
  | 2006-08-30 08:43:31,170 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] 
Transaction already joined
  | 2006-08-30 08:43:31,172 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0}
  | 2006-08-30 08:43:31,172 DEBUG 
[org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: 
groupViewer
  | 2006-08-30 08:43:31,177 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[bug-tracker].[Faces
 Servlet]] Servlet.service() for servlet Faces Servlet threw exception
  | javax.faces.el.EvaluationException: Exception while invoking expression 
#{groupViewer.view}
  |  at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
  |  at org.jboss.seam.core.Pages.callAction(Pages.java:161)
  |  at org.jboss.seam.core.Pages.callAction(Pages.java:143)
  |  at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:128)
  |  at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:98)
  |  at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:50)
  |  at 
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:38)
  |  at 
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
  |  at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
  |  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.

[jboss-user] [JBoss Seam] - Re: TransactionException: Could not register synchronization

2006-08-29 Thread sjmenden
Also, this occurs on a fresh start of JBoss and thereafter, it is not random.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968215#3968215

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - TransactionException: Could not register synchronization bug

2006-08-29 Thread sjmenden
I have inexplicably ran into this exception:  
java.lang.RuntimeException: org.hibernate.TransactionException: Could not 
register synchronization
 
  | 16:20:46,188 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id _id0:_id57_0:_id61
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at javax.faces.component.UIData.broadcast(UIData.java:338)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.faces.el.EvaluationException: Exception while invoking 
expression #{groupViewer.view}
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | ... 25 more
  | Caused by: java.lang.RuntimeException: org.hibernate.TransactionException: 
Could not register synchronization
  | at 
org.jboss.ejb3.stateful.StatefulBeanContext.remove(StatefulBeanContext.java:273)
  | at org.jboss.ejb3.AbstractPool.remove(AbstractPool.java:171)
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.remove(SimpleStatefulCache.java:299)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:89)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
  | at $Proxy210.view(Unknown Source)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.myfaces.el.M

[jboss-user] [JBoss Seam] - Entity Scope question

2006-08-29 Thread sjmenden
The seam docs are not completely clear on where an Entity lives when it exists 
in several scopes.

The following example:


  | @Entity
  | @Name("dog")
  | @Scope(EVENT)
  | @Role(name="currentDog", scope=SESSION)
  | @Table(name="dogs")
  | public class Dog implements Serializable {
  | 
  | 


So now, when exactly does my dog live in the EVENT scope and when does he live 
in the SESSION scope with the name currentDog.

Based on what I have observed so far, I would guess that the currentDog object 
gets put in the SESSION scope the first time I outject it, is that correct?

Also, if I outject the dog object

  | @Out Dog dog.
  | 

Does this mean that the Dog object gets outjected to both EVENT(dog) and 
SESSION(currentDog)?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968168#3968168

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968168
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBoss Seam don ´t work.

2006-08-28 Thread sjmenden
ajanoni, follow the directions in the following link exactly.

http://labs.jboss.com/portal/jbossseam/gettingstarted

Most likely you had the same problems I had at first also, I downloaded the 
regular installer that is linked from the main jboss.org downloads site.  You 
actually can't use SEAM with this installer, and you need the JEMS installer.

Hope that helps.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967914#3967914

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-28 Thread sjmenden
I fixed it, I changed the Scope on my Group Entity bean to EVENT and I passed 
the groupId to the showGroup.jsp so the backing bean to that jsp could locate 
the group.

Thanks for all the help guys.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967913#3967913

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-28 Thread sjmenden
And I just removed the @Out annotation to the Group object, but I'm still 
getting the Detached Exception when trying to persist a group twice.

Let me explain what I'm seeing. I click on registerGroup.jsp brings me to a 
page, I input a name and click register, then I get redirected to a page which 
displays the Group, that is all great.

NOW, I click on registerGroup.jsp again and I don't get a fresh form, but I get 
the form with the old group I just registered, well, I change the name, and I 
get the exception.  So I am assuming that the Group lives in Session scope, and 
that I need a separate EVENT scope for this particular instance?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967910#3967910

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967910
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why I can run seam registration app without started JBos

2006-08-28 Thread sjmenden
For the seam examples set your jboss.home to the directory of where you 
installed jboss too, for me it is:

jboss.home = /usr/local/jboss


Tomcat is located at: 
${JBOSS_HOME}/server/default/deploy/jbossweb-tomcat55.sar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967902#3967902

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967902
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-28 Thread sjmenden
I will post my code to satisfy curiosity although there is not much to look at. 
 

Using Conversation scope seems very strange to me in this instance.  I guess 
SEAM caters to a whole new realm of patterns that don't exist in the other MVC 
world.

Registering a Group SHOULD be stateless, at least I thought so, but in this 
case you are saying it should be Conversational.  I really don't want any other 
functionality in this bean at the moment except registering groups.  A 
completely different bean will handle viewing and editing the Group.

RegisterGroupAction.java: 


  | @Stateless
  | @Name("registerGroup")
  | public class RegisterGroupAction implements RegisterGroup {
  | 
  |@In(create=true) @Out @Valid
  |private Group group;
  | 
  |@PersistenceContext
  |private EntityManager em;
  | 
  |@Logger
  |private Log log;
  | 
  |public String register() { 
  |   List existing = em.createQuery("select name from Group where name = 
:name")
  |  .setParameter("name", group.getName())
  |  .getResultList();
  |   if (existing.size()==0) {
  |  //group = em.merge(group);
  |  em.persist(group);
  |   
  |  
  |  
  |  FacesMessages.instance().add("Group successfully created");
  | log.info("Registered new Group #{group.name} with id: " + 
group.getGroupId());
  |  return "/showGroup.jsp";
  |   } else {
  |  FacesMessages.instance().add("Group name already exists, please 
choose another");
  |  return null;
  |   }
  |}
  | }
  | 


registerGroup.jsp - the commandButton is only relevant I think

  | ...
  | ...
  | ...
  | 
  | ...
  | ...
  | ...
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967830#3967830

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967830
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-25 Thread sjmenden
Thank you for the replies, I don't really want to use the other group as a 
template let me clarify my goals here again:

All I want is a simple page that allows a person to register a group, after 
registering the group, the EJB3 redirects to page that displays that group with 
links to edit the group, to add users to the group and so forth.

There is a link on my left navigation for the page createGroup.jsp, when the 
user clicks that link, it will display a form to enter information for the 
group and a button to create it.   After creating one group, which works, and I 
click the creatGroup.jsp link again, it remembers the previous values, I am 
assuming because my Group entity bean has a SESSION scope.   But I guess my 
RegisterGroup stateless bean is also remembering the group, thus updating on 
merge or failing on persist the 2nd time I try to create a new group.

So to reiterate what I want is simply to accomplish is for a user to be able 
click my createGroup.jsp link and each time be able to create a new and unique 
group then be redirected to a page that more formally displays that group.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967474#3967474

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967474
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Please explain entity Scope

2006-08-24 Thread sjmenden
Can someone explain to me the details of scoping with entity beans.  The 
majority if not all of the examples I've seen show entitiy beans using the 
session scope.  Like in the seam documentation:


  | @Name("user")
  | @Entity
  | @Scope(SESSION)
  | public class User { 
  | ... 
  | }
  | 


So what does this exactly mean that the 'user' entity bean lives in the Session 
scope, does this mean that in Bijection the user bean is literally in the 
session scope even if the EJB3 accessing the user entity bean is Stateless?  

So if I changed the @Scope(SESSION) to @Scope(EVENT) then the user bean would 
only stay in the EVENT/request scope during bijection?

Help understanding this would be greatly appreciated. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967332#3967332

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967332
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-24 Thread sjmenden
I see what I'm doing wrong, but that begs another question, how do I accomplish 
what I want to accomplish.

Shouldn't Registering a Group be stateless?  

I want for the user to register a group, and be redirected to a page which 
displays that group, and allows the user to modify that group ect., which is 
why I am outjecting the Group.

How do I do that best?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967301#3967301

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967301
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Merging objects problems.

2006-08-23 Thread sjmenden
I have a form which a user can input a group name and other group information.  
The EJB3 backing the form persists/merges the Injected Group object given there 
are no errors.  

My Problem:  

First I could not get em.persist(group) to persist more than one Group object 
after a form submit because of org.hibernate.PersistentObjectException: 
detached entity passed to persist:

So, then I started using em.merge(group) on the Group object, which fixed the 
previous problem, but led to another.  When I am creating two different groups 
by submitting the form twice with different information, the entity manager 
appears only update the same group by the console output:

Output after em.merge(group) after the form submit the first time:

  | 16:11:26,634 INFO  [RegisterGroupAction] Registered new Group asdf with id: 
4
  | 

Output after em.merge(group) after the form submit the second time with 
different data.

  | 16:11:41,496 INFO  [RegisterGroupAction] Registered new Group blah with id: 
4
  | 

This is not the behavior I want, I want a new Group object to be persisted 
every time the user submits a new group form, so I should be seeing the id 
incremented, not staying the same,  how can I do this.



  | @Stateless
  | @Name("registerGroup")
  | public class RegisterGroupAction implements RegisterGroup {
  | 
  |@In(create=true) @Out @Valid
  |private Group group;
  | 
  |@PersistenceContext
  |private EntityManager em;
  | 
  |@Logger
  |private Log log;
  | 
  |public String register() { 
  |   List existing = em.createQuery("select name from Group where name = 
:name")
  |  .setParameter("name", group.getName())
  |  .getResultList();
  |   if (existing.size()==0) {
  |  group = em.merge(group);
  | //em.persist(group);
  |  
  | FacesMessages.instance().add("Group successfully created");
  |  log.info("Registered new Group #{group.name} with id: " + 
group.getGroupId());
  | return "/showGroup.jsp";
  |   } else {
  |  FacesMessages.instance().add("Group name already exists, please 
choose another");
  |  return null;
  |   }
  |}
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967112#3967112

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967112
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: best practices with pages.xml

2006-08-23 Thread sjmenden
Thank you for the response, so I should be able to use pull-style MVC like in 
the Blog example.  However, in that example, the BlogService is Stateless, 
hopefully employing it as Stateful will be with minimal pain.   However, in the 
BlogService, there is no @Factory used, just the @Unwrap.  

Which method would you recommend?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966992#3966992

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966992
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - best practices with pages.xml

2006-08-23 Thread sjmenden
I need advice on best practices.  Here is what I want to accomplish.  I am 
trying to implement a page that shows all registered users, that also has 
pagination.   Well, when the user clicks on the showUsers.jsf link, the List of 
users should be initially populated.

Here is what I'm doing now and the problem I'm having.   I definted an action 
in pages.xml so when the showUsers.jsp is accessed, the bean's firstPage method 
is accessed like in one of the seam examples.

PROBLEM:   When I click the nextPage action for pagination, the nextPage gets 
invoked THEN the firstPage because the pages.xml kicks in.


So how do I resolve this problem of the pages.xml getting invoked everytime I 
click any action on the showUsers page?   Is there a better method to do what I 
want?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966977#3966977

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966977
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Logging to Syslog not logging everything

2006-08-18 Thread sjmenden
I would like to log to syslog, which should be easy, I just uncomment the 
following section.


  | 
  |  
  |  
  |  
  |  
  |  
  |
  |  
  | 
  | 


And my syslog.conf looks like: 


  | local7.*/var/log/jboss.log
  | 


It works, but JBoss is not logging out hardly any information to the 
/var/log/jboss.log file, only a few start up and shutdown messages, no INFO or 
any other messages.

Is there any other configuration to get JBoss to log to the syslog exactly as 
it logs to the console?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966073#3966073

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Trouble calling Stateless Bean

2006-08-15 Thread sjmenden
I have a page to show the groups in my system.   There are a series of links to 
allow the user to modify the group.  I am having trouble implementing the first 
of those links where the user clicks to edit the group itself.


  | 
  |
  | 
  | 


  | @Name("editGroup")
  | @Stateless
  | public class EditGroup implements IEditGroup { 
  | 
  | @RequestParameter
  | private Long groupId;
  | 
  | @Logger
  | private Log log;
  | 
  | private EntityManager em;
  | 
  | @In(create=false) @Out
  | Group group;
  | 
  | public String update() {
  | //Verify groupId is set
  | if(groupId == null || groupId.equals("")){return null;}
  | 
  | Map parameters = new HashMap();
  | 
  | log.info("\n\nFinding Group with groupId: " + groupId + "\n\n");
  | 
  | Query query = em.createQuery("from Group group where 
group.groupId = :groupId");
  | parameters.put("groupId", groupId);
  | 
  | for (Entry  param : parameters.entrySet()) {
  | query.setParameter( param.getKey(), 
param.getValue() );
  | }
  | log.info("Querying for group");
  | Group attachedGroup = (Group) query.getSingleResult();
  | log.info("Found group object: " + group);
  | 
  | if(group == null) {
  | group = attachedGroup;  
  | } else {
  | log.info("group was not null, attempting to update the 
attached group");
  | attachedGroup.setName(group.getName());
  | attachedGroup.setAddress(group.getAddress());
  | attachedGroup.setAddress2(group.getAddress2());
  | ...
  | ...
  | ...
  | }
  | 
  | return "editGroup";
  | }
  | }
  | 
  | 



The error when I click on the link is as follows:

  | WARNING: Component _id13 just got an automatic id, because there was no id 
assigned yet. If this component was created dynamically (i.e. not by a JSP tag) 
you should assign it an explicit static id or assign it the id you get from the 
createUniqueId from the current UIViewRoot component right after creation!
  | 14:14:09,411 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id _id1
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  | 


I'm probably doing my @Stateless bean completely against convention, but all I 
want is to load the group on demand and update on demand, I dont' think it 
needs to be statefull.

I thought I could just create a @Stateless bean and invoke it from anywhere, 
but I must be missing something, help is needed with that *something*.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965345#3965345

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965345
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Eager Fetching in certain conditions

2006-08-10 Thread sjmenden
I understand that, however, a stateless EJB can not have a an extended 
persistence context from what I've found.

I'm wondering if there is a way to tell the query to eagerly fetch all of the 
associations for this special case.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964360#3964360

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964360
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Eager Fetching in certain conditions

2006-08-09 Thread sjmenden
I am using seam, however, this is more of a hibernate question.  I would like 
to retain the laziness of my hibernate managed beans, however, when I am using 
a stateless session bean, I would like to turn on eager fetching for that 
instance, otherwise I'll get the Lazy Exception.   I did a quick search and was 
not able to find how to do this, could someone point me in the right direction? 
 

Thanks,
Samuel

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964163#3964163

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964163
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: can't quite get push-style mvc working

2006-08-08 Thread sjmenden
That was it, thanks so much.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963816#3963816

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963816
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: can't quite get push-style mvc working

2006-08-07 Thread sjmenden
Thank you for the response,

are you sure there is nothing else I need to do to get this working.  I changed 
my pages.xml to:


  | 
  | 
  | 
  | 


And when I hit /showGroups.seam, this is all I get in my console:


  | 16:33:30,791 INFO  [Pages] reading pages.xml
  | 16:33:31,458 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.PRETTY_HTML' found, using default value true
  | 16:33:31,459 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
  | 16:33:31,460 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
  | 16:33:31,460 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.AUTO_SCROLL' found, using default value false
  | 


Whereas I should be seeing somewhere:


  | [INFO ]Find First Page
  | 


Does my EJB necessarily have to be a part of a conversation, I don't think that 
is a requirement though.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963663#3963663

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963663
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - can't quite get push-style mvc working

2006-08-07 Thread sjmenden
I am trying to emulate the "push"-style section 1.10.3 in Chapter 1. Seam 
Tutorial.

When I load the page I want data to get pushed to initially, nothing happens in 
console and the data is not loaded, despite the page loading as normal.  So I 
am assuming the EJB is never actually getting called.  Even if I am not 
actually Outjecting anything to the view, when the findFirstPage method gets 
called in the EJB, it should be outputing debug text to the console, which it 
never does.

So what I want to do is for a user to go to /showGroups.seam, which is mapped 
to the file showGroups.jsp, and for an arbitrary list of default groups to be 
pushed to the view, and the page will also allow the user to search for groups. 
 But a big part of the functionality is showing those initial groups.

Here is my code:

pages.xml

  | 
  | #{groupFinder.findFirstPage}
  | 
  | 


GroupFinderBean.java   with non relevant code removed

  | @Name("groupFinder")
  | @Stateful
  | @Scope(ScopeType.SESSION)
  | public class GroupFinderBean implements GroupFinder {
  | 
  | @Logger
  | private Log log;
  | 
  | @DataModel
  | private List groupList;
  | 
  | 
  | @PersistenceContext
  | private EntityManager entityManager;
  | 
  | private void executeQuery() {
  | Map parameters = new HashMap();
  | StringBuffer queryString = new StringBuffer();
  | 
  | log.info("searchColumns: " + Arrays.asList(searchColumns));
  | 
  | 
  | //***//
  | // Handle case when a user clicks on a letter
  | //***//
  | if(start != null && !start.equals("")) {
  | queryString.append(" or group.name" + " like :value or 
group.name like :valuetwo ");
  | parameters.put("value", start + "%");
  | parameters.put("valuetwo", start.toLowerCase() + "%");
  | }
  | 
  | 
  | ////
  | // Handle case when a user is searching via the search field
  | ////
  | if(searchField != null ) {
  | int x = 0;
  | for(String searchColumn : searchColumns) {
  | if(searchField.contains("%")) {
  | queryString.append(" or group." + 
searchColumn + " like :" + searchColumn);
  | } else {
  | queryString.append(" or group." + 
searchColumn + " = :" + searchColumn);
  | }
  | parameters.put( searchColumn, searchField );
  | x++;
  | }
  | }
  | 
  | ////
  | // Handle case when a user enters no input, but clicks search
  | ////
  | if(queryString.length() == 0) {
  | queryString.append("select group from Group group");
  | } else {
  | queryString.delete(0, 3).insert(0, "select group from 
Group group where ");
  | }
  | 
  | if(order!=null) {
  | queryString.append(" order by group.").append(order);
  | if (descending) queryString.append(" desc");
  | }
  | 
  | 
  | log.info("searchField: " + searchField + " queryString: \n\n" + 
queryString + "\n\n");
  | 
  | Query query = entityManager.createQuery(queryString.toString());
  | for (Entry  param : parameters.entrySet()) {
  | query.setParameter( param.getKey(), 
param.getValue() );
  | }
  | groupList = (List) query.setMaxResults(pageSize)
  | 
.setFirstResult(pageSize*pageNumber)
  | .getResultList();
  | }
  | 
  | public String findFirstPage() {
  | log.info("Find First Page");
  | pageNumber=0;
  | executeQuery();
  | return null;
  | }
  | }
  | 


web.xml

  | 
  |  Faces Servlet
  |  *.seam
  | 
  | 


I'm thinking it may have something to do with the scope of the EJB, as the EJB 
in the Blog example is Stateless, mine is Stateful.

Thanks for the help.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963645#3963645

Reply to the post : 
http://www.jboss.com/index.html?mod

[jboss-user] [JBoss Seam] - A Comment on SEAM

2006-08-04 Thread sjmenden
I have done a lot of web development in JSPs/Servlets and in Spring.  I must 
say that SEAM is the best framework (if one chooses to call it that) I've ever 
worked with. 

I thought Spring was a revalation and it did reduce a significant amount of my 
code, but SEAM reduces that code even more.I just wanted to express my 
thanks to Gavin and the rest of the people who created SEAM at making coding in 
the framework a joy, not a pain.

-Samuel

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963282#3963282

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963282
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: commandLink not initially executing action when clicked

2006-08-04 Thread sjmenden
Thank you petemuir, all I needed to do was output the messages, then I saw the 
validation error, because I had two fields as required, I took the required off 
and everything worked.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963276#3963276

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963276
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: commandLink not initially executing action when clicked

2006-08-03 Thread sjmenden
Below is the showUsers.jsp.

What I want to use is allow the user to click on the R or the S  and for that 
to bind to the userFinder.findFirstPage which will look for the start variable 
which is set to R or S and find all users that start with and R or S and return 
the list.

As I said before, when going to the page for the first time, the link will just 
refresh the page and do nothing and no output, however, if I first search for a 
user, then I click on the R or the S links, then it all works.

showUsers.jsp:


  | 
  |  
  |  
  | Users 
  |  
  |  
  |  
  |  
  |  
  | ...
  | ...
  | ...
  | 
  | 
  | 
  | 
  | 
  | 
  | ...
  | ...
  | ... 
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  | User:
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | (for wildcard search use 
%) 
  |  
  |  
  |  
  |  
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 


Here is my UserFinderBean with only the relevant information to this question.  
If you want to see the full code, see my previous post.

  | @Name("userFinder")
  | @Stateful
  | @Scope(ScopeType.SESSION)
  | public class UserFinderBean implements UserFinder {
  | 
  | @DataModel
  | private List userList;
  | 
  | @DataModelSelection
  | private User selectedUser;
  | 
  | @PersistenceContext
  | private EntityManager entityManager;
  | 
  | private void executeQuery() {
  | Map parameters = new HashMap();
  | StringBuffer queryString = new StringBuffer();
  | 
  | if(start != null && !start.equals("")) {
  | queryString.append(" or user.username" + " like :value 
or user.username like :valuetwo ");
  | parameters.put("value", start + "%");
  | parameters.put("valuetwo", start.toLowerCase() + "%");
  | }
  | 
  | Query query = entityManager.createQuery(queryString.toString());
  | for (Entry  param : parameters.entrySet()) {
  | query.setParameter( param.getKey(), 
param.getValue() );
  | }
  | userList = (List) query.setMaxResults(pageSize)
  | 
.setFirstResult(pageSize*pageNumber)
  | .getResultList();
  | }
  | 
  | public String findFirstPage() {
  | executeQuery();
  | return null;
  | }
  | 
  | @Destr

[jboss-user] [JBoss Seam] - commandLink not initially executing action when clicked

2006-08-03 Thread sjmenden
I have a page which allows me to search for registered users to a site.  

The part of the page I have a problem with is as follows, page: showUsers.jsp 
which makes calls to an EJB3 called userFinder


  | 
  |   
  | 
  | 

Here is the problem.  When I initially hit the showUsers.jsp page and click on 
the link defined above, the page refreshes but nothing happens on the page or 
in the console output.
HOWEVER, if I first search for a user (code not shown) THEN I click the link 
above, then it works and shows me all users starting with the letter S.

It seems like something contexual, but I don't understand why the 
#{userFinder.findFirstPage} action isn't working on the commandLink before I 
search for something.


  | @Name("userFinder")
  | @Stateful
  | @Scope(ScopeType.SESSION)
  | public class UserFinderBean implements UserFinder {
  | 
  | private User example = new User();
  | public User getExample() {
  | return example;
  | }
  | 
  | 
  | private String[] searchColumns;
  | public String[] getSearchColumns() {
  | return searchColumns;
  | }
  | public void setSearchColumns(String[] searchColumns) {
  | this.searchColumns = searchColumns;
  | }
  | 
  | 
  | private SelectItem[] searchColumnItems = new SelectItem[] {
  | new SelectItem("username", "Username"),
  | new SelectItem("firstName", "First"),
  | new SelectItem("lastName", "Last"),
  | new SelectItem("company", "Company"),
  | new SelectItem("email", "Email")
  | };
  | public SelectItem[] getSearchColumnItems() {
  | return searchColumnItems;
  | }
  | 
  | private int pageNumber = 0;
  | private int pageSize = 15;
  | public void setPageSize(int size) {
  | pageSize = size;
  | }
  | public int getPageSize() {
  | return pageSize;
  | }
  | 
  | public boolean isPreviousPage() {
  | return userList!=null && pageNumber>0;
  | }
  | public boolean isNextPage() {
  | return userList!=null && userList.size()==pageSize;
  | }
  | 
  | @Logger
  | private Log log;
  | 
  | @DataModel
  | private List userList;
  | 
  | @DataModelSelection
  | private User selectedUser;
  | 
  | @PersistenceContext
  | private EntityManager entityManager;
  | 
  | private void executeQuery() {
  | Map parameters = new HashMap();
  | StringBuffer queryString = new StringBuffer();
  | 
  | log.info("searchColumns: " + Arrays.asList(searchColumns));
  | 
  | 
  | //***//
  | // Handle case when a user clicks on a letter
  | //***//
  | if(start != null && !start.equals("")) {
  | queryString.append(" or user.username" + " like :value 
or user.username like :valuetwo ");
  | parameters.put("value", start + "%");
  | parameters.put("valuetwo", start.toLowerCase() + "%");
  | }
  | 
  | 
  | //  if(example.getUsername() != null ) {
  | //  if(example.getUsername().contains("%")) {
  | //  queryString.append(" and user.username like 
:username");
  | //  } else {
  | //  queryString.append(" and user.username = 
:username");
  | //  }
  | //  parameters.put( "username", example.getUsername() );
  | //  }
  | 
  | if(example.getUsername() != null ) {
  | int x = 0;
  | for(String searchColumn : searchColumns) {
  | if(example.getUsername().contains("%")) {
  | queryString.append(" or user." + 
searchColumn + " like :" + searchColumn);
  | } else {
  | queryString.append(" or user." + 
searchColumn + " = :" + searchColumn);
  | }
  | parameters.put( searchColumn, 
example.getUsername() );
  | x++;
  | }
  | }
  | 
  | if(queryString.length() == 0) {
  | queryString.append("select user from User user");
  | } else {
  | queryString.delete(0, 3).insert(0, "select user from 
User user where ");
  | }
  | 
  | if(order!=null) {
  | queryString.append(" order by user.").append(order);
  | if (descending) queryString.append(" desc");

[jboss-user] [JBoss Seam] - Re: Getting IllegalStateException: No data type for node:...

2006-07-31 Thread sjmenden
Thanks a ton.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961860#3961860

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961860
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Getting IllegalStateException: No data type for node:...

2006-07-28 Thread sjmenden
I successfully got the seam registration example running.  I took that example, 
changed a few classes so I could begin getting familiar with seam, but I can 
not get past this one exception:


  | javax.faces.FacesException: Error calling action method of component with 
id _id0:_id7
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.faces.el.EvaluationException: Exception while invoking 
expression #{sellcar.sell}
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | ... 24 more
  | Caused by: javax.ejb.EJBException: java.lang.IllegalStateException: No data 
type for node: org.hibernate.hql.ast.tree.IdentNode
  |  \-[IDENT] IdentNode: 'car' {originalText=car}
  | 
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
  | at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
  | at $Proxy78.sell(Unknown Source)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce