12 Replies Latest reply on May 2, 2008 11:12 AM by jaikiran

    ERROR [NamingService] Could not start on port 1099

    vkokodyn

      13:25:55,024 INFO [Server] Starting JBoss (MX MicroKernel)...
      13:25:55,039 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
      13:25:55,039 INFO [Server] Home Dir: C:\JBoss\jboss-4.0.3SP1
      13:25:55,039 INFO [Server] Home URL: file:/C:/JBoss/jboss-4.0.3SP1/
      13:25:55,039 INFO [Server] Patch URL: null
      13:25:55,039 INFO [Server] Server Name: default
      13:25:55,039 INFO [Server] Server Home Dir: C:\JBoss\jboss-4.0.3SP1\server\default
      13:25:55,039 INFO [Server] Server Home URL: file:/C:/JBoss/jboss-4.0.3SP1/server/default/
      13:25:55,039 INFO [Server] Server Temp Dir: C:\JBoss\jboss-4.0.3SP1\server\default\tmp
      13:25:55,039 INFO [Server] Root Deployment Filename: jboss-service.xml
      13:25:55,508 INFO [ServerInfo] Java version: 1.5.0_02,Sun Microsystems Inc.
      13:25:55,508 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_02-b09,Sun Microsystems Inc.
      13:25:55,508 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      13:25:56,274 INFO [Server] Core system initialized
      13:25:59,211 INFO [WebService] Using RMI server codebase: http://kleynod:8083/
      13:25:59,274 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      13:25:59,758 ERROR [NamingService] Could not start on port 1099
      java.net.BindException: Address already in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
      at java.net.ServerSocket.bind(ServerSocket.java:319)
      at java.net.ServerSocket.(ServerSocket.java:185)
      at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
      at org.jnp.server.Main.initBootstrapListener(Main.java:316)
      at org.jnp.server.Main.start(Main.java:267)
      at org.jboss.naming.NamingService.startService(NamingService.java:221)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at org.jboss.system.ServiceController.start(ServiceController.java:446)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
      at org.jboss.Main.boot(Main.java:187)
      at org.jboss.Main$1.run(Main.java:438)
      at java.lang.Thread.run(Thread.java:595)
      13:26:08,664 INFO [Embedded] Catalina naming disabled
      13:26:09,820 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      13:26:09,820 INFO [Catalina] Initialization processed in 1047 ms
      13:26:09,836 INFO [StandardService] Starting service jboss.web
      13:26:09,836 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5
      13:26:09,930 INFO [StandardHost] XML validation disabled
      13:26:09,992 INFO [Catalina] Server startup in 172 ms
      13:26:10,242 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      13:26:11,039 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      13:26:11,914 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp4848jboss-ws4ee-exp.war/
      13:26:12,195 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      13:26:12,664 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      13:26:17,461 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      13:26:19,867 INFO [MailService] Mail Service bound to java:/Mail
      13:26:20,930 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      13:26:21,195 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      13:26:21,414 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      13:26:21,648 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      13:26:21,867 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      13:26:22,070 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      13:26:24,133 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      13:26:24,633 INFO [A] Bound to JNDI name: queue/A
      13:26:24,648 INFO [B] Bound to JNDI name: queue/B
      13:26:24,648 INFO [C] Bound to JNDI name: queue/C
      13:26:24,648 INFO [D] Bound to JNDI name: queue/D
      13:26:24,648 INFO [ex] Bound to JNDI name: queue/ex
      13:26:24,695 INFO [testTopic] Bound to JNDI name: topic/testTopic
      13:26:24,711 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      13:26:24,711 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      13:26:24,711 INFO [testQueue] Bound to JNDI name: queue/testQueue
      13:26:24,804 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      13:26:24,929 INFO [DLQ] Bound to JNDI name: queue/DLQ
      13:26:25,351 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      13:26:25,539 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MSSQLDS' to JNDI name 'java:MSSQLDS'
      13:26:25,898 WARN [verifier] EJB spec violation:
      Bean : Product
      Method : public abstract ProductLocal create() throws CreateException
      Section: 12.2.11
      Warning: Each create(...) method in the entity bean's local home interface must have a matching ejbCreate(...) method in the entity bean's class.

      13:26:25,898 ERROR [MainDeployer] Could not create deployment: file:/C:/JBoss/jboss-4.0.3SP1/server/default/deploy/EJBEntity.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy24.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
      at org.jboss.Main.boot(Main.java:187)
      at org.jboss.Main$1.run(Main.java:438)
      at java.lang.Thread.run(Thread.java:595)
      13:26:25,961 INFO [TomcatDeployer] deploy, ctxPath=/HelloWeb, warUrl=.../tmp/deploy/tmp4904HelloWeb-exp.war/
      13:26:26,289 INFO [TomcatDeployer] deploy, ctxPath=/SimpleWeb, warUrl=.../tmp/deploy/tmp4905SimpleWeb-exp.war/
      13:26:26,586 INFO [TomcatDeployer] deploy, ctxPath=/WebClient, warUrl=.../tmp/deploy/tmp4906WebClient-exp.war/
      13:26:26,945 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      13:26:27,242 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@b1f2003b { url=file:/C:/JBoss/jboss-4.0.3SP1/server/default/deploy/EJBEntity.jar }
      deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
      status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
      state: FAILED
      watch: file:/C:/JBoss/jboss-4.0.3SP1/server/default/deploy/EJBEntity.jar
      altDD: null
      lastDeployed: 1164972385617
      lastModified: 1164972385586
      mbeans:


      13:26:27,570 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      13:26:27,961 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      13:26:27,992 INFO [JkMain] Jk running ID=0 time=0/94 config=null
      13:26:28,070 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 33s:31ms

        • 1. Re: ERROR [NamingService] Could not start on port 1099
          visolvejboss

          Hello,

          For the NamingService problem, can you make sure, you don't run any process that is listening on 1099 port? If you are linux user, you can do that by using the following command.

          netstat -nap | grep 1099


          • 2. Re: ERROR [NamingService] Could not start on port 1099
            vkokodyn

            I am not Linux user

            • 3. Re: ERROR [NamingService] Could not start on port 1099
              visolvejboss

              Hello,

              In windows you can use,

              netstat -na


              to get the list ports listening.

              • 4. Re: ERROR [NamingService] Could not start on port 1099
                vkokodyn

                17:43:27,550 INFO [Server] Starting JBoss (MX MicroKernel)...
                17:43:27,566 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
                17:43:27,566 INFO [Server] Home Dir: C:\JBoss\jboss-4.0.3SP1
                17:43:27,566 INFO [Server] Home URL: file:/C:/JBoss/jboss-4.0.3SP1/
                17:43:27,566 INFO [Server] Patch URL: null
                17:43:27,566 INFO [Server] Server Name: default
                17:43:27,566 INFO [Server] Server Home Dir: C:\JBoss\jboss-4.0.3SP1\server\default
                17:43:27,566 INFO [Server] Server Home URL: file:/C:/JBoss/jboss-4.0.3SP1/server/default/
                17:43:27,566 INFO [Server] Server Temp Dir: C:\JBoss\jboss-4.0.3SP1\server\default\tmp
                17:43:27,566 INFO [Server] Root Deployment Filename: jboss-service.xml
                17:43:28,050 INFO [ServerInfo] Java version: 1.5.0_02,Sun Microsystems Inc.
                17:43:28,050 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_02-b09,Sun Microsystems Inc.
                17:43:28,050 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                17:43:28,832 INFO [Server] Core system initialized
                17:43:32,317 INFO [WebService] Using RMI server codebase: http://kleynod:8083/
                17:43:32,379 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
                17:43:32,895 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
                17:43:40,224 INFO [Embedded] Catalina naming disabled
                17:43:41,193 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
                17:43:41,208 INFO [Catalina] Initialization processed in 859 ms
                17:43:41,208 INFO [StandardService] Starting service jboss.web
                17:43:41,224 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5
                17:43:41,318 INFO [StandardHost] XML validation disabled
                17:43:41,380 INFO [Catalina] Server startup in 172 ms
                17:43:41,630 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
                17:43:42,521 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
                17:43:43,474 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp43365jboss-ws4ee-exp.war/
                17:43:43,787 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
                17:43:44,271 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
                17:43:48,709 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
                17:43:51,147 INFO [MailService] Mail Service bound to java:/Mail
                17:43:52,101 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
                17:43:52,366 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
                17:43:52,616 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
                17:43:52,851 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
                17:43:53,085 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
                17:43:53,288 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
                17:43:55,335 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                17:43:55,867 INFO [A] Bound to JNDI name: queue/A
                17:43:55,867 INFO [B] Bound to JNDI name: queue/B
                17:43:55,882 INFO [C] Bound to JNDI name: queue/C
                17:43:55,882 INFO [D] Bound to JNDI name: queue/D
                17:43:55,882 INFO [ex] Bound to JNDI name: queue/ex
                17:43:55,929 INFO [testTopic] Bound to JNDI name: topic/testTopic
                17:43:55,945 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
                17:43:55,945 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
                17:43:55,945 INFO [testQueue] Bound to JNDI name: queue/testQueue
                17:43:56,054 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
                17:43:56,164 INFO [DLQ] Bound to JNDI name: queue/DLQ
                17:43:56,601 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                17:43:56,820 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MSSQLDS' to JNDI name 'java:MSSQLDS'
                17:43:57,179 WARN [verifier] EJB spec violation:
                Bean : Product
                Method : public abstract ProductLocal create() throws CreateException
                Section: 12.2.11
                Warning: Each create(...) method in the entity bean's local home interface must have a matching ejbCreate(...) method in the entity bean's class.

                17:43:57,179 ERROR [MainDeployer] Could not create deployment: file:/C:/JBoss/jboss-4.0.3SP1/server/default/deploy/EJBEntity.jar/
                org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
                at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
                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:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy24.create(Unknown Source)
                at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy9.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:428)
                at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy4.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
                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:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy5.deploy(Unknown Source)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
                at org.jboss.Main.boot(Main.java:187)
                at org.jboss.Main$1.run(Main.java:438)
                at java.lang.Thread.run(Thread.java:595)
                17:43:57,242 INFO [TomcatDeployer] deploy, ctxPath=/HelloWeb, warUrl=.../tmp/deploy/tmp43420HelloWeb-exp.war/
                17:43:57,586 INFO [TomcatDeployer] deploy, ctxPath=/SimpleWeb, warUrl=.../tmp/deploy/tmp43421SimpleWeb-exp.war/
                17:43:57,883 INFO [TomcatDeployer] deploy, ctxPath=/WebClient, warUrl=.../tmp/deploy/tmp43422WebClient-exp.war/
                17:43:58,164 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
                17:43:58,429 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                --- Incompletely deployed packages ---
                org.jboss.deployment.DeploymentInfo@86af42ea { url=file:/C:/JBoss/jboss-4.0.3SP1/server/default/deploy/EJBEntity.jar/ }
                deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
                status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
                state: FAILED
                watch: file:/C:/JBoss/jboss-4.0.3SP1/server/default/deploy/EJBEntity.jar/META-INF/ejb-jar.xml
                altDD: null
                lastDeployed: 1164815036882
                lastModified: 1164808456742
                mbeans:


                17:43:58,695 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
                17:43:59,101 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
                17:43:59,148 INFO [JkMain] Jk running ID=0 time=0/93 config=null
                17:43:59,164 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 31s:598ms

                =========================EJB_JAR===============

                <?xml version="1.0" encoding="UTF-8"?>

                <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

                <ejb-jar >

                <![CDATA[No Description.]]>
                <display-name>Generated by XDoclet</display-name>

                <enterprise-beans>

                <!-- Session Beans -->
                <!--
                To add session beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called session-beans.xml that contains
                the markup for those beans.
                -->

                <!-- Entity Beans -->

                <![CDATA[Description for Product]]>
                <display-name>Name for Product</display-name>

                <ejb-name>Product</ejb-name>

                com.beans.interfaces.ProductHome
                com.beans.interfaces.Product
                <local-home>com.beans.interfaces.ProductLocalHome</local-home>
                com.beans.interfaces.ProductLocal

                <ejb-class>com.beans.ejb.ProductBMP</ejb-class>
                <persistence-type>Bean</persistence-type>
                <prim-key-class>com.beans.interfaces.ProductPK</prim-key-class>
                False


                <!--
                To add entity beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called entity-beans.xml that contains
                the markup for those beans.
                -->

                <!-- Message Driven Beans -->
                <!--
                To add message driven beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called message-driven-beans.xml that contains
                the <message-driven></message-driven> markup for those beans.
                -->

                </enterprise-beans>

                <!-- Relationships -->

                <!-- Assembly Descriptor -->
                <!--
                To specify your own assembly descriptor info here, add a file to your
                XDoclet merge directory called assembly-descriptor.xml that contains
                the <assembly-descriptor></assembly-descriptor> markup.
                -->

                <assembly-descriptor >
                <!--
                To specify additional security-role elements, add a file in the merge
                directory called ejb-security-roles.xml that contains them.
                -->

                <!-- method permissions -->
                <!--
                To specify additional method-permission elements, add a file in the merge
                directory called ejb-method-permissions.ent that contains them.
                -->

                <!-- finder permissions -->

                <!-- transactions -->
                <!--
                To specify additional container-transaction elements, add a file in the merge
                directory called ejb-container-transaction.ent that contains them.
                -->

                <!-- finder transactions -->

                <!--
                To specify an exclude-list element, add a file in the merge directory
                called ejb-exclude-list.xml that contains it.
                -->
                </assembly-descriptor>

                </ejb-jar>

                ==================JBOSS====================

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE jboss>



                <enterprise-beans>

                <!--
                To add beans that you have deployment descriptor info for, add
                a file to your XDoclet merge directory called jboss-beans.xml that contains
                the , and <message-driven></message-driven>
                markup for those beans.
                -->


                <ejb-name>Product</ejb-name>
                <jndi-name>ejb/Product</jndi-name>
                <local-jndi-name>ProductLocal</local-jndi-name>

                <method-attributes>
                </method-attributes>



                </enterprise-beans>

                <deployment-descriptor>
                </deployment-descriptor>
                <resource-managers>
                </resource-managers>

                <!--
                | for container settings, you can merge in jboss-container.xml
                | this can contain <invoker-proxy-bindings/> and <container-configurations/>
                -->






                Back to top

                • 5. Re: ERROR [NamingService] Could not start on port 1099
                  visolvejboss

                  Hello,

                  As per the EJB Specification, you should implement an ejbCreate() in your entity bean class for all the create() methods in the home interface. For example, you have an create method in home interface as given below.

                  Product create(int productID, String productName, String productQty) throws RemoteException, CreateException;


                  You should have an ejbCreate method in your entity bean class.

                  public ProductPK ejbCreate(int productD, String productName, String productQty) throws CreateException


                  • 6. Re: ERROR [NamingService] Could not start on port 1099
                    vkokodyn

                    I have ejbCreate method in my bean

                    ==============

                    package com.beans.ejb;

                    import java.sql.*;
                    import java.util.Enumeration;
                    import java.util.Vector;
                    import java.rmi.RemoteException;
                    import javax.ejb.EntityBean;
                    import javax.ejb.EntityContext;
                    import javax.ejb.CreateException;
                    import javax.ejb.FinderException;
                    import javax.ejb.ObjectNotFoundException;
                    import javax.ejb.*;
                    import com.beans.interfaces.ProductPK;
                    import javax.naming.InitialContext;
                    import javax.naming.Context;
                    import javax.naming.NamingException;
                    import javax.sql.DataSource;

                    /**
                    * XDoclet-based BMP entity bean.
                    *
                    * To generate EJB related classes using XDoclet:
                    *
                    * - Add Standard EJB module to XDoclet project properties
                    * - Customize XDoclet configuration
                    * - Run XDoclet
                    *
                    * Below are the xdoclet-related tags needed for this EJB.
                    *
                    * @ejb.bean name="Product"
                    * display-name="Name for Product"
                    * description="Description for Product"
                    * jndi-name="ejb/Product"
                    * type="BMP"
                    * view-type="both"
                    */
                    public class ProductBean implements EntityBean {

                    /** The entity context */
                    private EntityContext context;

                    int UID;
                    String pName;
                    int pQuantity ;
                    String pPrice;

                    public int getUID() {
                    System.out.println("getUID");
                    return UID;
                    }

                    public String getpName() {
                    System.out.println("getpName");
                    return pName;
                    }

                    public int getpQuantity() {
                    System.out.println("getpQuantity");
                    return pQuantity;
                    }

                    public String getpPrice() {
                    System.out.println("getpPrice");
                    return pPrice;
                    }

                    public ProductBean() {
                    super();
                    // TODO Auto-generated constructor stub
                    }

                    /**
                    * There are zero or more ejbCreate(...) methods, whose signatures match
                    * the signatures of the create(...) methods of the entity bean?s home interface.
                    * The container invokes an ejbCreate(...) method on an entity bean instance
                    * when a client invokes a matching create(...) method on the entity bean?s
                    * home interface.
                    *
                    * The entity bean provider?s responsibility is to initialize the instance in the ejbCreate<
                    * METHOD>(...) methods from the input arguments, using the get and set accessor
                    * methods, such that when the ejbCreate(...) method returns, the persistent
                    * representation of the instance can be created.
                    *
                    * The entity bean provider must not attempt to modify the values of cmr-fields in an ejbCreate<
                    * METHOD(...) method; this should be done in the ejbPostCreate<METHOD(...) method instead.
                    *
                    * The entity object created by the ejbCreate method must have a unique primary
                    * key. This means that the primary key must be different from the primary keys of all the existing
                    * entity objects within the same home. However, it is legal to reuse the primary key of a previously
                    * removed entity object. The implementation of the bean provider?s ejbCreate<
                    * METHOD>(...) methods should be coded to return a null.
                    *
                    * An ejbCreate(...) method executes in the transaction context determined by
                    * the transaction attribute of the matching create(...) method.
                    * The database insert operations are performed by the container within the same
                    * transaction context after the Bean Provider?s ejbCreate(...) method completes.
                    *
                    * @throws CreateException Thrown if method fails due to system-level error.
                    *
                    * @throws CreateException
                    *
                    * @ejb.create-method
                    */
                    public ProductPK ejbCreate( int UID, String pName, int pQuantity,
                    String pPrice) throws CreateException
                    {
                    System.out.println("ejbCreate");
                    this.UID = UID;
                    this.pName = pName;
                    this.pQuantity = pQuantity;
                    this.pPrice = pPrice;
                    Connection connect = null;
                    PreparedStatement ps = null;
                    try {
                    String sql = "INSERT INTO ProductInfo" +
                    " (UID, pName, pQuantity, pPrice)" +
                    " VALUES" +
                    " (?, ?, ?, ?)";
                    connect = getConnection();
                    ps = connect.prepareStatement(sql);
                    ps.setInt(1, UID);
                    ps.setString(2, pName);
                    ps.setInt(3, pQuantity);
                    ps.setString(4, pPrice);
                    ps.executeUpdate();
                    }
                    catch (SQLException e) {
                    System.out.println(e.toString());
                    }
                    finally {
                    try {
                    if (ps!=null)
                    ps.close();
                    if (connect!=null)
                    connect.close();
                    }
                    catch (SQLException e) {
                    }
                    }
                    return new ProductPK(UID);

                    }

                    /**
                    * For each ejbCreate(...) method, there is a matching ejbPostCreate<
                    * METHOD>(...) method that has the same input parameters but whose return type is
                    * void. The container invokes the matching ejbPostCreate(...) method on
                    * an instance after it invokes the ejbCreate(...) method with the same arguments.
                    * The instance can discover the primary key by calling getPrimaryKey() on its
                    * entity context object.
                    *
                    * The entity object identity is available during the ejbPostCreate(...)
                    * method. The instance may, for example, obtain the component interface of the associated entity
                    * object and pass it to another enterprise bean as a method argument.
                    *
                    * The entity Bean Provider may use the ejbPostCreate(...) to set the values
                    * of cmr-fields to complete the initialization of the entity bean instance.
                    * An ejbPostCreate(...) method executes in the same transaction context as
                    * the previous ejbCreate(...) method.
                    *
                    * @throws CreateException Thrown if method fails due to system-level error.
                    */
                    public void ejbPostCreate(int UID, String pName, int pQuantity
                    , String pPrice)
                    throws CreateException {
                    System.out.println("ejbPostCreate");
                    }

                    public ProductPK ejbFindByPrimaryKey(ProductPK primaryKey)
                    throws RemoteException, FinderException {
                    System.out.println("ejbFindByPrimaryKey");
                    Connection connect = null;
                    PreparedStatement ps = null;
                    ResultSet rs = null;
                    try {
                    String sql = "SELECT pName" +
                    " FROM ProductInfo" +
                    " WHERE UID=?";
                    int UID = primaryKey.UID;
                    connect = getConnection();
                    ps = connect.prepareStatement(sql);
                    ps.setInt(1, UID);
                    rs = ps.executeQuery();
                    if (rs.next()) {
                    rs.close();
                    ps.close();
                    connect.close();
                    return primaryKey;
                    }
                    }
                    catch (SQLException e) {
                    System.out.println(e.toString());
                    }
                    finally {
                    try {
                    if (rs!=null)
                    rs.close();
                    if (ps!=null)
                    ps.close();
                    if (connect!=null)
                    connect.close();
                    }
                    catch (SQLException e) {
                    }
                    }
                    throw new ObjectNotFoundException();

                    }

                    public Enumeration ejbFindBypName(String pName)
                    throws RemoteException, FinderException {
                    System.out.println("ejbFindBypName");
                    Vector products = new Vector();
                    Connection connect = null;
                    PreparedStatement ps = null;
                    ResultSet rs = null;
                    try {
                    String sql = "SELECT UID " +
                    " FROM ProductInfo" +
                    " WHERE pName=?";
                    connect = getConnection();
                    ps = connect.prepareStatement(sql);
                    ps.setString(1, pName);
                    rs = ps.executeQuery();
                    while (rs.next()) {
                    int UID = rs.getInt(1);
                    products.addElement(new ProductPK(UID));
                    }
                    }
                    catch (SQLException e) {
                    System.out.println(e.toString());
                    }
                    finally {
                    try {
                    if (rs!=null)
                    rs.close();
                    if (ps!=null)
                    ps.close();
                    if (connect!=null)
                    connect.close();
                    }
                    catch (SQLException e) {
                    }
                    }
                    return products.elements();
                    }

                    public void ejbActivate() throws EJBException, RemoteException {
                    // TODO Auto-generated method stub
                    System.out.println("ejbActivate");
                    }

                    public void ejbLoad() throws EJBException, RemoteException {
                    // TODO Auto-generated method stub
                    System.out.println("ejbLoad");
                    Connection con = null;
                    PreparedStatement ps = null;
                    ResultSet rs = null;
                    try {
                    String sql = "SELECT pName, pPrice" +
                    " FROM ProductInfo" +
                    " WHERE UID=?";
                    con = getConnection();
                    ps = con.prepareStatement(sql);
                    ps.setInt(1, this.UID);
                    rs = ps.executeQuery();
                    if (rs.next()) {
                    this.pName = rs.getString(1);
                    this.pQuantity = rs.getInt(2);
                    this.pPrice = rs.getString(3);
                    }
                    }
                    catch (SQLException e) {
                    System.out.println(e.toString());
                    }
                    finally {
                    try {
                    if (rs!=null)
                    rs.close();
                    if (ps!=null)
                    ps.close();
                    if (con!=null)
                    con.close();
                    }
                    catch (SQLException e) {
                    }
                    }

                    }

                    public void ejbPassivate() throws EJBException, RemoteException {
                    // TODO Auto-generated method stub
                    System.out.println("ejbPassivate");
                    }

                    public void ejbRemove() throws RemoveException,
                    EJBException, RemoteException {
                    // TODO Auto-generated method stub
                    System.out.println("ejbRemove");
                    Connection connect = null;
                    PreparedStatement ps = null;
                    try {
                    String sql = "DELETE FROM ProductInfo" +
                    " WHERE UID=?";
                    ProductPK key = (ProductPK) context.getPrimaryKey();
                    int UID = key.UID;
                    connect = getConnection();
                    ps = connect.prepareStatement(sql);
                    ps.setInt(1, UID);
                    ps.executeUpdate();
                    }
                    catch (SQLException e) {
                    System.out.println(e.toString());
                    }
                    finally {
                    try {
                    if (ps!=null)
                    ps.close();
                    if (connect!=null)
                    connect.close();
                    }
                    catch (SQLException e) {
                    }
                    }

                    }

                    public void ejbStore() throws EJBException, RemoteException {
                    // TODO Auto-generated method stub
                    System.out.println("ejbStore");
                    Connection connect = null;
                    PreparedStatement ps = null;
                    try {
                    String sql = "UPDATE ProductInfo" +
                    " SET pName=?, pQuantity=?, pPrice=?" +
                    " WHERE UID=?";
                    ProductPK key = (ProductPK) context.getPrimaryKey();
                    int UID = key.UID;
                    connect = getConnection();
                    ps = connect.prepareStatement(sql);
                    ps.setString(1, this.pName);
                    ps.setInt(2, this.pQuantity);
                    ps.setString(3, this.pPrice);
                    ps.setInt(4, UID);
                    ps.executeUpdate();
                    }
                    catch (SQLException e) {
                    System.out.println(e.toString());
                    }
                    finally {
                    try {
                    if (ps!=null)
                    ps.close();
                    if (connect!=null)
                    connect.close();
                    }
                    catch (SQLException e) {
                    }
                    }

                    }

                    /**
                    * Set the associated entity context. The container calls this method
                    * after the instance creation. The entity bean must not attempt to
                    * access its persistent state and relationships using the accessor
                    * methods during this method.
                    *
                    * The enterprise bean instance should store the reference to the context
                    * object in an instance variable.
                    *
                    * This method is called with no transaction context.
                    *
                    * @throws EJBException Thrown if method fails due to system-level error.
                    */
                    public void setEntityContext(EntityContext newContext) throws EJBException {
                    System.out.println("setEntityContext");
                    context = newContext;
                    }

                    /**
                    * Unset the associated entity context. A container invokes this method
                    * before terminating the life of the instance. The entity bean must not
                    * attempt to access its persistent state and relationships using the
                    * accessor methods during this method.
                    *
                    * This method is called with no transaction context.
                    *
                    * @throws EJBException Thrown if method fails due to system-level error.
                    */
                    public void unsetEntityContext() throws EJBException {
                    context = null;
                    }

                    public Connection getConnection() {
                    String DBDriver = null;
                    String DBUrl = null;
                    String DBUserName = null;
                    String DBPassword = null;
                    Context initialContext;
                    Context environment;
                    Connection connect = null;

                    DBUrl = "jdbc:odbc:EJB";
                    DBUserName = "";
                    DBPassword = "";
                    try {
                    DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
                    Class.forName(DBDriver).newInstance();
                    connect = DriverManager.getConnection(DBUrl, DBUserName, DBPassword);
                    System.out.println("Connect");
                    }
                    catch(Exception e) {
                    System.out.println(e);
                    //return;
                    }
                    return connect;
                    }

                    }

                    • 7. Re: ERROR [NamingService] Could not start on port 1099

                      Windows can lock port 1098 and 1099 for 'other things'. To deal with the problem you can either reconfigure JBoss to use different ports, or you can tell windows not to randomly assign those ports to other stuff.

                      http://wiki.jboss.org/wiki/Wiki.jsp?page=DebugBindException

                      http://www.jboss.org/?module=bb&op=viewtopic&t=66659

                      http://www.theserverside.com/discussions/thread.tss?thread_id=32855

                      • 8. Re: ERROR [NamingService] Could not start on port 1099
                        • 9. Re: ERROR [NamingService] Could not start on port 1099
                          hsaha

                          In windows use the following command to identify the process using the particular port - 1099. You can then stop the process and then try restarting jboss. The same problem has occured to me many times and this has solved my problem.

                          netstat -nab
                          



                          • 10. Re: ERROR [NamingService] Could not start on port 1099
                            calltokapil

                            I too am facing the same problem

                            • 11. Re: ERROR [NamingService] Could not start on port 1099
                              calltokapil

                              I too am facing the same problem

                              • 12. Re: ERROR [NamingService] Could not start on port 1099
                                jaikiran

                                Posting in a 2 year old thread without providing any details about your application or setup or exception is not going to get any useful replies. Please create a new thread in the forum with the details about the issue you are facing.