A little bit more about this : the org.jboss.seam.security.loggedOut event is
not raised when the web session expire and there was a connected user.
Can I consider this a seam bug or not ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121331#4121331
Reply to
Hello.
I'm using seam 2.0.0 and I'd like to cound the active sessions and connected
users.
For session, I'm using two observer methods in an application scoped ejb to
count :
@Observer(org.jboss.seam.postCreate.org.jboss.seam.web.session)
| public void increaseUserCount() {
|
well, indeed.Here is the complete asynchronous method :
@Stateless
| 36 @Name(importRunAction)
| 37 public class ImportRunAction implements ImportRunActionInterface {
| 38
| 39 @In
| 40 EntityManager entityManager;
| 41
| 42 public ImportRunAction()
I've got this because I'm modifying an object managed by hibernate in an
asynchronous method.
Persisting new objects work fine though.
The error occur after the method is run.
I'm usins seam CVS.
Any ideas ?
here is the full stack :
19:07:48,163 WARN [arjLoggerI18N]
Here is the class with some code removed as I think it's not relevant.
When entityManager.merge is uncommented, the above exception ocurs.
@Stateless
| @Name(importRunAction)
| public class ImportRunAction implements ImportRunActionInterface {
|
| @In
| EntityManager
I'm using seam cvs (2 weeks old I think).
I use @Restrict on entity beans.
The doc here
http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/security.html#d0e6939
states
anonymous wrote : If you are using a Hibernate SessionFactory configured via
Seam, you don't need to do anything
up ! :)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4084025#4084025
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084025
___
jboss-user mailing list
jboss-user@lists.jboss.org
Can I use @In EntityManager entityManager; in an entity bean ?
I have this in my entity bean :
@Transient
@In(required=true)
EntityManager entityManager;
But the entityManager is always null.
I works in other classes thought, si I wonder if it's possible ?
Is this related to this :
Here is the page :
!DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
|
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
| ui:composition xmlns=http://www.w3.org/1999/xhtml;
| xmlns:s=http://jboss.com/products/seam/taglib;
|
I've never done that with a seam application ... do you have any help about how
I can setup that ?
The app has been generated by seam-gen and I'm using eclipse, It shouldn't be
too hard ...
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4056549#4056549
Reply
I've managed to debug it but I don't know where and what it fails. Moreover I
miss some sources.
Anyway, here is my whole test application :
http://beta.livre-rare-book.net/metadebug.tar.bz2
I've not included the lib dir as it's the one from seam 1.3.0.ALPHA.
The app uses DefaultDS
Step to
I had to change this in order to compile seam cvs :
diff -r1.198 build.xml
609c609
---
Because the antlr library has been renamed from ./lib/ant-antlr-1.6.5.jar to
./lib/ant-antlr.jar
View the original post :
ops, the submit delete some text of my diff ?!? Here it is, again :
diff -r1.198 build.xml
| 609c609
|include name=ant-antlr-*.jar /
| ---
|include name=ant-antlr*.jar /
View the original post :
+1 :)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054776#4054776
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054776
___
jboss-user mailing list
jboss-user@lists.jboss.org
Oops, my previous post has been cut off. It'snot posible to edit ?
anonymous wrote : Please let me know if this is helpful (I haven't tried it
myself :)
Sure ! Thanks for the tip :)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4010839#4010839
Reply to the
[EMAIL PROTECTED] wrote :
| Not much I can do about that. JSF forces me to swallow these things. I'm
not going to do it silently, that's just dangerous.
Yes, but in the end, the security rule is not applied.
It's not a problem that's there's an exception raised. I guess there sould not
be a
Hello !
I'm trying the latest seam with seam-security.
Using roles is pretty easy, but I haven't managed using permissions yet.
It's really hard to write rules when you're new to JBoss Rules.
How can I debug my rules ?
I know they does not work. Is there a jboss rules verbose+debug mode, which
Me again, sorry :)
After reading other topics, I downloaded seam CVS.
It works much better even if i also have Swallowing exception thrown by page
action error.
At least I'm now sure the pages.xml and rules files are taken into account.
One more question : in the documentation, you added a
It workd if I use property name=hibernate.hbm2ddl.auto value=update/.
Thanks!
Anyway, I'll experiment a bit more and I will probably report this to hibernate.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996848#3996848
Reply to the post :
| 11:25:26,250 INFO [EARDeployer] Started J2EE application:
file:/home/gaboo/progs/jboss-4.0.5.GA/server/default/deploy/lrbseamtest.ear/
| 11:25:26,251 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear
one more note : I tried with a char(255) and i get the same error.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996608#3996608
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996608
I tried with latest CVS seam version and seam gen did not worked :
20:50:13 [EMAIL PROTECTED]:~/workspace/jboss-seam$ ./seam setup
| Buildfile: build.xml
|
| BUILD FAILED
| /home/gaboo/workspace/jboss-seam/seam-gen/build.xml:15: taskdef class
org.jboss.seam.tool.PathFilenameTask cannot
Indeed, it works :)
But, I found another problem, maybe it is configurable :
generate-entities works, but crashes once deployed if there is a column which
type is char(X) with X 1.
It works with X=1.
For example, it works with the above abocc table if I change ty and lb columns
to be
no ideas ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992026#3992026
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992026
___
jboss-user mailing list
24 matches
Mail list logo