[JBoss Seam] - Rollback exceptions without ending the conversation
by enazareno
Hi,
I am developing a CRUD application. When I start editing a bean, I begin a conversation. I do some other transactions that spans multiple pages. The conversation ends when I save successfully. If there are database exceptions that occur, I would like to display the same page where the error occured with some matching message without ending the conversation. I tried the exceptions.xml as in the docs, but it redirects it to an error page and it seems you need to end the conversation. If I end the conversation, I cant get back to my current conversation and lose the changes I've made. This sounds a very basic functionality but I have been struggling with this. If somebody has worked out a similar problem, I'd appreciate it a lot if you can help me out. Thanks.
Regards,
Elmo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025703#4025703
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025703
19Â years, 1Â month
[Clustering/JBoss] - Problems whit JBoss cluster.
by Linuso
I have a jboss cluster and it seems like it dosent work the way I want, the nodes disconnecting from each other and there are lot's of errors in the server-log..
Is there anyway I can log or whatch the jboss-servers to see exactly what going wrong...
here are an example from the log file of whats happening:
2007-03-05 19:20:57,371 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:21:33,954 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:21:33,960 INFO [org.jboss.ha.framework.interfaces.HAPartition.OASProduktion] Suspected member: oasprod02:42789 (additional data: 19 bytes)
2007-03-05 19:22:10,521 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:22:47,130 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:23:23,669 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:24:00,194 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:24:36,772 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:24:36,775 INFO [org.jboss.ha.framework.interfaces.HAPartition.OASProduktion] Suspected member: oasprod02:42789 (additional data: 19 bytes)
2007-03-05 19:25:13,316 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:25:49,773 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
2007-03-05 19:26:26,278 WARN [org.jgroups.protocols.FD] ping_dest is null: members=[oasprod02:42789 (additional data: 19 bytes), oasprod01:43265 (additional data: 19 bytes)], pingable_mbrs=[oasprod01:43265 (additional data: 19 bytes)], local_addr=oasprod01:43265 (additional data: 19 bytes)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025699#4025699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025699
19Â years, 1Â month
[JBoss Seam] - Almost ready to give up... (Tomcat woes galore)
by mlh496
I need to be able to deploy Seam apps on Tomcat. I've setup the datasource, but keep getting this stack trace. Can anyone help me decipher the following errors? Many thanks! -Michael
00:34:59,593 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
| 00:34:59,781 FATAL [Ejb3Configuration] hibernate.cfg.xmlO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] import.sqlO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] jbpm.cfg.xmlO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] messages_en.propertiesO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] META-INF/jboss-beans.xmlO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] META-INF/persistence.xmlO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] pooter-dev-ds.xmlO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] seam.propertiesO-:-Ofalse
| 00:34:59,781 FATAL [Ejb3Configuration] security.drlO-:-Ofalse
| 00:34:59,781 WARN [Ejb3Configuration] Overriding hibernate.transaction.factory_class is dangerous, this might break the EJB3 specification implementation
| 00:34:59,843 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 00:34:59,859 ERROR [NamingHelper] Could not obtain initial context
| javax.naming.NamingException: Local server is not initialized
| at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
| at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
| at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
| at javax.naming.InitialContext.init(Unknown Source)
| at javax.naming.InitialContext.<init>(Unknown Source)
| at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
| at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
| at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
| at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
| 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.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:121)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1810)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1725)
| at org.jboss.seam.Component.newInstance(Component.java:1714)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:165)
| at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:137)
| at org.jboss.seam.init.Initialization.init(Initialization.java:479)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:448)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
| 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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
| 00:34:59,859 FATAL [DatasourceConnectionProvider] Could not find datasource: java:comp/env/pooterDatasource
| javax.naming.NamingException: Local server is not initialized
| at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
| at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
| at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
| at javax.naming.InitialContext.init(Unknown Source)
| at javax.naming.InitialContext.<init>(Unknown Source)
| at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
| at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
| at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
| at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
| 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.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:121)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1810)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1725)
| at org.jboss.seam.Component.newInstance(Component.java:1714)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:165)
| at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:137)
| at org.jboss.seam.init.Initialization.init(Initialization.java:479)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:448)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
| 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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
| 00:34:59,859 WARN [Contexts] Could not destroy component: pooterEntityManagerFactory
| java.lang.NullPointerException
| at org.jboss.seam.core.EntityManagerFactory.shutdown(EntityManagerFactory.java:81)
| 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.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:121)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1802)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1733)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:230)
| at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:175)
| at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:37)
| at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3866)
| at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4502)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4366)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
| at org.apache.catalina.core.StandardService.start(StandardService.java:448)
| at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
| 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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025698#4025698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025698
19Â years, 1Â month
[Installation, Configuration & Deployment] - JSF Cyrillic
by pesho4uka
Sorry for posting here i am not sure where to place this post. I suspect that there may be some JBOSS related configurational issue.
I am trying to start a simple JSF application that display cyrillic.
The application is exactly one <h:outputtext>. I am using eclipse and i needed to change the encoding to Windows-1251.
<%@page language="java" pageEncoding="WINDOWS-1251" contentType="text/html; charset=WINDOWS-1251" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="resources.application" var="bundle"/>
<f:view>
<h:outputText value="#{bundle['welcome.title']}" />
<h:outputText value="#{bundle['welcome.heading']}" />
<h:outputText value="#{bundle['welcome.message']}" />
</f:view>
In the browser the cyrrilic is broken. I set the browser encoding to CP1251. I tryed the same example with UTF8.
I use JBOSS 4.0.5
Thanks for the help. I really try to search the forum for the same problem but i couldnt find a solution.
Message was edited by:
PeshoChuka
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025695#4025695
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025695
19Â years, 1Â month