[JBoss JIRA] Resolved: (JBPORTAL-844) Ehcache configuration issue on redeploy of portal
by Julien Viet (JIRA)
[ http://jira.jboss.com/jira/browse/JBPORTAL-844?page=all ]
Julien Viet resolved JBPORTAL-844.
----------------------------------
Fix Version/s: 2.8 Final
2.6 Final
Resolution: Done
Was solved somehow by having explicit configuration.
> Ehcache configuration issue on redeploy of portal
> -------------------------------------------------
>
> Key: JBPORTAL-844
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-844
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Portal Core
> Reporter: Julien Viet
> Fix For: 2.8 Final, 2.6 Final
>
>
> Ehcache is not provided by default in JBoss AS.
> When it is used by portal the following occurs :
> 1/ ehcache is loaded by hibernate which is loaded by the lib dir of the jboss config
> 2/ ehcache loads the default configuration /ehcache-failsafe.xml from its classloader using : getClass().loadResource("/ehcache-failsafe.xml");
> on a redeploy the same occurs but as ehcache is now linked by the hibernate classes which are not redeployed the failsafe config file cannot be loaded again as the original jar is gone.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Resolved: (JBPORTAL-781) problem with portlet hot deployment
by Julien Viet (JIRA)
[ http://jira.jboss.com/jira/browse/JBPORTAL-781?page=all ]
Julien Viet resolved JBPORTAL-781.
----------------------------------
Resolution: Out of Date
> problem with portlet hot deployment
> -----------------------------------
>
> Key: JBPORTAL-781
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-781
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Portal Portlet
> Affects Versions: 2.4 Final
> Reporter: Rali Genova
> Attachments: CalcPortlet.zip, serverlog.txt
>
>
> there is a database exception when trying to hot deploy a portlet war file, here is the stack trace:
> 2006-04-04 12:10:27,990 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/
> C:/jboss-4.0.4RC1/server/default/tmp/deploy/tmp27876calcportlet-exp.war/WEB-INF/
> org.jboss.deployment.DeploymentException: Could not execute JDBC batch update; - nested throwable: (
> org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update)
> at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:307)
> at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDepl
> oymentInfo.java:208)
> at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:244)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> 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.ja
> va:142)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
> at $Proxy101.deploy(Unknown Source)
> at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:298)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> 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:260)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
> at $Proxy100.deploy(Unknown Source)
> at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
> at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:1
> 45)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
> at $Proxy102.handleNotification(Unknown Source)
> at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadc
> asterSupport.java:127)
> at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcas
> terSupport.java:108)
> at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
> at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
> at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:485)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> 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.ja
> va:142)
> at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
> at $Proxy33.start(Unknown Source)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
> at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> 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.ja
> va:142)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
> at $Proxy8.deploy(Unknown Source)
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentSc
> anner.java:207)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScan
> ner.java:218)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScann
> er.java:197)
> Caused by: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
> at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
> at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
> at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
> at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
> at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventLis
> tener.java:296)
> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
> at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
> at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer$1.destroyChild(Persisten
> tPortalObjectContainer.java:153)
> at org.jboss.portal.core.impl.model.portal.ObjectNode.removeChild(ObjectNode.java:137)
> at org.jboss.portal.core.impl.model.portal.ObjectNode.removeChild(ObjectNode.java:133)
> at org.jboss.portal.core.impl.model.portal.PortalObjectImpl.destroyChild(PortalObjectImpl.java:127)
> at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:251)
> ... 79 more
> Caused by: java.sql.BatchUpdateException: failed batch
> at org.hsqldb.jdbc.jdbcStatement.executeBatch(Unknown Source)
> at org.hsqldb.jdbc.jdbcPreparedStatement.executeBatch(Unknown Source)
> at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:517)
> at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
> at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
> ... 89 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Resolved: (JBPORTAL-727) ClassCastException from JBoss AS Tomcat ApplicationDispatcher when forwarding with portal provided DispatchedHttpServletRequest
by Julien Viet (JIRA)
[ http://jira.jboss.com/jira/browse/JBPORTAL-727?page=all ]
Julien Viet resolved JBPORTAL-727.
----------------------------------
Resolution: Done
We rewrote the request dispatching in 2.6 and we use a more compliant way to do it.
> ClassCastException from JBoss AS Tomcat ApplicationDispatcher when forwarding with portal provided DispatchedHttpServletRequest
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBPORTAL-727
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-727
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Portal Core
> Affects Versions: 2.2 Final
> Environment: JBoss Portal 4.0.3SP1
> MyFaces
> Reporter: Tuomas Kiviaho
>
> The portal.xml for reproducing the problem
> <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
> <init-param>
> <name>default-view</name>
> <value>/myservlet</value>
> </init-param>
> MyServlet service method
> req.getRequestDispatcher("/myjsp.jsp").forward(req, resp);
> The request seen below that is given to the servlet causes following exception.
> java.lang.ClassCastException: org.jboss.portal.portlet.impl.DispatchedHttpServletRequest
> at org.apache.catalina.core.ApplicationDispatcher.unwrapRequest(ApplicationDispatcher.java:814)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:401)
> The problem most propably relies either in Tomcat ApplicationDispatcher forwarding mechanism since inclusion works ok, but both request and servletcontext based dispachings using forward fail.
> Couple of notes from Tomcat ApplicationDispatcher
> - doubled request unwrapping when forwarding maybe due to tomcat bug fix number 30949
> - wrapped request not discarded after unwrapping
> These may be the real causes but this class mentions to function properly as long as request extends the standard wrapper. This is not the case with DispatchedHttpServletRequest.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months