I try to make some web application. I open a simple web project, and try to
run it. But, always grassfish start is failed. If I start if from program
files, it starts. but in netbeans, it s failed. Some exceptions are thrown.
and,

java.net.SocketException: Unrecognized Windows Sockets error: 10106:
create;|Service com.sun.enterprise.admin.
server.core.adminservicelifecy...@8fcc7b cannot be initialized! :
com.sun.appserv.server.ServerLifecycleException:
java.rmi.server.ExportException: Listen failed on port: 0; nested exception
is:


is it normal to listen port 0 ? should it listen port 8080 ?

I use Windows SP3 + JDK6 + NetBeans 6.5.1



All of exceptions-------------


CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_12] from [Sun
Microsystems Inc.]
Using MQ RA for Broker lifecycle control
SEC1002: Security Manager is OFF.
ADM5801:Admin server channel creation failed.
        java.net.SocketException: Unrecognized Windows Sockets error: 10106:
create;|Service
com.sun.enterprise.admin.server.core.adminservicelifecy...@8fcc7b cannot be
initialized! : com.sun.appserv.server.ServerLifecycleException:
java.rmi.server.ExportException: Listen failed on port: 0; nested exception
is:
        java.net.SocketException: Unrecognized Windows Sockets error: 10106:
create
CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException:
java.rmi.server.ExportException: Listen failed on port: 0; nested exception
is:
        java.net.SocketException: Unrecognized Windows Sockets error: 10106:
create
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(AdminChannel.java:111)
        at
com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onInitialization(AdminChannelLifecycle.java:74)
        at
com.sun.enterprise.admin.server.core.AdminService.init(AdminService.java:319)
        at
com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onInitialization(AdminServiceLifeCycle.java:116)
        at
com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:103)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:399)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.rmi.server.ExportException: Listen failed on port: 0; nested
exception is:
        java.net.SocketException: Unrecognized Windows Sockets error: 10106:
create
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
        at
sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
        at
sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
        at
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
        at
java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)
        at
java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:256)
        at
java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:155)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannelServer.<init>(AdminChannelServer.java:102)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.createServerObject(AdminChannel.java:251)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(AdminChannel.java:106)
        ... 12 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error:
10106: create
        at java.net.ServerSocket.createImpl(ServerSocket.java:255)
        at java.net.ServerSocket.getImpl(ServerSocket.java:205)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at
com.sun.enterprise.admin.server.core.channel.LocalRMIServerSocketFactory.createServerSocket(LocalRMIServerSocketFactory.java:92)
        at
sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
        ... 22 more
Server Startup failed. Exiting...
Server shutdown in progress...
CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException
        at
com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:171)
        at
com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:553)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
CORE5061: Exception :
java.lang.RuntimeException: Admin Server Channel is not initialized
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.assertAdminServerChannelNotNull(AdminChannel.java:373)
        at
com.sun.enterprise.admin.server.core.channel.AdminChannel.setRMIChannelStopping(AdminChannel.java:189)
        at
com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onShutdown(AdminChannelLifecycle.java:103)
        at
com.sun.enterprise.admin.server.core.AdminService.stop(AdminService.java:457)
        at
com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onShutdown(AdminServiceLifeCycle.java:155)
        at
com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:553)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:145)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:427)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Server stopped due to Server startup failure.
sending notification to server...server
Server shutdown complete.







Thanks, a lot

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to