I have a custom servlet in my application where I'd like the conversation to
span the whole session.
I want all my entities managed for the duration of the http session. I'd use
@PersistenceContext(EXTENDED), but this would only work if I merged all entity
references that I got from other
Sorry, I meant, ScopeType.SESSION instead of STATEFUL
@Name
| @Scope(SESSION)
| @Stateful
| public class FooImpl implenents Foo {
Also, I understand that the SMPC is conversation scoped, but then what should I
use in a Session scoped Session bean where there is no natural conversation
Do you have a @Local or @Remote annotated interface with int getValue(); in
it?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127618#4127618
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127618
Make sure you have the following in components.xml
component name=org.jboss.seam.ui.EntityConverter
| property name=entityManager#{entityManager}/property
| /component
Incidentally, I think this component should have a lowerCamelCase name
(entityConverter rather than EntityConverter) as
I just recently moved my project to JBoss 4.2.2 from 4.2.0. I've noticed many
LIEs where there weren't any before. I could not isolate the cause. I've moved
the project back to JBoss 4.2.0 and the LIEs no longer occur.
Anyone have any ideas / suggestions?
| 22:02:27,095 ERROR
I have a SFSB that is invoked in multiple requests without a clear Begin or
End. It uses a SLSB to get a reference to an entity.
Here's an example from my project (note this worked in 1.2.1):
Foo is session scoped, so I expect its instance variables to stay around and
managed. When I invoke
I've been experiencing some problems since switching to seam 2 with anonymous
wrote : org.hibernate.LazyInitializationException: could not initialize proxy -
no Session
Is my understanding correct:
One should use a SMPC in Seam components that are *not* session beans.
@In EntityManager
I've also noticed that if I find an entity using a EJB PersistenceContext EM,
then I get LazyInitializationExceptions when trying to fetch a property of that
entity in another bean that uses the SMPC EM.
The only way I've found around this is to re-fetch the entity using the current
EM.
This
pete:
I've used the jboss-app.xml from the Registration example. I've since merged
all messages into 1 properties file, which works for my project, but I've
looked into it further in the hopes that it'll be of some use.
I've created a JIRA bug and sample application:
example app A:
jboss-app
JIRA ref:
http://jira.jboss.org/jira/browse/JBSEAM-2579
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4126305#4126305
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126305
___
In case this helps someone else...
If I remove jboss-app.xml from app.ear/META-INF/ then the messages.properties
file in each WAR is loaded for the appropriate context.
With jboss-app.xml included, only one of the messages.properties files is
loaded, the others are ignored.
I'm not certain
I have an EAR that contains 2 WARs. I have different messages.properties for
each WAR. I've not been able to get them both to work. The message bundle first
accessed seems to apply to both WARs.
In other words, if I go to localhost:8080/a/ then the messages from
Pete,
That was it, we were using another 3rd party jar that I didnt mention that, for
some reason, had it's own javax.interc
eptor.InvocationContext.class that was getting loaded first.
Works now. Thanks so much for your help.
View the original post :
Took a while but I found a solution (or, rather, the cause) of this issue.
I removed he MyFacesExtensionsFilter from every web.xml file and now
Authentication works as expected:
remove from web.xml
filter
| filter-nameMyFacesExtensionsFilter/filter-name
| filter-class
|
mrobinson28,
Removing the MyFacesExtensionsFilter from web.xml worked for me. Give that a
shot.
http://www.jboss.com/index.html?module=bbop=viewtopicp=4124606#4124606
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4124607#4124607
Reply to the post :
Hi Pete, I'm very grateful for your reply. I've significantly paired down the
jars that I'm packaging:
| asm-2.2.jar
| asm-attrs-1.5.3.jar
| commons-beanutils-1.7.0.jar
| commons-digester-1.8.jar
| commons-el-1.0.jar
| commons-fileupload-1.0.jar
| commons-lang-2.1.jar
|
How should EARs with multiple WARs be packaged? How'bout if they share the same
JAR?
my-application.ear/
| jboss-seam.jar
| lib/
| jboss-el.jar
| META-INF/
| MANIFEST.MF
| application.xml
|
| a.war/
| META-INF/
|
After adding a jboss-app.xml file to my ear/META-INF/ dir I've started seeing
the following error when starting jboss 4.2.2:
anonymous wrote : java.lang.RuntimeException: @javax.annotation.PostConstruct
annotated method has the wrong signature - public void
Pete,
Thanks for the reply. I'm creating a test app now, and will submit it to JIRA.
Is there anything you suggest I try, in order to isolate the issue? I've only
noticed this behavior because the following stopped working:
security:identity authenticate-method=#{authenticator.authenticate} /
Ok, it's starting to make more sense (though the behavior has changed since
since moving to seam 2 from 1.2)
I have several components.xml files, each of which configure the Identity
authenticate-method to use a different auth component method:
a.war:
security:identity
It looks like seam needs to be loaded multiple times - once for each web module
- to configure the built in components differently. I had mostly the same
structure using seam 1.2 and this worked, so I'm not sure what's changed.
If I only have one module then it correctly invokes the
mrobinson28,
Have you found a solution to this issue? I've run into the same thing:
http://www.jboss.com/index.html?module=bbop=viewtopict=128164
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4122333#4122333
Reply to the post :
I've filed a JIRA issue:
http://jira.jboss.org/jira/browse/JBSEAM-2523
From what I've found it looks like the Identity component is not scopped to
the appropriate WAR. If you have an EAR with multiple WARs it's not clear
which Identy component (which components.xml configuration) will apply.
I'm in the process of migrating from seam 1.2 to 2.0.1CR1 and I've run into a
problem. My application is packaged as an ear, with multiple web modules (each
with their own components.xml, pages.xml, etc). The java classes used by all
web modules are packaged in a single jar.
|
Ugly workaround:
Everything works as expected if I:
1) start Jboss as normal
2) undeploy my ear (move it to a temp dir)
3) redeploy it (move it back into the deploy dir)
Note. for this to work I must also package those extra dummy jars (they only
have 1 file - seam.properties).
But, if I just
i had this exact same problem. You can somewhat improve things by adding a
delays or queues as you've done but it is not a good solution as the problem
can still occur - just less frequently, or under more rare circumstances.
This can also occur if a user clicks on an a4j:commandButton too
Don't have any information for you, but I'm also going to be thinking of
clustering shortly and would appreciate any insight.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108206#4108206
Reply to the post :
What would is a good approach for changing message bundles at runtime?
I'd like something similar to the locale selector, but with the ability to
switch to messages defined in arbitrarily named '.properties' files.
So, I'd like to switch to a localized version of 'foo' or 'bar' without
My application is deployed as an EAR with multiple webapps. One of the webapps
has a single servlet within which I'd like to use a Seam component. Seam works
on the other JSF webapp in the same ear, but I can't get it to work on the
servlet.
I've added a context-filter for the same url-pattern
Needed the Seam Filter in web.xml...
| filter
| filter-nameSeam Filter/filter-name
| filter-classorg.jboss.seam.web.SeamFilter/filter-class
| /filter
| filter-mapping
| filter-nameSeam Filter/filter-name
|
I have an ear packaged as:
ear/
| a.war
| /WEB-INF/faces-config.xml
| a.jar
| /com/example/a/Messages.properties
| b.war
| /WEB-INF/faces-config.xml
| b.jar
| /com/example/b/Messages.properties
faces-config.xml in a.war has:
That worked, thanks very much atao!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069438#4069438
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069438
___
jboss-user mailing list
trickyvail wrote : Because the jsf components render xhtml elements I think
maybe the engines are unhappy with the use of the .html extension (although
MSN works fine).
That's probably not a concern. Just use .html or .xhtml extension as you like
and specify the correct DOCTYPE.
View the
You can get the view id with:
@In
| FacesContext facesContext;
|
| ...
|
| facesContext.getViewRoot().getViewId()
|
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045891#4045891
Reply to the post :
This problem does not happen on non-conversational pages. I'm hoping there's a
better solution than trying to set the requestDelay high enough to avoid
issues.
The problem with that approach is that the proper value for requestDelay
depends on the responsiveness of the server (which depends
cwash wrote : ... would be to be able to configure the conversation to
abandon a currently processing request if a new one comes in.
That's about what I was thinking. I haven't thought through the ramifications
though and I'm not sure how doable it is.
Another alternative would be for A4J
cwash wrote : That sounds good to me, but will the a4j guys go for it?
Let's hope so:
https://ajax4jsf.dev.java.net/issues/show_bug.cgi?id=42
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045597#4045597
Reply to the post :
I'd like to display Info and Error messages using FacesMessages.
Perhaps using FacesMessage.SEVERITY_INFO and FacesMessage.SEVERITY_ERROR
Is there anyway that I can display global FacesMessages that are INFO in one
area and ERROR in another? Or at least set the styleClass based on which is the
Thanks, I should have RTFM first. Appreciate the tip.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044520#4044520
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044520
___
I have a simple select country selectOneMenu. I'm using a4j:support to
re-render a province/state/region field based on my selection of country. I'm
experiencing conversation processing another request errors if I change my
country selection too quickly.
Here's my view code:
h:selectOneMenu
petemuir wrote : Do the eventsQueue and requestDelay attributes not help?
From what I've seen they should both be set by default...
I've not set either of these myself. My understanding, as well, was that they
were set by default.
anonymous wrote : requestDelay Delay ( in ms. ) for send ajax
41 matches
Mail list logo