karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Emond (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2261) Startup issues without kar file
Date Mon, 08 Apr 2013 21:09:15 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625812#comment-13625812
] 

Brian Emond commented on KARAF-2261:
------------------------------------

Forgot to mention, first I forgot to put the version on those extra jars:
org.eclipse.persistence.antlr.jar - 3.2
org.eclipse.persistence.asm.jar - 3.3.1
org.eclipse.persistence.core.jar - 2.4.2
org.eclipse.persistence.jpa.jar - 2.4.2
org.eclipse.persistence.jpa.jpql.jar - 2.0.1

Also, the only modification I've made to the karaf environment is to add both war and webconsole
to the list of boot features in org.apache.karaf.featurs.cfg:

featuresBoot=config,ssh,management,kar,war,webconsole
                
> Startup issues without kar file
> -------------------------------
>
>                 Key: KARAF-2261
>                 URL: https://issues.apache.org/jira/browse/KARAF-2261
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core, karaf-kar, karaf-osgi
>    Affects Versions: 2.3.1
>         Environment: Windows 7
>            Reporter: Brian Emond
>              Labels: kar, startup
>         Attachments: telemetry.services.jms-broker.kar
>
>
> When my product/feature is bundled as a kar file, I can copy to deploy directory and
start karaf successfully, with all bundles started correctly. When I take the contents of
my kar file, and extract the jars into deploy and cfg files into etc, then karaf will fail
on startup, and give error messages such as:
> In main loop, we have serious trouble: java.lang.RuntimeException: java.lang.InterruptedException
> java.lang.RuntimeException: java.lang.InterruptedException
>         at org.apache.felix.fileinstall.internal.FileInstall.refresh(FileInstall.java:332)
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.refresh(DirectoryWatcher.java:680)
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:496)
>         at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)
> Caused by: java.lang.InterruptedException
>         at java.lang.Object.wait(Native Method)
>         at org.apache.felix.fileinstall.internal.FileInstall.refresh(FileInstall.java:330)
>         ... 3 more
> org.apache.karaf.features.core[org.apache.karaf.features.internal.FeaturesServiceImpl]
: Error installing boot features
> java.lang.NullPointerException
>         at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
>         at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
>         at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.getOptionalImports(FeaturesServiceImpl.java:774)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.findBundlesWithOptionalPackagesToRefresh(FeaturesServiceImpl.java:715)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.findBundlesToRefresh(FeaturesServiceImpl.java:667)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:428)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1150)
> org.apache.karaf.features.core[org.apache.karaf.features.internal.FeaturesServiceImpl]
: Error persisting FeaturesService state
> java.lang.IllegalStateException: Invalid BundleContext.
>         at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
>         at org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:491)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.saveState(FeaturesServiceImpl.java:1224)
>         at org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1155)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message