Re: [jboss-user] [JBoss Microcontainer Development] - On demand resolution
by Adrian Brock
Adrian Brock [http://community.jboss.org/people/adrian%40jboss.org] replied to the discussion
"On demand resolution"
To view the discussion, visit: http://community.jboss.org/message/534874#534874
--------------------------------------------------------------
This patch resolves the issue. It was only resetting the state if DeployerClient.change() threw a DeploymentException,
while in this case, there's no exception it is just incomplete.
core/src/main/java/org/jboss/osgi/framework/packageadmin
$ svn diff
Index: PackageAdminImpl.java
===================================================================
--- PackageAdminImpl.java (revision 103305)
+++ PackageAdminImpl.java (working copy)
@@ -347,6 +347,18 @@
{
log.error("Error resolving bundles: " + resolvableBundles, ex);
allResolved = false;
+
+ // Reset the required state for bundles that didn't get resolved
+ for (OSGiBundleState bundleState : resolvableBundles)
+ {
+ if (bundleState.getState() == Bundle.INSTALLED)
+ {
+ DeploymentUnit unit = bundleState.getDeploymentUnit();
+ unit.setRequiredStage(DeploymentStages.DESCRIBE);
+ ControllerContext ctx = unit.getAttachment(ControllerContext.class);
+ ctx.setRequiredState(ControllerState.newState(DeploymentStages.DESCRIBE.getName()));
+ }
+ }
}
return allResolved;
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/534874#534874]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [jBPM] - Report Templates fails in JBPM Console
by John Sawyer
John Sawyer [http://community.jboss.org/people/mcsawyer] replied to the discussion
"Report Templates fails in JBPM Console"
To view the discussion, visit: http://community.jboss.org/message/534860#534860
--------------------------------------------------------------
JBPM: 4.3
CONSOLE: 1.3
TOMCAT: 6.0.24
BD: HSQL
I put here CATALINA_HOME/birt/ReportEngine/plugins/org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212/drivers hsqldb.jar and now 2 reports are fine.
Now fails: overall_activity_old.rptdesign and process_summary.rptdesign because these files are using MySQL
If i change in these files (CATALINA_HOME/birt) using hsql information... the reports fails again.
==============================================================================
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="HsqlDB on JBoss" id="248">
<property name="odaDriverClass">org.hsqldb.jdbcDriver</property>
<property name="odaURL">jdbc:hsqldb:hsql://localhost:1701</property>
<property name="odaUser">sa</property>
<property name="odaJndiName">java:/JbpmDS</property>
</oda-data-source>
....
<property name="dataSource">HsqlDB on JBoss</property>
==============================================================================
I suppose I need do something else, but i don't know.
Thanks for you patience!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/534860#534860]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years