Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Seam examples problem

  Asked By: Egidius    Date: May 22    Category: Java    Views: 1257
  

I am a novice in JBoss Seam.
I downloaded the jboss-seam-2.0.0.GA and then want to run one of examples in "examples" folder.I chose the itext.I ran the ant and a folder with dist name created.
I copied jboss-seam-itext.ear file to C:\jboss-4.2.0.GA\server\default\deploy
and ran the JBoss AS,although i got some errors ,the JBoss started.
The error was:
09:15:02,515 ERROR [AjpProtocol] Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:8009
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
at org.apache.coyote.ajp.AjpProtocol.start(AjpProtocol.java:202)
at org.apache.catalina.connector.Connector.start(Connector.java:1132)
at org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:5
84)
at org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.jav
a:621)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
onListenerProxy.java:153)
at $Proxy47.handleNotification(Unknown Source)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
ion(JBossNotificationBroadcasterSupport.java:127)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
n(JBossNotificationBroadcasterSupport.java:108)
at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:9
16)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
09:15:02,625 WARN [JBossWeb] Failed to startConnectors
LifecycleException: service.getName(): "jboss.web"; Protocol handler start fai
led: java.net.BindException: Address already in use: JVM_Bind:8009
at org.apache.catalina.connector.Connector.start(Connector.java:1139)
at org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:5
84)
at org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.jav
a:621)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
onListenerProxy.java:153)
at $Proxy47.handleNotification(Unknown Source)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
ion(JBossNotificationBroadcasterSupport.java:127)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
n(JBossNotificationBroadcasterSupport.java:108)
at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:9
16)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
09:15:02,625 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBos

And when i go to http://localhost:8087/jboss-seam-itext/ ,i got the following error:
(I changed the default port to 8087)
HTTP Status 404 - /jboss-seam-itext/

type Status report
message /jboss-seam-itext/
description The requested resource (/jboss-seam-itext/) is not available.
JBossWeb/2.0.0.GA
What must i do?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Tate Thompson     Answered On: May 22

port 8009 is used by another application
if you are using windows go to command prompt and type
netstat -a -b

you will see list of application and ports they use
then see what application is using 8009 either close the application or change jboss  port again to a free port not in netstat list.

 
Answer #2    Answered By: Charlie Evans     Answered On: May 22

kill the process on 8009 port and then try again.

in linux you could kill the process like this :

# fuser -k 8009/tcp
or
# kill -9 PID

 
Didn't find what you were looking for? Find more on Seam examples problem Or get search suggestion and latest updates.




Tagged: