[jBPM] - Re: jBPM 4.x on Glassfish
by Yogita Bartake
Yogita Bartake [http://community.jboss.org/people/YogitaBartake] created the discussion
"Re: jBPM 4.x on Glassfish"
To view the discussion, visit: http://community.jboss.org/message/572448#572448
--------------------------------------------------------------
We are facing the below error on Glassfish V2 with JBPM 4.1.
java.lang.IllegalStateException: Operation not allowed.
at com.sun.enterprise.distributedtx.UserTransactionImpl.checkUserTransactionMethodAccess(UserTransactionImpl.java:135)
at com.sun.enterprise.distributedtx.UserTransactionImpl.getStatus(UserTransactionImpl.java:262)
at org.jbpm.pvm.internal.tx.jta.JtaTransaction.getUserTransactionStatus(JtaTransaction.java:144)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:43)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
Hibernate configuration is as below.
<property name="hibernate.search.worker.execution">async</property>
<property name="hibernate.search.worker.buffer_queue.max">5</property>
<property name="hibernate.search.worker.thread_pool.size">5</property>
<property name="hibernate.transaction.flush_before_completion">true</property>
<property name="hibernate.transaction.auto_close_session">true</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.SunONETransactionManagerLookup</property>
<property name="hibernate.connection.provider_class">org.hibernate.connection.DatasourceConnectionProvider</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@10.141.152.34:1521:XA</property>
<property name="hibernate.connection.username">****</property>
<property name="hibernate.connection.password">****</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="current_session_context_class">thread</property>
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
We have tried adding jta.UserTransaction property in the jbpm.hibernate.cfg.xml file without any luck. Please let us know if there is any solution to this.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/572448#572448]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years
[JBoss Messaging] - ClusteredConnectionFactory : Exception trace in starting second node using jboss messaging
by Vijay Rawat
Vijay Rawat [http://community.jboss.org/people/vijayraw] created the discussion
"ClusteredConnectionFactory : Exception trace in starting second node using jboss messaging"
To view the discussion, visit: http://community.jboss.org/message/564227#564227
--------------------------------------------------------------
Hi All,
I am using jboss 4.2.3-GA, jboss-messaging 1.4.0.SP3, jboss-remoting 2.2.2 SP11
I have cluster with 2 nodes. I am using *ClusteredConnectionFactory* with <attribute name="SupportsLoadBalancing">true</attribute>
I am able to start first node without any problems with all queues up. When I start second node , I get exception strace
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2010-09-29 18:45:43,468 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@13306ad started
2010-09-29 18:45:44,468 WARN [org.jboss.jms.server.security.SecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
2010-09-29 18:45:45,203 ERROR [org.jboss.messaging.util.ExceptionUtil] SessionEndpoint[71-7v4rjoeg-1-xoeqjoeg-31o2zq-21o4c5] createConsumerDelegate [81-nv4rjoeg-1-xoeqjoeg-31o2zq-21o4c5]
javax.jms.InvalidDestinationException: No such destination: JBossQueue[CalendarMessage] has it been deployed?
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1838)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:252)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:94)
at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeNext(SessionAdvised$createConsumerDelegate_8721389917985689973.java)
at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:123)
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:597)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeNext(SessionAdvised$createConsumerDelegate_8721389917985689973.java)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeNext(SessionAdvised$createConsumerDelegate_8721389917985689973.java)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:100)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:866)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:608)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:420)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173)
-----------------------------------------------------------------------------------------------------------
If anyone knows to avoid exception trace.
Please let me know.
Regards,
Vijay Rawat
jboss-messaging 1.4.0.SP3
jboss-remoting 2.2.2 SP11
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/564227#564227]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years
[JBoss Cache] - Atomikos Tx with Hibernate and JBossCache
by sonam nepali
sonam nepali [http://community.jboss.org/people/sonam.nepali] created the discussion
"Atomikos Tx with Hibernate and JBossCache"
To view the discussion, visit: http://community.jboss.org/message/571841#571841
--------------------------------------------------------------
Hi
I am using Atomikos transaction manager with JBosscache and Hibernate.
I have injected java TransactionManager into the JBosscache as stated in their documentation. Hibernate looks up the transactionManager using the properties configuration.
The following is what I have for test purposes:
1. I programatically start a Java Transaction.
2. I do two things:
a. I save an object into JBosscache programmatically using "put" operation.
b. Then I call my PersonDaoImpl to save a "Person" object.
3. Finally I commit the Java Transaction.
Now this is what has happened according to the log file:
1. The object is saved in the table. I verified it in the table.
2. After the transaction state has entered in the "TERMINATED" state, then the JBossCache tried to commit the changes. However, there is no transaction at this point. JBossCache gives the following error:
- Received JTA STATUS_UNKNOWN in afterCompletion()! XA resources may not be in sync
Can any one shed light on this?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/571841#571841]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years
[Datasource Configuration] - error in deploying the jbpm3.2.3 into the jboss5.0.1
by f rj
f rj [http://community.jboss.org/people/triff] created the discussion
"error in deploying the jbpm3.2.3 into the jboss5.0.1"
To view the discussion, visit: http://community.jboss.org/message/570081#570081
--------------------------------------------------------------
i'm deploying jbpm3.2.3 into jboss 5.0.1,and i get these error:
21:42:35,673 INFO [DatasourceConnectionProvider] Using datasource: java:comp/env/jdbc/JbpmDataSource
21:42:35,674 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
21:42:35,674 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.10 ( Revision: ${svn.Revision} )
21:42:35,748 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
21:42:35,755 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
21:42:35,758 INFO [NamingHelper] JNDI InitialContext properties:{}
21:42:35,759 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
21:42:35,762 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
21:42:35,763 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
21:42:35,763 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
21:42:35,763 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
21:42:35,763 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
21:42:35,763 INFO [SettingsFactory] JDBC batch size: 15
21:42:35,763 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
21:42:35,764 INFO [SettingsFactory] Scrollable result sets: enabled
21:42:35,764 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
21:42:35,764 INFO [SettingsFactory] Connection release mode: auto
21:42:35,765 INFO [SettingsFactory] Maximum outer join fetch depth: 2
21:42:35,765 INFO [SettingsFactory] Default batch fetch size: 1
21:42:35,765 INFO [SettingsFactory] Generate SQL with comments: enabled
21:42:35,765 INFO [SettingsFactory] Order SQL updates by primary key: disabled
21:42:35,766 INFO [SettingsFactory] Order SQL inserts for batching: disabled
21:42:35,766 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
21:42:35,770 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
21:42:35,770 INFO [SettingsFactory] Query language substitutions: {}
21:42:35,770 INFO [SettingsFactory] JPA-QL strict compliance: disabled
21:42:35,770 INFO [SettingsFactory] Second-level cache: enabled
21:42:35,770 INFO [SettingsFactory] Query cache: disabled
21:42:35,778 INFO [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
21:42:35,778 INFO [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
21:42:35,779 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
21:42:35,779 INFO [SettingsFactory] Structured second-level cache entries: disabled
21:42:35,786 INFO [SettingsFactory] Echoing all SQL to stdout
21:42:35,787 INFO [SettingsFactory] Statistics: disabled
21:42:35,787 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
21:42:35,787 INFO [SettingsFactory] Default entity-mode: pojo
21:42:35,788 INFO [SettingsFactory] Named query checking : enabled
21:42:35,843 INFO [SessionFactoryImpl] building session factory
21:42:37,788 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
21:42:37,789 INFO [NamingHelper] JNDI InitialContext properties:{}
21:42:42,194 ERROR [[/jbpm-bpel]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.web.JbpmConfigurationLoader
org.jbpm.JbpmException: could not retrieve message destination
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.getDestination(JmsMessageServiceFactoryImpl.java:86)
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.openService(JmsMessageServiceFactoryImpl.java:112)
at org.jbpm.svc.Services.getService(Services.java:150)
at org.jbpm.svc.Services.getMessageService(Services.java:186)
at org.jbpm.bpel.web.JbpmConfigurationLoader.contextInitialized(JbpmConfigurationLoader.java:54)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: JbpmJobQueue not bound]
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1352)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:817)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:833)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.lookup(JmsMessageServiceFactoryImpl.java:95)
at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.getDestination(JmsMessageServiceFactoryImpl.java:83)
... 69 more
Caused by: javax.naming.NameNotFoundException: JbpmJobQueue not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1346)
... 75 more
how to solve this problem?thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570081#570081]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years
[JBoss Remoting] - Jboss 4.2.3.GA Configuration for client to call ejb
by David Chokhonelidze
David Chokhonelidze [http://community.jboss.org/people/dato.java] created the discussion
"Jboss 4.2.3.GA Configuration for client to call ejb"
To view the discussion, visit: http://community.jboss.org/message/569919#569919
--------------------------------------------------------------
Hello,
I am using following environment in my project:
* JBoss AS 4.2.3.GA
* JBoss ejb 2.x (but on 3 is the same problem i have)
* Swing for client
Server and client are running on different machines in local network. The main problem is that server needs specific configuration to connect from client to that machine and call ejbs remotelly. I have some workarounds that works:
1. In run.bat file i added following string:*set JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=IP Where jboss runs -Djava.rmi.server.useLocalHostname=false*
2. In jboss-service.xml i configured this : *<!––<attribute name="clientConnectAddress">IP Where jboss runs</attribute>––>*
*
*
After this configuration everything works. I also start jboss with parameter -b 0.0.0.0,but this does not help. From Swing client *without configuration* when i try to lookup ejb with this properties :
InitialContext jndi=fina2.Main.getJndiContext();
Object ref = jndi.lookup("fina2/i18n/LanguageSession");
*Properties p=new Properties();*
*
*
* * *p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");*
** *p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");*
** *p.setProperty(Context.PROVIDER_URL, "jnp://***IP Where jboss runs***:1099");*
*
*
* InitialContext jndi=new InitialContext(props);
*
**
**
** *Object ref = jndi.lookup("....");*
*
*
The following exception is thrown:
javax.naming.CommunicationException: Could not obtain connection to any of these urls: *IP Where jboss runs* and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server *IP Where jboss runs*:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server *IP Where jboss runs*:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at fina2.login.LoginFrame.loadLanguageList(LoginFrame.java:127)
at fina2.login.LoginFrame.languagesPopupMenuWillBecomeVisible(LoginFrame.java:426)
at fina2.login.LoginFrame$5.popupMenuWillBecomeVisible(LoginFrame.java:233)
at javax.swing.JComboBox.firePopupMenuWillBecomeVisible(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup.firePopupMenuWillBecomeVisible(Unknown Source)
at javax.swing.JPopupMenu.setVisible(Unknown Source)
at javax.swing.JPopupMenu.show(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup.show(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup.togglePopup(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$Handler.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: javax.naming.CommunicationException: Failed to connect to server *IP Where jboss runs*:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server *IP Where jboss runs*:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
... 34 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server *IP Where jboss runs*:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
... 35 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 java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
... 35 more
*It worked fine on Jboss 4.0.5 without configuration.*
*
*
Can anyone tell me some kind of workaround so that to not to configure ip address ? ,because its not good that for every machine i manually change ips.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569919#569919]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years