This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
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
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
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.
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02
https://coderanch.com/t/705708/Enterprise-Java-integration-Delphi-Free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!