[JBoss Seam] - Re: @Out frustration
by texan
I'm using (as far as I know) the latest released versions of facelets, my faces, and tomahawk. However, I could try the CVS versions to see if they fixed the problem.
The jury's still out (in my head anyway) on server vs. client. The usual tradeoff - server means that I don't have to send as much junk out to the browser, client means that I'm storing more on the server and might run out of memory with lots of users...
I'm still in a pilot stage of my app right now, with a handful of users. They're on an old Servlet/JSP code base, whiie I upgrade the technology to Seam/JSF and add features. Scares me a little to be learning all this at once (never used JSF), but it's a good way to insure that I learn fast.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970225#3970225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970225
19 years, 7 months
[JBoss Portal] - Re: How can I set the language for all portlets in the porta
by Antoine_h
may be have a look at the CMSPortlet, to see how it manage with the locale.
The locale is also defined in the user preferences (if logged in).
if you want to manage the session locale (decided by the user, that ask for a different locale, even if not logged in), you may use a parameter stored in the session, at the Application scope (for all portlets to read it). you may search on the web, there are some articles that explain how to use parameters in the session.
I don't use a parameter in the session, but a Inter Portlet Communication (IPC) that is based on messages exchanged between portlets.
As the IPC store and provide the messages at a session level, it provide me with a storing this parameter (as a message) at the session level.
that avoid to put many things in the session, that is not recommended for heavy load management.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970224#3970224
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970224
19 years, 7 months
[JBoss Seam] - Re: Invitation to try new Seam authentication features
by hemanthn
I have downloaded the latest build and configured the seam authentication as per the instructions given in this form. When I try to deploy the project is gives me the below error. Please let me know how to resolve the issues.
java.lang.IllegalArgumentException: no property for configuration setting: entityManager.providers
at org.jboss.seam.Component.initInitializers(Component.java:311)
at org.jboss.seam.Component.(Component.java:209)
at org.jboss.seam.Component.(Component.java:159)
at org.jboss.seam.Component.(Component.java:154)
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:376)
at org.jboss.seam.init.Initialization.addComponents(Initialization.java:334)
at org.jboss.seam.init.Initialization.init(Initialization.java:195)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy39.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy40.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: java.beans.IntrospectionException: Method not found: isProviders
at java.beans.PropertyDescriptor.(Unknown Source)
at java.beans.PropertyDescriptor.(Unknown Source)
at org.jboss.seam.Component.initInitializers(Component.java:307)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970223#3970223
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970223
19 years, 7 months
[Datasource Configuration] - Timestamp--date--oracle
by cfd_bv
DataBase Oracle9i
JBoss 3.2.5
I have an entity with the next declaration:
| /**
| * @ejb.persistence colum-name="fechaexp"
| * @ejb.interface-method
| */
| public abstract java.sql.Timestamp getFechaexp();
| /**
| * @ejb.interface-method
| */
| public abstract void setFechaexp(java.sql.Timestamp newFechaexp);
|
and in database the fiel fechaExp is Date.
When I try to recovery the entity:
1) if the field in database is null or was fill with date-time, I have no problem.
2) but if the field was only fill with date, I get the next exception:
| javax.ejb.EJBException: Internal error getting results for field fechaexp; nested exception is: java.lang.ArrayIndexOutOfBoundsException: -1
| java.lang.ArrayIndexOutOfBoundsException: -1
| at oracle.jdbc.driver.DateTimeCommonAccessor.computeJulianDay(DateTimeCommonAccessor.java:341)
| at oracle.jdbc.driver.DateTimeCommonAccessor.getMillis(DateTimeCommonAccessor.java:386)
| at oracle.jdbc.driver.DateTimeCommonAccessor.getDate(DateTimeCommonAccessor.java:83)
|
Tables in database is not only accessed by my application, other application don't made in Java uses the tables too.
I have tried various configurations
1) change the field declaration to java.sql.Date. No work
2) add to xdoclet declaration
| /**
| * @ejb.persistence jdbc-type="DATE" sql-type="TIMESTAMP" colum-name="fechaexp"
| * @ejb.interface-method
| */
|
or
| /**
| * @ejb.persistence jdbc-type="DATE" sql-type="DATE" colum-name="fechaexp"
| * @ejb.interface-method
| */
|
and I get the same exception.
Any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970221#3970221
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970221
19 years, 7 months