[JBoss Seam] - Themes: multiple CSS per theme?
by Faerine
I am converting a single-theme SEAM application to one that uses multiple themes (allowing the user to switch them), and I cannot find information regarding themes with multiple CSS.
Is it possible to include multiple CSS in a single theme.properties file (together with a single template). Then, if it is possible, how can different CSS from the same theme be selected on a Facelets page ( assumes a single CSS only, and does not give choice as to which CSS to be applied shen, or to what exactly).
An alternative solution might be to create separate themes, each with a single tempate and a single CSS, for all needs addressed by the current multiple CSS. Currently, there is a screen CSS, print CSS, etc. In this case, there would be a theme for template 1 with CSS 1, another theme for tempate 1 with CSS 2, etc., which seems redundant to me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006932#4006932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006932
19 years, 2 months
[JBoss Portal] - Re: problem when deploying many pages TRACE OF ERRORS
by PMN
Here is the rest of the traces
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.engine.Collections] Found collection with unloaded owner: [org.jboss.portal.core.impl.model.portal.PortalImpl.modes#4316]
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.engine.Collections] Found collection with unloaded owner: [org.jboss.portal.core.impl.model.portal.PortalImpl.windowStates#4316]
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 insertions, 1 updates, 0 deletions to 1137 objects
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 1 updates, 0 removals to 4062 collections
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] listing entities:
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=8164, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#8164, instanceRef=ConfigEvosFilterDetailTaskInstance, declaredProperties=[204, center], listener=null}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7815, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7815, securityConstraints=[], path=Test.Prj.Question.Detail.AuditWindow, name=AuditWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7810, children=[]}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7851, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7851, securityConstraints=[org.jboss.portal.core.impl.model.portal.ObjectNodeSecurityConstraint#1075], path=Test.Prj.Project.Search, name=Search, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7850, children=[org.jboss.portal.core.impl.model.portal.ObjectNode#7852, org.jboss.portal.core.impl.model.portal.ObjectNode#7853, org.jboss.portal.core.impl.model.portal.ObjectNode#7854, org.jboss.portal.core.impl.model.portal.ObjectNode#7855, org.jboss.portal.core.impl.model.portal.ObjectNode#7856, org.jboss.portal.core.impl.model.portal.ObjectNode#7857, org.jboss.portal.core.impl.model.portal.ObjectNode#7858]}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=8107, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#8107, securityConstraints=[], path=Test.Cfg.ConfigEvosActor.Search.BrowserWindow, name=BrowserWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#8102, children=[]}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=7790, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#7790, instanceRef=ProjectReferenceDetailAuditInstance, declaredProperties=[208, center], listener=null}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=8052, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#8052, securityConstraints=[], path=Test.Cfg.ConfigEvosEvaluation.HelpConfigEvosEvaluationWindow, name=HelpConfigEvosEvaluationWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#8051, children=[]}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7918, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7918, securityConstraints=[], path=Test.Prj.Avenant.Detail.EventWindow, name=EventWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7909, children=[]}
| 2007-01-26 17:48:09,934 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=8198, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#8198, securityConstraints=[], path=Test.Cfg.ConfigEvosTaskNode.Detail.WikiWindow, name=WikiWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#8187, children=[]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=8174, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#8174, securityConstraints=[], path=Test.Cfg.ConfigEvosFilter.Detail.ObjectWindow, name=ObjectWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#8162, children=[]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=8087, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#8087, instanceRef=ConfigEvosMenuDetailScoringInstance, declaredProperties=[206, center], listener=null}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7697, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7697, securityConstraints=[], path=Test.Prj.ProgressReport.Detail.BrowserWindow, name=BrowserWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7684, children=[]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=7720, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#7720, instanceRef=ProgramDetailWikiInstance, declaredProperties=[205, center], listener=null}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=8042, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#8042, instanceRef=ConfigEvosViewDetailEnclosureInstance, declaredProperties=[207, center], listener=null}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNodeSecurityConstraint{key=1057, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#7701, actions=[viewrecursive], role=__unchecked__}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=7919, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#7919, instanceRef=AvenantDetailNotificationInstance, declaredProperties=[209, center], listener=null}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=7874, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#7874, instanceRef=ProjectDetailNavigationInstance, declaredProperties=[0, emptyRenderer, navigation, emptyRenderer, emptyRenderer], listener=null}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7698, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7698, securityConstraints=[], path=Test.Prj.ProgressReport.Detail.NavigationWindow, name=NavigationWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7684, children=[]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7914, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7914, securityConstraints=[], path=Test.Prj.Avenant.Detail.AuditWindow, name=AuditWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7909, children=[]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7993, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7993, securityConstraints=[], path=Test.Cfg.ConfigEvosFunction.Detail.DiscussionWindow, name=DiscussionWindow, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7986, children=[]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.ObjectNode{key=7673, object=org.jboss.portal.core.impl.model.portal.PortalObjectImpl#7673, securityConstraints=[org.jboss.portal.core.impl.model.portal.ObjectNodeSecurityConstraint#1052], path=Test.Prj, name=Prj, parent=org.jboss.portal.core.impl.model.portal.ObjectNode#7672, children=[org.jboss.portal.core.impl.model.portal.ObjectNode#7724, org.jboss.portal.core.impl.model.portal.ObjectNode#7699, org.jboss.portal.core.impl.model.portal.ObjectNode#7674, org.jboss.portal.core.impl.model.portal.ObjectNode#7725, org.jboss.portal.core.impl.model.portal.ObjectNode#7750, org.jboss.portal.core.impl.model.portal.ObjectNode#7775, org.jboss.portal.core.impl.model.portal.ObjectNode#7825, org.jboss.portal.core.impl.model.portal.ObjectNode#7800, org.jboss.portal.core.impl.model.portal.ObjectNode#7850, org.jboss.portal.core.impl.model.portal.ObjectNode#7875, org.jboss.portal.core.impl.model.portal.ObjectNode#7900]}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.core.impl.model.portal.WindowImpl{key=8144, objectNode=org.jboss.portal.core.impl.model.portal.ObjectNode#8144, instanceRef=MenuDetailDiscussionInstance, declaredProperties=[200, center], listener=null}
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.pretty.Printer] more......
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.engine.ActionQueue] changes must be flushed to space: JBP_OBJECT_NODE
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.cache.EhCache] key: org.jboss.portal.core.impl.model.portal.ObjectNode.children#8202
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.cache.UpdateTimestampsCache] Pre-invalidating space [JBP_OBJECT_NODE]
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.cache.EhCache] key: org.jboss.portal.core.impl.model.portal.ObjectNode#8203
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.cache.EhCache] Element for org.jboss.portal.core.impl.model.portal.ObjectNode#8203 is null
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2007-01-26 17:48:09,950 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
| 2007-01-26 17:48:09,950 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
| 2007-01-26 17:48:09,950 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
| 2007-01-26 17:48:09,950 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
| 2007-01-26 17:48:09,965 DEBUG [org.hibernate.util.JDBCExceptionReporter] Cannot open connection [???]
| org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51])
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
| at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
| at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
| at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:94)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
| at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2227)
| at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2180)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2450)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
| at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
| at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:962)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1107)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:756)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.lookupNoCache(PersistentPortalObjectContainer.java:454)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.lookup(PersistentPortalObjectContainer.java:470)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.setConstraints(PersistentPortalObjectContainer.java:409)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.setBindings(PersistentPortalObjectContainer.java:348)
| at org.jboss.portal.core.metadata.PortalObjectMetaData.configure(PortalObjectMetaData.java:167)
| at org.jboss.portal.core.metadata.PageMetaData.create(PageMetaData.java:55)
| at org.jboss.portal.core.metadata.PageMetaData.create(PageMetaData.java:61)
| at org.jboss.portal.core.metadata.PageMetaData.create(PageMetaData.java:61)
| at org.jboss.portal.core.metadata.PortalMetaData.create(PortalMetaData.java:113)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment.org$jboss$portal$core$deployment$jboss$ObjectDeployment$doStart$aop(ObjectDeployment.java:220)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment.doStart(ObjectDeployment.java)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:90)
| at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:214)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:243)
| 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:324)
| 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 $Proxy115.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:297)
| 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:324)
| 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 $Proxy88.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
| at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:134)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
| at $Proxy117.handleNotification(Unknown Source)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.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:482)
| 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:324)
| 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 $Proxy93.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.GeneratedMethodAccessor90.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| 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 $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| 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.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| 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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 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:324)
| 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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:464)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51]
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:290)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:379)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| ... 163 more
| 2007-01-26 17:48:09,965 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 2007-01-26 17:48:09,981 ERROR [org.hibernate.util.JDBCExceptionReporter] Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51])
| 2007-01-26 17:48:09,996 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.GenericJDBCException: Cannot open connection
| at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
| at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)
| at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:94)
| at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
| at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2227)
| at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2180)
| at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2450)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
| at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
| at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:962)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1107)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:756)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.lookupNoCache(PersistentPortalObjectContainer.java:454)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.lookup(PersistentPortalObjectContainer.java:470)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.setConstraints(PersistentPortalObjectContainer.java:409)
| at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.setBindings(PersistentPortalObjectContainer.java:348)
| at org.jboss.portal.core.metadata.PortalObjectMetaData.configure(PortalObjectMetaData.java:167)
| at org.jboss.portal.core.metadata.PageMetaData.create(PageMetaData.java:55)
| at org.jboss.portal.core.metadata.PageMetaData.create(PageMetaData.java:61)
| at org.jboss.portal.core.metadata.PageMetaData.create(PageMetaData.java:61)
| at org.jboss.portal.core.metadata.PortalMetaData.create(PortalMetaData.java:113)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment.org$jboss$portal$core$deployment$jboss$ObjectDeployment$doStart$aop(ObjectDeployment.java:220)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment.doStart(ObjectDeployment.java)
| at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:90)
| at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:214)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:243)
| 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:324)
| 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 $Proxy115.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:297)
| 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:324)
| 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 $Proxy88.deploy(Unknown Source)
| at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
| at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:134)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
| at $Proxy117.handleNotification(Unknown Source)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.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:482)
| 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:324)
| 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 $Proxy93.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.GeneratedMethodAccessor90.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| 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 $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| 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.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| 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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 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:324)
| 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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:464)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51])
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
| at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
| at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
| ... 161 more
| Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=pmn/51, BranchQual=, localId=51]
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:290)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:379)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| ... 163 more
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.cache.EhCache] key: org.jboss.portal.core.impl.model.portal.ObjectNode.children#3127
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.cache.UpdateTimestampsCache] Invalidating space [JBP_OBJECT_NODE], timestamp: 4791624054706177
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.cache.EhCache] key: org.jboss.portal.core.impl.model.portal.PortalObjectImpl.declaredProperties#3127
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.cache.UpdateTimestampsCache] Invalidating space [JBP_PORTAL_OBJECT_PROPS], timestamp: 4791624054706179
| 2007-01-26 17:48:11,481 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006931#4006931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006931
19 years, 2 months
[JBoss jBPM] - Re: How to get the Business Hours:Min:Sec
by itsolvs
Ed,
Thanks for the suggestion. I did some basic implemenation. Though it is not 100% complete , good for some body to start with. At this point the requirement was dropped from the project. I will update on this once I get chance to work again.
Following is the code:
import java.util.Calendar;
import java.util.Date;
public class TestCalendar {
static int deltaHour = 0;
static int deltaMinute = 0;
static boolean flag= true;
static boolean isFirstTime= true;
public static void main(String args[]){
System.out.println("Current Time ..."+new Date());
//findBusinesstime();
Calendar calendar = BusinessCalendar.getCalendar();
calendar.set(Calendar.YEAR, 2007);
calendar.set(Calendar.MONTH, Calendar.JANUARY);
calendar.set(Calendar.DAY_OF_MONTH, 25);
calendar.set(Calendar.HOUR_OF_DAY, 13);
calendar.set(Calendar.MINUTE, 15);
calendar.set(Calendar.SECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
Date startDay = calendar.getTime();
System.out.println(startDay);
Calendar calendar2 = BusinessCalendar.getCalendar();
calendar2.set(Calendar.YEAR, 2007);
calendar2.set(Calendar.MONTH, Calendar.JANUARY);
calendar2.set(Calendar.DAY_OF_MONTH, 27);
calendar2.set(Calendar.HOUR_OF_DAY, 13);
calendar2.set(Calendar.MINUTE, 15);
calendar2.set(Calendar.SECOND, 0);
calendar2.set(Calendar.MILLISECOND, 0);
Date endDay = calendar2.getTime();
System.out.println(endDay);
addHours("D:/workspace/SLA");
}
public static String getBusinessHours(BusinessCalendar businessCalendar,Date startDate, Date endDate){
DayPart dayPart = null;
Calendar calendar = BusinessCalendar.getCalendar();
calendar.setTime(startDate);
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
System.out.println("startDate------->"+startDate);
System.out.println("endDate------->"+endDate);
System.out.println("deltaHour------->"+deltaHour);
System.out.println("deltaMinute------->"+deltaMinute);
if(compareDates(startDate,endDate)== 1){ // First before day
if (!businessCalendar.isHoliday(startDate)) {
Day day = businessCalendar.findDay(startDate);
for (int i=0; ((i < day.dayParts.length)
&& (dayPart==null)); i++) {
DayPart dayPart1 = day.dayParts;
DayPart dayPart2 = day.dayParts[++i];
int fromHour1 = dayPart1.fromHour;
int fromMinute1 = dayPart1.fromMinute;
int toHour1 = dayPart1.toHour;
int toMinute1 = dayPart1.toMinute;
int fromHour2 = dayPart2.fromHour;
int fromMinute2 = dayPart2.fromMinute;
int toHour2 = dayPart2.toHour;
int toMinute2 = dayPart2.toMinute;
System.out.println("fromHour1------->"+dayPart1.fromHour);
System.out.println("fromMinute1------->"+dayPart1.fromMinute);
System.out.println("toHour1------->"+dayPart1.toHour);
System.out.println("toMinute1------->"+dayPart1.toMinute);
System.out.println("fromHour2------->"+dayPart2.fromHour);
System.out.println("fromMinute2------->"+dayPart2.fromMinute);
System.out.println("toHour2------->"+dayPart2.toHour);
System.out.println("toMinute2------->"+dayPart2.toMinute);
if(dayPart1.includes(startDate)){
System.out.println("Included in DayPart1 ...");
if(hour >= fromHour1 && minute !=0){
deltaHour = deltaHour+((toHour1-hour)-1);
deltaMinute = deltaMinute+((60-minute)+toMinute1);
if(fromMinute2 !=0 || toMinute2!=0){
deltaHour =deltaHour+ (toHour2-fromHour2)-1;
deltaMinute =deltaMinute+ (60-(fromMinute2-toMinute2));
}else{
deltaHour =deltaHour+ (fromHour2-toHour2)-1;
}
}
}
System.out.println("------"+minute+":"+toMinute1+":"+hour+":"+toHour1);
if(dayPart2.includes(startDate) ||((minute >= toMinute1 && minute <= fromMinute2) && hour == toHour1) ){
System.out.println("Included in DayPart2 ..."+minute+":"+toMinute2+":"+deltaMinute);
if(minute!=0){
deltaHour =deltaHour+(toHour2-hour-1);
deltaMinute =deltaMinute+ ((60-minute)+toMinute2);
}else if(minute ==0){
deltaHour =deltaHour+(toHour2-hour);
deltaMinute =deltaMinute+toMinute2;
}
}
if(deltaMinute>60){
int j = deltaMinute/60;
deltaHour = deltaHour+j;
deltaMinute = deltaMinute-(j*60);
}
break;
}
}else{
System.out.println("Holiday1 ------->");
}
}else if(flag && compareDates(startDate,endDate)== 0){ //For last SameDay case
System.out.println("SameDay case ------->");
if (!businessCalendar.isHoliday(startDate)) {
Day day = businessCalendar.findDay(startDate);
for (int i=0; ((i < day.dayParts.length)
&& (dayPart==null)); i++) {
DayPart dayPart1 = day.dayParts;
DayPart dayPart2 = day.dayParts[++i];
int fromHour1 = dayPart1.fromHour;
int fromMinute1 = dayPart1.fromMinute;
int toHour1 = dayPart1.toHour;
int toMinute1 = dayPart1.toMinute;
int fromHour2 = dayPart2.fromHour;
int fromMinute2 = dayPart2.fromMinute;
int toHour2 = dayPart2.toHour;
int toMinute2 = dayPart2.toMinute;
if(dayPart1.includes(startDate)){
System.out.println("Included in DayPart1 ...");
if(hour >= fromHour1){
deltaHour = deltaHour+((hour-fromHour1)-1);
deltaMinute = deltaMinute+((60-fromMinute1)+minute);
}else {//non business hour
deltaHour = deltaHour+((fromHour1-hour)-1);
deltaMinute = deltaMinute+((60-minute)+fromMinute1);
}
}
System.out.println("------"+minute+":"+toMinute1+":"+hour+":"+toHour1);
if(dayPart2.includes(startDate) ||((minute >= toMinute1 && minute <= fromMinute2) && hour == toHour1) ){
deltaHour =deltaHour+(hour-fromHour1-1);
deltaMinute =deltaMinute+ ((60-fromMinute2)+minute);
}
if(deltaMinute>60){
int j = deltaMinute/60;
deltaHour = deltaHour+j;
deltaMinute = deltaMinute-(j*60);
}
break;
}
}else{
System.out.println("Holiday ------->");
}
flag = false;
}else if(isFirstTime && compareDates(startDate,endDate)== 0){ // First time same day case ..
Day day = businessCalendar.findDay(startDate);
for (int i=0; ((i < day.dayParts.length)
&& (dayPart==null)); i++) {
DayPart dayPart1 = day.dayParts;
DayPart dayPart2 = day.dayParts[++i];
int fromHour1 = dayPart1.fromHour;
int fromMinute1 = dayPart1.fromMinute;
int toHour1 = dayPart1.toHour;
int toMinute1 = dayPart1.toMinute;
int fromHour2 = dayPart2.fromHour;
int fromMinute2 = dayPart2.fromMinute;
int toHour2 = dayPart2.toHour;
int toMinute2 = dayPart2.toMinute;
if(dayPart1.includes(endDate)){
System.out.println("endDate Included in DayPart1 ...");
if(hour >= fromHour1){
deltaHour = deltaHour+((hour-fromHour1)-1);
deltaMinute = deltaMinute+((60-fromMinute1)+minute);
}else {//non business hour
deltaHour = deltaHour+((fromHour1-hour)-1);
deltaMinute = deltaMinute+((60-minute)+fromMinute1);
}
}
if(dayPart2.includes(startDate) ||((minute >= toMinute1 && minute <= fromMinute2) && hour == toHour1) ){
deltaHour =deltaHour+(hour-fromHour1-1);
deltaMinute =deltaMinute+ ((60-fromMinute2)+minute);
}
if(deltaMinute>60){
int j = deltaMinute/60;
deltaHour = deltaHour+j;
deltaMinute = deltaMinute-(j*60);
}
break;
}
}
isFirstTime = false;
Date nextDay = businessCalendar.findStartOfNextDay(startDate);
int sameday = compareDates(nextDay,endDate);
if(flag && sameday !=0){
if(sameday == 2){ //After
System.out.println("After------->");
flag = false;
}else if(sameday == 1){//Subsequent before days ..
flag = true;
System.out.println("before------->");
if (!businessCalendar.isHoliday(nextDay)){
Day day = businessCalendar.findDay(nextDay);
for (int i=0; ((i < day.dayParts.length)
&& (dayPart==null)); i++) {
DayPart dayPart1 = day.dayParts;
DayPart dayPart2 = day.dayParts[++i];
int fromHour1 = dayPart1.fromHour;
int fromMinute1 = dayPart1.fromMinute;
int toHour1 = dayPart1.toHour;
int toMinute1 = dayPart1.toMinute;
int fromHour2 = dayPart2.fromHour;
int fromMinute2 = dayPart2.fromMinute;
int toHour2 = dayPart2.toHour;
int toMinute2 = dayPart2.toMinute;
if(toMinute1!=0 || fromMinute1 !=0 ||fromMinute2!=0 ||toMinute2 !=0){
deltaHour = deltaHour+(toHour1-fromHour1)+(toHour2-fromHour2)-1;
int dayminutes = fromMinute1+toMinute1+fromMinute2+toMinute2;
if(dayminutes > 60) dayminutes = dayminutes-60;
else dayminutes = 60 - dayminutes;
deltaMinute = deltaMinute+dayminutes;
if(deltaMinute>60){
int j = deltaMinute/60;
deltaHour = deltaHour+j;
deltaMinute = deltaMinute-(j*60);
}
}else{
deltaHour = deltaHour+(toHour1-fromHour1)+(toHour2-fromHour2);
}
}
}else{
System.out.println("Holiday ------->");
}
}
}
if(flag){
System.out.println("same day------->"+flag);
//flag = false;
isFirstTime = false;
getBusinessHours(businessCalendar,nextDay,endDate);
}
//}
System.out.println("deltaHour------->"+deltaHour);
System.out.println("deltaMinute------->"+deltaMinute);
return "";
}
public static int compareDates(Date d1, Date d2){
if(d1.before(d2)){
return 1;
}else if(d1.after(d2)){
return 2;
}else{
return 0;
}
}
//public static Date addHours(String pf, Date d,Date d1, String s){
public static void addHours(String pf){
String propetiesFile = pf+"/"+"calendar.properties";
BusinessCalendar businessCalendar = new BusinessCalendar(propetiesFile);
Date startDate = new Date();
Date endate = businessCalendar.add(startDate,new Duration("2 hours"));
String businessHours = getBusinessHours(businessCalendar,startDate,endate);
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006930#4006930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006930
19 years, 2 months
[JBoss Eclipse IDE (users)] - Re: how to add a j2ee project to server for debugging when u
by rob.stryker@jboss.com
What kind of "J2EE Project" is this? Is it a webtools project? (Dynamic web project, ejb project, utility project, client project, ear project) or is it one of the jboss-declared projects?
There's no way to add the old jboss projects to the server as of now, except by packaging them, executing the packaging config, and manually deploying to the server.
For debugging, just start the server in debug mode, package the project, right click on the resultant jar / war / ear and run on server.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006924#4006924
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006924
19 years, 2 months