[JBoss Seam] - Re: @In gets not injected thou it exists
by axismundi
thanks for your input.
the component declaration surely doesn't need to be an interface.
I added @Name("applicationUser") to my ApplicationUser class, but still it is not being injected. And anyway, the component "applicationUser" IS in fact existing in the Seam session-ctx (according to Seam debug-page).
Secondly, and even more strange, the injection for applicationUser works well in another SFSB:
| @Stateful
| @Name("orderManagement")
| @Scope(ScopeType.SESSION)
| public class OrderManagementBean implements OrderManagement {
|
| @In
| private ApplicationUser applicationUser; <-- gets injected properly!
|
| ----------------
| @Stateful
| @Name("shopTree")
| @Scope(ScopeType.SESSION)
| public class ShopTreeBean implements ShopTree {
|
| @In
| private ApplicationUser applicationUser; <-- NOT injected !
yes, both EJBs run in the same application.
By the way, the applicationUser component is put into session-ctx by the authentication class via @Out-jection.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098169#4098169
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098169
18Â years, 8Â months
[Beginners Corner] - JBoss Startup - Log4JService
by Matty_R
I am trying to run a JBoss server and am getting the following error on start up. I'm very new to JBoss / Java so this error does not really mean much to me, so any help would be greatly appreciated. I've also included the Log4J attribute from the JBoss-Service.xml file below incase that helps
[ObjectName: jboss.system:type=Log4jService,service=Logging
state: FAILED
I Depend On:
Depends On Me: org.jboss.deployment.DeploymentException: No property editor for attribute: ConfigurationURL; type=class java.net.URL]
at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1095)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:484)
| <!-- ======================================== -->
| <!-- Log4j Initialization -->
| <!-- ======================================== -->
| <mbean code="org.jboss.logging.Log4jService" name="jboss.system:type=Log4jService,service=Logging">
| <attribute name="ConfigurationURL">resource:log4j.xml</attribute>
| </mbean>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098163#4098163
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098163
18Â years, 8Â months
[JBoss Seam] - Hibernate can not execute query
by vwiencek
Hi,
is there a way to prevent an ajax request to call a method too much times ?
Indeed, I have an inputText with a search string and an ajax support calling a query() method on blur event. The problem occurs when the database contains too much data, and the query method is called too many times.
Is that possible to make this method synchronized ? or just ignore query() calls untill the last ended ?
my exception is :
| Caused by: org.hibernate.AssertionFailure: collection was processed twice by flush()
| at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:202)
| at org.hibernate.engine.Collections.processReachableCollection(Collections.java:185)
| at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:37)
| at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101)
| at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61)
| at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55)
| at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:138)
| at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
| at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
| at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
| at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
| at com.gpec.PersonManagerAction.queryPersons(PersonManagerAction.java:67)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098162#4098162
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098162
18Â years, 8Â months
[JBoss Seam] - Hello World and i18n issues
by emiperez
Hello World!
I'm begining to use Seam for some Web Applications I want to develop, and I have some questions about i18n:
a) I want to have 2 message bundle levels.
1.- The first one is a general bundle for all applications (I would use the default "messages" bundle).
2.- An application specific bundle "myapp_messages".
When I create an eclipse project i see the messages_[language_code].properties files are in the resources folder and when I deploy it, they're copied to WEB-INF/classes. But components.xml only exists in "WEB-INF". How is the correct way to add the specific bundle? Change the build.xml file to copy the myapp_messges_[lang].properties as well to WEB-INF/classes or move the "messages" bundle to WEB-INF and add a line for that bundle in conponents.xml?
b) The locale name for Basque Locale ("eu" code) that appears is the spanish name ("vascuence") instead of the Basque name ("Euskara"), and for many basque people "vascuence" sounds offensive. Where should I order to change it? (As it seems to be a JDK issue).
Thank you and sorry for my poor English.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098159#4098159
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098159
18Â years, 8Â months