[Installation, Configuration & Deployment] - Re: JBoss 5, Java 6, and DocumentBuilderFactory ClassCastExc
by scarton
Hi hwa,
I tried this solution but didn't work for me, could you tell me exactly where I need to change in pom.xml?
It'll be very helpfull if you show me your code.
I get these exceptions when I try to access the index page.
| 10:03:00,407 WARN [ClassLoaderManager] Unexpected error during load of:org.w3c.dom.Document
| java.lang.OutOfMemoryError
| at java.util.zip.Inflater.init(Native Method)
| at java.util.zip.Inflater.<init>(Unknown Source)
| at java.util.zip.ZipFile.getInflater(Unknown Source)
| at java.util.zip.ZipFile.getInputStream(Unknown Source)
| at java.util.zip.ZipFile.getInputStream(Unknown Source)
| at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.openStream(ZipFileWrapper.java:214)
| at org.jboss.virtual.plugins.context.zip.ZipEntryContext.openStream(ZipEntryContext.java:1082)
| at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.openStream(ZipEntryHandler.java:153)
| at org.jboss.virtual.VirtualFile.openStream(VirtualFile.java:230)
| at org.jboss.classloading.spi.vfs.policy.VFSClassLoaderPolicy.getResourceAsStream(VFSClassLoaderPolicy.java:483)
| at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:534)
| at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
| at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
| at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
| at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
| at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
| at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at java.lang.ClassLoader.loadClassInternal(Unknown Source)
| at org.ajax4jsf.context.ResponseWriterContentHandler.<init>(ResponseWriterContentHandler.java:49)
| at org.ajax4jsf.context.ViewResources$HeadResponseWriter.<init>(ViewResources.java:259)
| at org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:444)
| at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
| at org.openfaces.ajax.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:62)
| at org.openfaces.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:412)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
| at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
| at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
| at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.goPoints.web.Filter.SecurityFilter.doFilter(SecurityFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
| at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
| at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
| at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
| at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Unknown Source)
| 10:03:00,547 ERROR [BaseXMLFilter] Exception in the filter chain
| javax.servlet.ServletException: Servlet execution threw an exception
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
| at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
| at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.goPoints.web.Filter.SecurityFilter.doFilter(SecurityFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
| at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
| at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
| at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
| at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/Document
| at org.ajax4jsf.context.ResponseWriterContentHandler.<init>(ResponseWriterContentHandler.java:49)
| at org.ajax4jsf.context.ViewResources$HeadResponseWriter.<init>(ViewResources.java:259)
| at org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:444)
| at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
| at org.openfaces.ajax.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:62)
| at org.openfaces.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:412)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
| at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| ... 29 more
| Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.w3c.dom.Document, msg=null
| at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:165)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)
| at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at java.lang.ClassLoader.loadClassInternal(Unknown Source)
| ... 40 more
| Caused by: java.lang.OutOfMemoryError
| at java.util.zip.Inflater.init(Native Method)
| at java.util.zip.Inflater.<init>(Unknown Source)
| at java.util.zip.ZipFile.getInflater(Unknown Source)
| at java.util.zip.ZipFile.getInputStream(Unknown Source)
| at java.util.zip.ZipFile.getInputStream(Unknown Source)
| at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.openStream(ZipFileWrapper.java:214)
| at org.jboss.virtual.plugins.context.zip.ZipEntryContext.openStream(ZipEntryContext.java:1082)
| at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.openStream(ZipEntryHandler.java:153)
| at org.jboss.virtual.VirtualFile.openStream(VirtualFile.java:230)
| at org.jboss.classloading.spi.vfs.policy.VFSClassLoaderPolicy.getResourceAsStream(VFSClassLoaderPolicy.java:483)
| at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:534)
| at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)
| at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
| at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
| at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
| at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)
| at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)
| ... 46 more
Can you help me?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263160#4263160
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263160
15 years, 2 months
[JBoss Cache Users] - Re: JBoss cache / WebLogic: problem with suspend/resume tran
by adam.laczynski
"bstansberry(a)jboss.com" wrote : JBoss Cache doesn't suspend/resume the transaction; it's Hibernate's integration with JBC that does this. If JBC sees an active transaction it will hold a lock on data in the cache until that tx commits. There are times when it's incorrect for those locks to be held for that long, so Hibernate suspends the tx before calling into JBC.
Suspend/resume is invoked from org.jboss.cache.interceptors.InvocationContextInterceptor#handleAll while optionOverride.isFailSilently() returns true. It comes from org.jboss.cache.invocation.CacheInvocationDelegate#putForExternalRead.
Maybe you meant that suspent/resume is invoked by Hibernate which invoked JBC methods with appropriate parameters.
As regards your suggestions:
1) I don't use query cache
2) Problem occures in read only transaction
3) Any evict on org.hibernate.SesssionFactory and org.hibernate.cache.CacheConcurrencyStrategy
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263152#4263152
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263152
15 years, 2 months