dev@glassfish.java.net

Re: Glassfish 3.1 - WebSockets - NetBeans

From: Ido Ran <ido.ran_at_gmail.com>
Date: Tue, 8 Jun 2010 21:14:10 +0300

Little update - I am stil not able to register Glassfish V3.1 domain1 but I
am able to create a new domain and it works great, deployed application run,
admin site works.
So I guess the question now is what's wrong with domain1 and why can't I
register exist domain of Glassfish V3.1 in NetBeans?

Ido

On Tue, Jun 8, 2010 at 7:52 PM, Ido Ran <ido.ran_at_gmail.com> wrote:

> Hi.
>
> I am trying to work with the latest nightly build of Glassfish 3.1 (
> glassfish-3.1-b04-06_05_2010.zip) because I want to add WebSocket
> abilities to my RESTful Web Service.
>
> 1. I was able to start domain1 using asadmin, but when I open a browser in
> localhost:48484 nothing came up and I have the message bellow in the
> server.log.
>
> 2. When I try to add the new glassfish to NetBeans Servers I fail to do so.
> I try to point it to several directories in glassfishv31 but it always show
> message "C:\Program Files\glassfishv31 does not have usable default domain"
> as warning. When I press next the register domain page show an error at the
> bottom saying "Unsupported domain at domain1; admin-listener is disabled or
> no enabled http-listner". So I can't add it to NetBeans IDE.
>
> I can do some things using asadmin, it start and stop the domain and deploy
> application.
>
> Is it something wrong with my installation or is it something work with the
> latest version?
> Also is it possible to use Glassfish v3.1 with NetBeans?
>
> Thank you,
> Ido.
>
>
>
>
>
> Message from server.log
>
>
> [#|2010-06-08T19:14:06.890+0300|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=71;_ThreadName=Thread-1;|Realm
> admin-realm of classtype
> com.sun.enterprise.security.auth.realm.file.FileRealm successfully
> created.|#]
>
> [#|2010-06-08T19:14:06.890+0300|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=71;_ThreadName=Thread-1;|Realm
> file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm
> successfully created.|#]
>
> [#|2010-06-08T19:14:06.890+0300|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=71;_ThreadName=Thread-1;|Realm
> certificate of classtype
> com.sun.enterprise.security.auth.realm.certificate.CertificateRealm
> successfully created.|#]
>
> [#|2010-06-08T19:14:06.890+0300|INFO|glassfish3.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=71;_ThreadName=Thread-1;|Security
> service(s) started successfully....|#]
>
> [#|2010-06-08T19:14:08.968+0300|WARNING|glassfish3.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=71;_ThreadName=Thread-1;|DPL8030:
> Sun specific deployment descriptor (WEB-INF/sun-web.xml in archive
> /C:/Program
> Files/glassfishv31/glassfish/lib/install/applications/__admingui/) is
> deprecating, please use Glassfish specific deployment descriptor
> WEB-INF/glassfish-web.xml in the future.|#]
>
> [#|2010-06-08T19:14:13.859+0300|INFO|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=26;_ThreadName=Thread-1;|Initializing
> Mojarra 2.0.2 (FCS b10) for context ''|#]
>
> [#|2010-06-08T19:14:15.390+0300|INFO|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=26;_ThreadName=Thread-1;|Unsanitized
> stacktrace from failed start...
> com.sun.faces.config.ConfigurationException:
> java.util.concurrent.ExecutionException: javax.faces.FacesException:
> java.io.IOException: Cannot open a foreign URL;
> this.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/;
> foreign.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/
> at
> com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:661)
> at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:306)
> at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
> at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4678)
> at
> com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:518)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5299)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:482)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:913)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:897)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:681)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1922)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1601)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:87)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:127)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:242)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:249)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:355)
> at
> com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:363)
> at
> com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:306)
> at
> com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:114)
> Caused by: java.util.concurrent.ExecutionException:
> javax.faces.FacesException: java.io.IOException: Cannot open a foreign URL;
> this.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/;
> foreign.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/
> at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
> at java.util.concurrent.FutureTask.get(Unknown Source)
> at
> com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:648)
> ... 19 more
> Caused by: javax.faces.FacesException: java.io.IOException: Cannot open a
> foreign URL;
> this.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/;
> foreign.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/
> at
> com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:134)
> at com.sun.faces.config.ConfigManager$URLTask.call(ConfigManager.java:1053)
> at
> com.sun.faces.config.ConfigManager$URLTask.call(ConfigManager.java:1022)
> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at
> com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:639)
> ... 19 more
> Caused by: java.io.IOException: Cannot open a foreign URL;
> this.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/;
> foreign.url=jar:file:/C:/Program%2520Files/glassfishv31/glassfish/lib/install/applications/jaxr-ra/jaxr-ra.jar!/META-INF/
> at
> com.sun.enterprise.loader.ASURLClassLoader$InternalURLStreamHandler.openConnection(ASURLClassLoader.java:1378)
> at java.net.URL.openConnection(Unknown Source)
> at com.sun.faces.facelets.util.Classpath.search(Classpath.java:103)
> at com.sun.faces.facelets.util.Classpath.search(Classpath.java:86)
> at
> com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:159)
> at
> com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:107)
> ... 24 more
>