com.sun.faces.config.ConfigurationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We are installing Glassfish 3 in Red Hat Enterprise Linux 6. All seems ok, but after deploy jdbc connection pools (over 500) we realized that the Administration Console doesn't run and got the following error in server.log (we don't have deployed any application yet, only jdbc connection pools): [#|2012-10-23T04:15:42.163-0400|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=43;_ThreadName=Thread-2;|Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context ''|#] [#|2012-10-23T04:15:43.239-0400|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=43;_ThreadName=Thread-2;|Critical error during deployment: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:672) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:322) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366) at com.sun.enterprise.web.WebModule.start(WebModule.java:498) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375) at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210) at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108) Caused by: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:670) ... 19 more Caused by: java.net.MalformedURLException: Unknown protocol: jndi at java.net.URL.<init>(URL.java:617) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) at java.net.URI.toURL(URI.java:1096) at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:920) at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:865) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656) ... 19 more Caused by: java.lang.IllegalStateException: Unknown protocol: jndi at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:372) at java.net.URL.<init>(URL.java:612) ... 27 more |#] [#|2012-10-23T04:15:43.254-0400|SEVERE|glassfish3.1.2|org.apache.catalina.core.StandardContext|_ThreadID=43;_ThreadName=Thread-2;|PWC1306: Startup of context failed due to previous errors|#] The same error occurs in RHEL 5 and Solaris 10. You can reproduce the error following these steps: 1.- Install RHEL 6.3 (64 bits). Basic Server Installation 2.- Install java-1.6.0-sun-devel and define JAVA_HOME in /etc/profile. Fails with 64 bits and 32 bits. Also fails with java-1.7.0-oracle-devel. 3.- Disable SELinux and iptables 4.- Create a test account and install Glassfish 3.1.2.2 (build 5) with this user (typical installation). The installer we've use is glassfish-3.1.2.2-unix-ml.sh 5.- asadmin start-domain <- We can access Administration Console 6.- asadmin enable-secure-admin --port 4848; asadmin stopt-domain; asadmin start-domain <- We can acces Administration Console 7.- Create jdbc pool with this script: for i in `seq -f "%03g" 1 500` do echo $i asadmin create-jdbc-connection-pool --datasourceclassname oracle.jdbc.pool.OracleConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --property user=user$i:password=password_$i:url=jdbc\\:oracle\\:thin\\:@//desarrollo.test\\:1521/test01 pool$i asadmin create-jdbc-resource --target domain --connectionpoolid pool$i jdbc/pool$i asadmin create-resource-ref --target server jdbc/pool$i done 8.- Access to Administration Console -> OK 9.- asadmin stop-domain; asadmin start-domain -> We can't access Administration Console and get the error. If you don't try to access Administration Console in step 5 and 8, after step 9 you still can access Administration Console. asadmin stop-domain; asadmin start-domain again, try to access Administration Console and then the error appears. Althought the Administration Console doesn't run the asadmin utility runs perfect. Does anybody have this issue? How can I fix this?
    via by tesgoran,
  • We are installing Glassfish 3 in Red Hat Enterprise Linux 6. All seems ok, but after deploy jdbc connection pools (over 500) we realized that the Administration Console doesn't run and got the following error in server.log (we don't have deployed any application yet, only jdbc connection pools): [#|2012-10-23T04:15:42.163-0400|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=43;_ThreadName=Thread-2;|Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context ''|#] [#|2012-10-23T04:15:43.239-0400|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=43;_ThreadName=Thread-2;|Critical error during deployment: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:672) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:322) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366) at com.sun.enterprise.web.WebModule.start(WebModule.java:498) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375) at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210) at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108) Caused by: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:670) ... 19 more Caused by: java.net.MalformedURLException: Unknown protocol: jndi at java.net.URL.<init>(URL.java:617) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) at java.net.URI.toURL(URI.java:1096) at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:920) at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:865) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656) ... 19 more Caused by: java.lang.IllegalStateException: Unknown protocol: jndi at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:372) at java.net.URL.<init>(URL.java:612) ... 27 more |#] [#|2012-10-23T04:15:43.254-0400|SEVERE|glassfish3.1.2|org.apache.catalina.core.StandardContext|_ThreadID=43;_ThreadName=Thread-2;|PWC1306: Startup of context failed due to previous errors|#] The same error occurs in RHEL 5 and Solaris 10. You can reproduce the error following these steps: 1.- Install RHEL 6.3 (64 bits). Basic Server Installation 2.- Install java-1.6.0-sun-devel and define JAVA_HOME in /etc/profile. Fails with 64 bits and 32 bits. Also fails with java-1.7.0-oracle-devel. 3.- Disable SELinux and iptables 4.- Create a test account and install Glassfish 3.1.2.2 (build 5) with this user (typical installation). The installer we've use is glassfish-3.1.2.2-unix-ml.sh 5.- asadmin start-domain <- We can access Administration Console 6.- asadmin enable-secure-admin --port 4848; asadmin stopt-domain; asadmin start-domain <- We can acces Administration Console 7.- Create jdbc pool with this script: for i in `seq -f "%03g" 1 500` do echo $i asadmin create-jdbc-connection-pool --datasourceclassname oracle.jdbc.pool.OracleConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --property user=user$i:password=password_$i:url=jdbc\\:oracle\\:thin\\:@//desarrollo.test\\:1521/test01 pool$i asadmin create-jdbc-resource --target domain --connectionpoolid pool$i jdbc/pool$i asadmin create-resource-ref --target server jdbc/pool$i done 8.- Access to Administration Console -> OK 9.- asadmin stop-domain; asadmin start-domain -> We can't access Administration Console and get the error. If you don't try to access Administration Console in step 5 and 8, after step 9 you still can access Administration Console. asadmin stop-domain; asadmin start-domain again, try to access Administration Console and then the error appears. Althought the Administration Console doesn't run the asadmin utility runs perfect. Does anybody have this issue? How can I fix this?
    via by tesgoran,
  • If you set the http_proxy environment variable in Windows (Control Panel > Advanced > Environment Variables) to something _not_ starting with http, eg: proxy.domain.com:port you get the following exception: SEVERE: badproxy SEVERE: java.net.MalformedURLException: Unknown protocol: proxy.domain.com at java.net.URL.<init>(URL.java:617) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) at com.sun.pkg.client.SystemInfo.loadProxyInfo(SystemInfo.java:201) at com.sun.pkg.client.SystemInfo.getProxySelector(SystemInfo.java:168) at com.sun.pkg.client.Image.<init>(Image.java:1007) at com.sun.pkg.client.Image.<init>(Image.java:1026) at com.sun.enterprise.registration.glassfish.RegistrationUtil.getUpdateCenterImage(RegistrationUtil.java:180) at com.sun.enterprise.registration.glassfish.RegistrationUtil.setUpdateCenterUUID(RegistrationUtil.java:187) at com.sun.enterprise.registration.glassfish.RegistrationUtil.synchUUID(RegistrationUtil.java:174) at com.sun.enterprise.registration.glassfish.PingService.postConstruct(PingService.java:101) at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131) at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91) at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67) at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:340) at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145) at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136) at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79) at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63) at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97) at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55) Caused by: java.lang.IllegalStateException: Unknown protocol: proxy.domain.com at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:372) at java.net.URL.<init>(URL.java:612) ... 29 more It should be easy to test for anything beginning with http/s and bring up a more meaningful error message or even correct the wrong env entry..
    via by myfear,
  • MalformedURLException
    via symmetricds by brevleq
    ,
  • SymmetricDS MalformedURLException
    via Stack Overflow by brevleq
    ,
    • com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:672) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:322) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5366) at com.sun.enterprise.web.WebModule.start(WebModule.java:498) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375) at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210) at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108) Caused by: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:670) ... 19 more Caused by: java.net.MalformedURLException: Unknown protocol: jndi at java.net.URL.<init>(URL.java:617) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) at java.net.URI.toURL(URI.java:1096) at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:920) at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:865) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656) ... 19 more Caused by: java.lang.IllegalStateException: Unknown protocol: jndi at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:372) at java.net.URL.<init>(URL.java:612) ... 27 more

    Users with the same issue

    Unknown visitor1 times, last one,
    davidvanlaatum
    4 times, last one,
    Unknown visitor1 times, last one,