Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Need help in getting Ejb server started  RSS feed

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just started to study EJB 2.0,so downloaded Java 2 Platform, Enterprise Edition Version 1.4 Beta 2 Release. Is it a correct version to study EJB 2.0.
After installing server in windows 2000 I tried starting it. but it give an error. Can some please help how to fix this error and run the server.
java.net.BindException: Cannot assign requested address: JVM_Bind:1024
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:155)
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1250)
at org.apache.catalina.startup.Embedded.start(Embedded.java:1005)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:490)
at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:253)
at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:54)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
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:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
]>
Thank you
Raj
 
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might be that you've got a port conflict. Are you running anything in the common HTTP ports (80, 8080)?
 
Raj Neets
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my knowledge no, can u please tell me how to check whether some other application is running on port 80, 8080
Thank you
Raj
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

To my knowledge no, can u please tell me how to check whether some other application is running on port 80, 8080.


Actually, I missed the "JVM_Bind: 1024" part of the stack trace. It seems that the conflicted port is 1024. You could try executing
telnet localhost 1024
and see if it says "Connect failed" or starts accepting input.
You might be interested in this thread at Sun Developer Network.
 
Raj Neets
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Connection failed
C:\WINNT>telnet localhost1 1024
Connecting To localhost1...Could not open a connection to host on port 1024 : Connect failed
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to be sure, did you telnet to "localhost" or "localhost1"? I'm assuming it was a typo on your post.
Maybe you should try to tweak the config.xml referred to in the thread I posted a link to.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!