com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi

Java.net JIRA | tesgoran | 4 years ago
  1. 0

    [GLASSFISH-19216] java.net.MalformedURLException: Unknown protocol: jndi from JSF ConfigManager - Java.net JIRA

    java.net | 1 year ago
    com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi
  2. 0

    [GLASSFISH-19216] java.net.MalformedURLException: Unknown protocol: jndi from JSF ConfigManager - Java.net JIRA

    java.net | 12 months ago
    com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi
  3. 0

    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?

    Java.net JIRA | 4 years ago | tesgoran
    com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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?

    Java.net JIRA | 4 years ago | tesgoran
    com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.net.MalformedURLException: Unknown protocol: jndi
  6. 0

    O Java EE 7 Hands-on lab, O VM: HTTP 404 não encontrei.A causa e solução de prob

    programpt.com | 1 year ago
    javax.el.ELException: /client/movies.xhtml @18,78 items="#{movieClientBean.movies}": javax.ws.rs.ProcessingException: java.net.MalformedURLException: Stream handler unavailable due to: For input string: "0:0:0:0:0:0:1:8080"

  1. davidvanlaatum 4 times, last 1 month ago
  2. davidvanlaatum 3 times, last 2 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Unknown protocol: jndi

    at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL()
  2. Apache Felix Framework
    URLHandlersStreamHandlerProxy.parseURL
    1. org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:372)
    1 frame
  3. Java RT
    URI.toURL
    1. java.net.URL.<init>(URL.java:612)
    2. java.net.URL.<init>(URL.java:480)
    3. java.net.URL.<init>(URL.java:429)
    4. java.net.URI.toURL(URI.java:1096)
    4 frames
  4. JSF
    ConfigManager$ParseTask.call
    1. com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:920)
    2. com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:865)
    2 frames
  5. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    2 frames
  6. JSF
    ConfigureListener.contextInitialized
    1. com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:656)
    2. com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:322)
    3. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
    3 frames
  7. Glassfish Core
    StandardContext.contextListenerStart
    1. org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)
    1 frame
  8. Glassfish
    WebModule.contextListenerStart
    1. com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)
    1 frame
  9. Glassfish Core
    StandardContext.start
    1. org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)
    1 frame
  10. Glassfish
    WebModule.start
    1. com.sun.enterprise.web.WebModule.start(WebModule.java:498)
    1 frame
  11. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
    3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
    3 frames
  12. Glassfish
    WebApplication.start
    1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
    2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
    3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
    3 frames
  13. Private APIs of Glassfish
    ApplicationInfo.start
    1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
    3 frames
  14. Kernel Classes
    InstallerThread.run
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    2. com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
    3. com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)
    4. com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)
    4 frames