[JBoss JIRA] Created: (JBOSGI-309) OSGi Runtime fails on cygwin
by Thomas Diesler (JIRA)
OSGi Runtime fails on cygwin
----------------------------
Key: JBOSGI-309
URL: https://jira.jboss.org/jira/browse/JBOSGI-309
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Productization
Reporter: Thomas Diesler
Fix For: JBossOSGi 1.0.x
$ bin/run.sh
=========================================================================
JBossOSGi Bootstrap Environment
OSGI_HOME: C:\jboss\jboss-osgi-1.0.0.Beta6-MC\runtime
JAVA: /cygdrive/c/jdk1.6.0_18/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -Dosgi.home=/cygdrive/c/jboss/jboss-osgi-1.0.
0.Beta6-MC/runtime -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dsun.rmi.dgc.
client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
=========================================================================
log4j:WARN No appenders could be found for logger (org.jboss.osgi.spi.internal.O
SGiBootstrapBean).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.IllegalStateException: Cannot find any boot
strap: [[jboss-osgi-bootstrap.xml, bootstrap/jboss-osgi-bootstrap.xml, META-INF/
jboss-osgi-bootstrap.xml, META-INF/jboss-osgi-default-bootstrap.xml]]
at org.jboss.osgi.framework.launch.OSGiFrameworkFactory.newFramework(OSG
iFrameworkFactory.java:115)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider.createFramew
ork(PropertiesBootstrapProvider.java:239)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider.initFramewor
kInstance(PropertiesBootstrapProvider.java:166)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider.configureInt
ernal(PropertiesBootstrapProvider.java:160)
at org.jboss.osgi.spi.framework.PropertiesBootstrapProvider.getFramework
(PropertiesBootstrapProvider.java:294)
at org.jboss.osgi.spi.internal.OSGiBootstrapBean.run(OSGiBootstrapBean.j
ava:78)
at org.jboss.osgi.spi.framework.OSGiBootstrap.main(OSGiBootstrap.java:57
)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] Created: (JBOSGI-419) Cannot start example webapp through console
by Thomas Diesler (JIRA)
Cannot start example webapp through console
-------------------------------------------
Key: JBOSGI-419
URL: https://jira.jboss.org/browse/JBOSGI-419
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jboss-osgi-webapp
Reporter: Thomas Diesler
Fix For: JBossOSGi 1.0.0 Beta10
Caused by: org.apache.felix.log.LogException: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129)
at org.ops4j.util.xml.ElementHelper.getRootElement(ElementHelper.java:68)
at org.ops4j.pax.web.extender.war.internal.parser.dom.DOMWebXmlParser.parse(DOMWebXmlParser.java:63)
at org.jboss.osgi.webapp.internal.WebXMLParserInterceptor.createWebAppMetadata(WebXMLParserInterceptor.java:82)
at org.jboss.osgi.webapp.internal.WebXMLParserInterceptor.invoke(WebXMLParserInterceptor.java:67)
at org.jboss.osgi.deployment.interceptor.AbstractLifecycleInterceptorService.handleStateChange(AbstractLifecycleInterceptorService.java:279)
at org.jboss.osgi.framework.plugin.internal.LifecycleInterceptorPluginImpl.handleStateChange(LifecycleInterceptorPluginImpl.java:106)
at org.jboss.osgi.framework.bundle.AbstractBundle.changeState(AbstractBundle.java:443)
at org.jboss.osgi.framework.bundle.HostBundle.startInternal(HostBundle.java:192)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] Created: (JBOSGI-382) Migrate shrinkwrap test bundles
by Thomas Diesler (JIRA)
Migrate shrinkwrap test bundles
--------------------------------
Key: JBOSGI-382
URL: https://jira.jboss.org/browse/JBOSGI-382
Project: JBoss OSGi
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Other
Reporter: Thomas Diesler
Fix For: JBossOSGi 1.0.x
Currently we use a rather verbose syntax like
// Bundle-SymbolicName: simple-fragA
// Export-Package: org.jboss.test.osgi.fragments.fragA
// Fragment-Host: simple-hostA
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "simple-hostA");
archive.addClasses(FragBeanA.class);
archive.addResource(getResourceFile("fragments/resource.txt"));
archive.setManifest(new Asset()
{
public InputStream openStream()
{
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleManifestVersion(2);
builder.addBundleSymbolicName(archive.getName());
builder.addExportPackages(FragBeanA.class);
builder.addFragmentHost("simple-hostA");
return builder.openStream();
}
});
Bundle fragA = installBundle(archive);
assertBundleState(Bundle.INSTALLED, fragA.getState());
This should be supported natively by Shrinkwrap
// Bundle-SymbolicName: simple-fragA
// Export-Package: org.jboss.test.osgi.fragments.fragA
// Fragment-Host: simple-hostA
final BundleArchive archive = ShrinkWrap.create(BundleArchive.class, "simple-hostA");
archive.addClasses(FragBeanA.class);
archive.addResource(getResourceFile("fragments/resource.txt"));
archive.addBundleManifestVersion(2);
archive.addBundleSymbolicName(archive.getName());
archive.addExportPackages(FragBeanA.class);
archive.addFragmentHost("simple-hostA");
Bundle fragA = installBundle(archive);
assertBundleState(Bundle.INSTALLED, fragA.getState());
or simmilar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] Created: (JBOSGI-444) Service event failure on Runtime shutdown
by Thomas Diesler (JIRA)
Service event failure on Runtime shutdown
-----------------------------------------
Key: JBOSGI-444
URL: https://issues.jboss.org/browse/JBOSGI-444
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
Assignee: Thomas Diesler
11:43:17,429 WARN [fail] MSC00004: Failure during stop of service jbosgi.internal.LifecycleInterceptor
java.lang.IllegalStateException: Bundle uninstalled: org.apache.felix.log:1.0.0
at org.jboss.osgi.framework.internal.AbstractBundleState.assertNotUninstalled(AbstractBundleState.java:574)
at org.jboss.osgi.framework.internal.AbstractBundleState.loadClass(AbstractBundleState.java:416)
at org.jboss.osgi.framework.internal.HostBundleState.loadClass(HostBundleState.java:148)
at org.jboss.osgi.framework.internal.ServiceState.isAssignableTo(ServiceState.java:335)
at org.jboss.osgi.framework.internal.FrameworkEventsPlugin.fireServiceEvent(FrameworkEventsPlugin.java:492)
at org.jboss.osgi.framework.internal.ServiceManagerPlugin.unregisterService(ServiceManagerPlugin.java:393)
at org.jboss.osgi.framework.internal.ServiceState.unregisterInternal(ServiceState.java:223)
at org.jboss.osgi.framework.internal.ServiceState.unregister(ServiceState.java:219)
at org.jboss.osgi.framework.internal.ServiceRegistrationWrapper.unregister(ServiceRegistrationWrapper.java:58)
at org.jboss.osgi.framework.internal.LifecycleInterceptorPlugin.stop(LifecycleInterceptorPlugin.java:105)
at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1779)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months