[JBoss jBPM] - Re: Missing (config) files starters kit?
by Johan.Parent
In the meanwhile I had a chance to try the code too. It works but does not solve the problem :(
So I resumed my quest and found the real source of the many SAXParserFactory instantiations: JbpmContext.getSession (see below).
Hmmm, I see a solution in caching the configuration in the DbPersistenceServiceFactory class. Since it can't be the idea that you can change the resource.hibernate.properties file or resource.hibernate.cfg.xml file at runtime caching the configuration at this point seems reasonable to me. This would be a simple patch to the getConfiguration method.
Gurus, any objection to this?
Regards,
Johan
newInstance():87, SAXParserFactory.java
createXMLReader():46, JAXPHelper.java
createXMLReaderViaJAXP():125, SAXHelper.java
createXMLReader():75, SAXHelper.java
createXMLReader():894, SAXReader.java
getXMLReader():714, SAXReader.java
read():435, SAXReader.java
doConfigure():1343, Configuration.java
configure():1286, Configuration.java
createConfiguration():84, HibernateHelper.java
getConfiguration():60, DbPersistenceServiceFactory.java
getSessionFactory():83, DbPersistenceServiceFactory.java
getSessionFactory():76, DbPersistenceService.java
getSession():80, DbPersistenceService.java
getSession():464, JbpmContext.java
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024610#4024610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024610
17Â years, 11Â months
[JBoss Seam] - optimistic locking - exception handling
by pista666
hi folks,
i'm trying to use optimistic locking with seam, everything works fine
except very last thing, when i'm trying to save the record (that was changed by other user) i'll get page that user can't really understand (server internal error).
In jboss log i see exception(explainig problem), but at the end it comes to java.lang.NoClassDefFoundError, see log:
11:30:50,734 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [c
om.arnie.panta.PrProdukt#21]
at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1699)
....
11:30:50,748 ERROR [ExceptionFilter] uncaught exception
javax.servlet.ServletException: Error calling action method of component with id prProdukt:update
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
...
11:30:50,748 ERROR [ExceptionFilter] exception root cause
javax.faces.FacesException: Error calling action method of component with id prProdukt:update
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
...
Caused by: javax.faces.el.EvaluationException: /PrProduktEdit.xhtml @110,61 action="#{prProduktHome.update}": javax.persistence.Optimis
ticLockException
at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
....
Caused by: javax.persistence.OptimisticLockException
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:604)
...
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was inc
orrect): [com.arnie.panta.PrProdukt#21]
at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1699)
....
11:30:50,753 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.NoClassDefFoundError: com/sun/facelets/el/LegacyELContext
at org.jboss.seam.web.ExceptionFilter.createFacesContext(ExceptionFilter.java:122)
...
please give me advice how to handle this exception and show up friendly message to user on formular page.
thanks
pista
page i get:
---------------
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NoClassDefFoundError: com/sun/facelets/el/LegacyELContext
org.jboss.seam.web.ExceptionFilter.createFacesContext(ExceptionFilter.java:122)
org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:86)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024602#4024602
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024602
17Â years, 11Â months
[JBoss Portal] - Deployment exception with HelloWorldIPCPortlet.SAR
by rabbuhl
I am using JBoss Portal 2.4.1-SP1. If I hot deploy HelloWorldIPCPortlet.SAR it works correctly without any errors. However, when I stop and then start JBoss Portal I the following error appears in the log file. If I stop JBoss Portal, remove HelloWorldIPCPortlet.SAR, and then start JBoss Portal again the error disappears. Any help would be greatly appreciated.
Richard
--- MBeans waiting for other MBeans ---
ObjectName: portal:container=Instance
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
I Depend On:
portal:service=Hibernate,type=Instance
portal:service=PortletInvoker,type=Instance
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
Depends On Me:
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=PortletApp
ObjectName: portal:container=PortalObject
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
I Depend On:
portal:service=Hibernate,type=PortalObject
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
portal:service=ListenerRegistry
Depends On Me:
portal:commandFactory=DefaultPortal
portal:commandFactory=PortalObject
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=Object
ObjectName: portal:commandFactory=DefaultPortal
State: CONFIGURED
I Depend On:
portal:commandFactory=Delegating
portal:container=PortalObject
Depends On Me:
portal:controller=Request
ObjectName: portal:commandFactory=PortalObject
State: CONFIGURED
I Depend On:
portal:container=PortalObject
Depends On Me:
portal:commandFactory=Delegate,prefix=portal
ObjectName: portal:commandFactory=Delegate,prefix=portal
State: CONFIGURED
I Depend On:
portal:commandFactory=Delegating
portal:commandFactory=PortalObject
ObjectName: portal:controller=Request
State: CONFIGURED
I Depend On:
portal:service=PageService
portal:commandFactory=DefaultPortal
portal:urlFactory=Delegating
portal:service=InterceptorStack,type=Command
portal:container=PortalObject
portal:container=Instance
ObjectName: portal:deployer=PortalWebApp
State: CONFIGURED
I Depend On:
jboss.system:service=MainDeployer
portal:container=PortalObject
portal:container=Instance
portal:service=Server
Depends On Me:
portal:deploymentFactory=Object
portal:deploymentFactory=PortletApp
portal:deploymentFactory=Layout
portal:deploymentFactory=LayoutFeatures
portal:deploymentFactory=Theme
portal:deployer=Adapter
ObjectName: portal:deploymentFactory=Object
State: CONFIGURED
I Depend On:
portal:deployer=PortalWebApp
portal:container=PortalObject
ObjectName: portal:deploymentFactory=PortletApp
State: CONFIGURED
I Depend On:
portal:id=local,service=PortletInvokerRegistration
portal:deployer=PortalWebApp
portal:service=WebAppRegistry
portal:service=ServerConfig
portal:service=PortletSecurityService
portal:container=Instance
ObjectName: portal:deploymentFactory=Layout
State: CONFIGURED
I Depend On:
portal:deployer=PortalWebApp
portal:service=LayoutService
ObjectName: portal:deploymentFactory=LayoutFeatures
State: CONFIGURED
I Depend On:
portal:deployer=PortalWebApp
portal:service=LayoutService
ObjectName: portal:deploymentFactory=Theme
State: CONFIGURED
I Depend On:
portal:deployer=PortalWebApp
portal:service=ThemeService
ObjectName: portal:deployer=Adapter
State: CONFIGURED
I Depend On:
jboss.web:service=WebServer
portal:deployer=PortalWebApp
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: portal:container=Instance
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
I Depend On:
portal:service=Hibernate,type=Instance
portal:service=PortletInvoker,type=Instance
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
Depends On Me:
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=PortletApp
ObjectName: portal:container=PortalObject
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: CacheNaturalId
I Depend On:
portal:service=Hibernate,type=PortalObject
portal:service=PortalAuthorizationManagerFactory
portal:service=AuthorizationDomainRegistry
portal:service=ListenerRegistry
Depends On Me:
portal:commandFactory=DefaultPortal
portal:commandFactory=PortalObject
portal:controller=Request
portal:deployer=PortalWebApp
portal:deploymentFactory=Object
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024601#4024601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024601
17Â years, 11Â months