Wednesday, 15 January 2014

MalformedURLException with Jackrabbit OSGi Bundle on Glassfish 3.1.2 -



MalformedURLException with Jackrabbit OSGi Bundle on Glassfish 3.1.2 -

i'm trying utilize latest jackrabbit stable release (2.4.3) , deploy osgi bundle on glassfish v3.1.2.

first, tried jackrabbit-standalone bundle, had problem weird dependencies (com.ibm.jvm!?). noticed jackrabbit-bundle project , deployed required dependencies (commons logging, slf4j, jcr api, db2 driver).

although bundle seems start fine after installing it, when restart glassfish server, next exception thrown:

[#|2013-02-08t09:49:12.559+0100|severe|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_threadid=18;_threadname=thread-2;|critical error during deployment: com.sun.faces.config.configurationexception: java.util.concurrent.executionexception: java.net.malformedurlexception: unknown protocol: jndi @ com.sun.faces.config.configmanager.getconfigdocuments(configmanager.java:672) @ com.sun.faces.config.configmanager.initialize(configmanager.java:322) @ com.sun.faces.config.configurelistener.contextinitialized(configurelistener.java:225) @ org.apache.catalina.core.standardcontext.contextlistenerstart(standardcontext.java:4750) @ com.sun.enterprise.web.webmodule.contextlistenerstart(webmodule.java:550) @ org.apache.catalina.core.standardcontext.start(standardcontext.java:5366) @ com.sun.enterprise.web.webmodule.start(webmodule.java:498) @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:917) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:901) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:733) @ com.sun.enterprise.web.webcontainer.loadwebmodule(webcontainer.java:2018) @ com.sun.enterprise.web.webcontainer.loadwebmodule(webcontainer.java:1669) @ com.sun.enterprise.web.webapplication.start(webapplication.java:109) @ org.glassfish.internal.data.engineref.start(engineref.java:130) @ org.glassfish.internal.data.moduleinfo.start(moduleinfo.java:269) @ org.glassfish.internal.data.applicationinfo.start(applicationinfo.java:301) @ com.sun.enterprise.v3.server.applicationlifecycle.deploy(applicationlifecycle.java:461) @ com.sun.enterprise.v3.server.applicationloaderservice.processapplication(applicationloaderservice.java:375) @ com.sun.enterprise.v3.admin.adapter.installerthread.load(installerthread.java:210) @ com.sun.enterprise.v3.admin.adapter.installerthread.run(installerthread.java:108) caused by: java.util.concurrent.executionexception: java.net.malformedurlexception: unknown protocol: jndi @ java.util.concurrent.futuretask$sync.innerget(futuretask.java:222) @ java.util.concurrent.futuretask.get(futuretask.java:83) @ com.sun.faces.config.configmanager.getconfigdocuments(configmanager.java:670) ... 19 more caused by: java.net.malformedurlexception: unknown protocol: jndi @ java.net.url.<init>(url.java:601) @ java.net.url.<init>(url.java:464) @ java.net.url.<init>(url.java:413) @ java.net.uri.tourl(uri.java:1080) @ com.sun.faces.config.configmanager$parsetask.call(configmanager.java:920) @ com.sun.faces.config.configmanager$parsetask.call(configmanager.java:865) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ com.sun.faces.config.configmanager.getconfigdocuments(configmanager.java:656) ... 19 more |#]

searching error didn't me far. tried increment bundle startlevel 10, assuming started early, didn't help.

does have thought may problem? using jackrabbit pure osgi bundle yet (excluding apache sling stuff)?

the problem not specific jackrabbit. see http://java.net/jira/browse/glassfish-18880 error discussed @ length. has been fixed in glassfish trunk builds. if using glassfish 3.1.2.x, utilize work around mentioned in status whiteboard of bug. essentially, have disable admin console come automatically part of server startup running next command:

asadmin set configs.config.server-config.admin-service.property.adminconsolestartup=never

hope helps,

sahoo

glassfish osgi jackrabbit jcr malformedurlexception

No comments:

Post a Comment