2 Replies Latest reply: May 16, 2012 10:58 PM by Stephen Coy RSS

Can not deploy ear app, jboss 6.1, eclipse indigo with jboss tools 3.3 .

Meena Rajnai Newbie

Hi I have an ear application which when I am deploying in  defalut mode in local host of jboss 6.1 is working fine. But when I want to give my own host IP address or when I want to deply it in all (cluster mode) with the IP addess 129.78.110.72 of the machine it does not deply my application .

 

I am getting following error in server.log

 

Error adding deployment folder to deployment scanner

 

javax.naming.CommunicationException: Could not obtain connection to any of these urls: 129.78.110.72:1099 and discovery failed with error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1522)

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1761)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

at javax.naming.InitialContext.lookup(Unknown Source)

at org.jboss.ide.eclipse.as.jmx.integration.JMXSafeRunner.run(JMXSafeRunner.java:67)

at org.jboss.ide.eclipse.as.jmx.integration.JMXSafeRunner.run(JMXSafeRunner.java:52)

at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:97)

at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnectionProvider.run(JBossServerConnectionProvider.java:58)

at org.jboss.ide.eclipse.as.jmx.integration.JMXServerLifecycleListener.doDeploymentAddition(JMXServerLifecycleListener.java:69)

at org.jboss.ide.eclipse.as.jmx.integration.JMXServerLifecycleListener.serverChanged(JMXServerLifecycleListener.java:55)

at org.jboss.ide.eclipse.as.core.server.UnitedServerListenerManager.serverChanged(UnitedServerListenerManager.java:128)

at org.eclipse.wst.server.core.internal.ServerNotificationManager.broadcastChange(ServerNotificationManager.java:125)

at org.eclipse.wst.server.core.internal.Server.fireServerStateChangeEvent(Server.java:735)

at org.eclipse.wst.server.core.internal.Server.setServerState(Server.java:643)

at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.setServerState(ServerBehaviourDelegate.java:143)

at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.setServerStarted(DeployableServerBehavior.java:194)

at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.setServerStarted(DelegatingServerBehavior.java:91)

at org.jboss.ide.eclipse.as.core.server.internal.AbstractJBossBehaviourDelegate.setServerStarted(AbstractJBossBehaviourDelegate.java:128)

at org.jboss.ide.eclipse.as.core.server.internal.AbstractJBossBehaviourDelegate$1.stateAsserted(AbstractJBossBehaviourDelegate.java:102)

at org.jboss.ide.eclipse.as.core.server.internal.PollThread.alertListener(PollThread.java:231)

at org.jboss.ide.eclipse.as.core.server.internal.PollThread.handlePollerHasAnswer(PollThread.java:160)

at org.jboss.ide.eclipse.as.core.server.internal.PollThread.run(PollThread.java:148)

[Root exception is javax.naming.CommunicationException: Failed to connect to server /129.78.110.72:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /129.78.110.72:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1780)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

at javax.naming.InitialContext.lookup(Unknown Source)

at org.jboss.ide.eclipse.as.jmx.integration.JMXSafeRunner.run(JMXSafeRunner.java:67)

at org.jboss.ide.eclipse.as.jmx.integration.JMXSafeRunner.run(JMXSafeRunner.java:52)

at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnection.run(JBossServerConnection.java:97)

at org.jboss.ide.eclipse.as.jmx.integration.JBossServerConnectionProvider.run(JBossServerConnectionProvider.java:58)

at org.jboss.ide.eclipse.as.jmx.integration.JMXServerLifecycleListener.doDeploymentAddition(JMXServerLifecycleListener.java:69)

at org.jboss.ide.eclipse.as.jmx.integration.JMXServerLifecycleListener.serverChanged(JMXServerLifecycleListener.java:55)

at org.jboss.ide.eclipse.as.core.server.UnitedServerListenerManager.serverChanged(UnitedServerListenerManager.java:128)

at org.eclipse.wst.server.core.internal.ServerNotificationManager.broadcastChange(ServerNotificationManager.java:125)

at org.eclipse.wst.server.core.internal.Server.fireServerStateChangeEvent(Server.java:735)

at org.eclipse.wst.server.core.internal.Server.setServerState(Server.java:643)

at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.setServerState(ServerBehaviourDelegate.java:143)

at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.setServerStarted(DeployableServerBehavior.java:194)

at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.setServerStarted(DelegatingServerBehavior.java:91)

at org.jboss.ide.eclipse.as.core.server.internal.AbstractJBossBehaviourDelegate.setServerStarted(AbstractJBossBehaviourDelegate.java:128)

at org.jboss.ide.eclipse.as.core.server.internal.AbstractJBossBehaviourDelegate$1.stateAsserted(AbstractJBossBehaviourDelegate.java:102)

at org.jboss.ide.eclipse.as.core.server.internal.PollThread.alertListener(PollThread.java:231)

at org.jboss.ide.eclipse.as.core.server.internal.PollThread.handlePollerHasAnswer(PollThread.java:160)

at org.jboss.ide.eclipse.as.core.server.internal.PollThread.run(PollThread.java:148)

Caused by: javax.naming.CommunicationException: Failed to connect to server /129.78.110.72:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /129.78.110.72:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:337)

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1746)

... 21 more

Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server /129.78.110.72:1099 [Root exception is java.net.ConnectException: Connection refused: connect]

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:307)

... 22 more

Caused by: java.net.ConnectException: Connection refused: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(Unknown Source)

at java.net.PlainSocketImpl.connectToAddress(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)

at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)

at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:303)

... 22 more

 

I have tried to give

Also I am unable to see any of the EAR file in the deply director. Infact even when the deplyoment is successful I am not able to see that in default mode's deply directory.To see where my deplyed application is going I checked out profile.xml file's UserProfileFactory also which is <value>${jboss.server.home.url}deploy</value>  But still can not see the app in deply dir.

 

Thanks

 

 

Meena