aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Need help in getting Ejb server started Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Need help in getting Ejb server started" Watch "Need help in getting Ejb server started" New topic
Author

Need help in getting Ejb server started

Raj Neets
Ranch Hand

Joined: Nov 12, 2002
Posts: 46
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
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
It might be that you've got a port conflict. Are you running anything in the common HTTP ports (80, 8080)?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Raj Neets
Ranch Hand

Joined: Nov 12, 2002
Posts: 46
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Nov 12, 2002
Posts: 46
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help in getting Ejb server started