troubleshooting Question

EJB sample session bean example

Avatar of gudii9
gudii9Flag for United States of America asked on
JavaJSPJava EE
31 Comments2 Solutions1462 ViewsLast Modified:
Hi,

I am configuring jboss in my eclipse to run sample ejb session bean. while setting servr i gave server location at runtime by browsing there. Now it is asking JRE. Therre are 2 options default jre and 1.6. what i have to select. what is the difference between them. which one to take. when we have to take each of them.

Also what is the importance of remote interface, can i select local interface option instead of remote interface.

while deploying do i always have to export as jar to jboss deploy location below
C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\deploy

cannot I export as EAR instead of jar?


I started run windows batch file from folder
C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\bin
I do not see my command prompt rolling with jboss server start up messages and jndi names etc. How do i set up to see start up message, application deployed message, jndi name in the command prompt.


when i tried to start server from eclipse getting below error

20:26:14,413 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
20:26:14,415 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)
20:26:14,416 INFO  [ServerImpl] Bootstrap URL: null
20:26:14,416 INFO  [ServerImpl] Home Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA
20:26:14,417 INFO  [ServerImpl] Home URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/
20:26:14,417 INFO  [ServerImpl] Library URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/lib/
20:26:14,418 INFO  [ServerImpl] Patch URL: null
20:26:14,418 INFO  [ServerImpl] Common Base URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/common/
20:26:14,421 INFO  [ServerImpl] Common Library URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/common/lib/
20:26:14,421 INFO  [ServerImpl] Server Name: default
20:26:14,421 INFO  [ServerImpl] Server Base Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server
20:26:14,422 INFO  [ServerImpl] Server Base URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/
20:26:14,422 INFO  [ServerImpl] Server Config URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/default/conf/
20:26:14,422 INFO  [ServerImpl] Server Home Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default
20:26:14,434 INFO  [ServerImpl] Server Home URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/default/
20:26:14,434 INFO  [ServerImpl] Server Data Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\data
20:26:14,435 INFO  [ServerImpl] Server Library URL: file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/default/lib/
20:26:14,435 INFO  [ServerImpl] Server Log Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\log
20:26:14,435 INFO  [ServerImpl] Server Native Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\tmp\native
20:26:14,435 INFO  [ServerImpl] Server Temp Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\tmp
20:26:14,436 INFO  [ServerImpl] Server Temp Deploy Dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\tmp\deploy
20:26:15,539 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
20:26:16,373 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
20:26:16,389 INFO  [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
20:26:16,960 INFO  [CopyMechanism] VFS temp dir: C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server\default\tmp
20:26:16,975 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
20:26:18,589 INFO  [ServerInfo] Java version: 1.6.0_23,Sun Microsystems Inc.
20:26:18,589 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 19.0-b09,Sun Microsystems Inc.
20:26:18,589 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
20:26:18,630 INFO  [JMXKernel] Legacy JMX core initialized
20:26:21,195 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@5a2445d7(root=C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
20:26:21,197 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@5a2445d7(root=C:\softwares\jboss-5.0.0.GA\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
20:26:21,198 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@3d9478c7{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
20:26:22,857 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
20:26:22,863 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=WebService state=Create mode=Manual requiredState=Installed
java.lang.Exception: Port 8083 already in use.
      at org.jboss.web.WebServer.start(WebServer.java:233)
      at org.jboss.web.WebService.startService(WebService.java:322)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
      at $Proxy36.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Unknown Source)
Caused by: java.net.BindException: Address already in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(Unknown Source)
      at java.net.ServerSocket.bind(Unknown Source)
      at java.net.ServerSocket.<init>(Unknown Source)
      at org.jboss.web.WebServer.start(WebServer.java:226)
      ... 54 more
20:26:22,888 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/default/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=WebService
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:123)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: Port 8083 already in use.
      at org.jboss.web.WebServer.start(WebServer.java:233)
      at org.jboss.web.WebService.startService(WebService.java:322)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
      at $Proxy36.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
      ... 23 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(Unknown Source)
      at java.net.ServerSocket.bind(Unknown Source)
      at java.net.ServerSocket.<init>(Unknown Source)
      at org.jboss.web.WebServer.start(WebServer.java:226)
      ... 54 more
20:26:22,901 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

*** CONTEXTS IN ERROR: Name -> Error

vfsfile:/C:/softwares/jboss-5.0.0.GA/jboss-5.0.0.GA/server/default/conf/jboss-service.xml -> java.net.BindException: Address already in use: JVM_Bind


20:26:22,902 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 8s:464ms



How do i fix above error.


i deleted old server and recreated by giving port number 3333
now i am seeing cannot start in 50 seconds error.

Server JBoss v5.0 at localhost was unable to start within 50 seconds. If the server requires more time, try increasing the timeout in the server editor.

where do i go to change it.
How do i fix this error

i changed to 150 still same error. what are jboss tools do i need install them. where to download and how to install

Even 400 seconds also same error. i changed jre from default to 1.6 not sure if that fixes this error.

i was trying to download jboss 5.0.0 CR2 instead of jboss 5.0.0 CR1 from link
http://www.jboss.org/jbossas/downloads/

But i do not see CR2. Where can i download CR2
Please advise

Any ideas, resources, sample code highly appreciated. thanks in advance
JRE.jpg
JRE2.jpg
JRE3.jpg
JRE4.jpg
JRE5.jpg
JRE6.jpg
JRE7.jpg
JRE8.jpg
ASKER CERTIFIED SOLUTION
Amitkumar P
Sr. Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 31 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 31 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros