[JNDI and Naming] - Connecting DataSource in JBOSS 6 from outside the container or standalone java client
by Samir PAtil
Samir PAtil [https://community.jboss.org/people/samir.patil] created the discussion
"Connecting DataSource in JBOSS 6 from outside the container or standalone java client"
To view the discussion, visit: https://community.jboss.org/message/796127#796127
--------------------------------------------------------------
Hi All,
We are using JBOSS 6, and Spring 3.0.8 and Hibernate. We are using following configuration to connect to database with war application file for connecting to database. The below works fine
<jee:jndi-lookup id="dataSource" jndi-name="jboss/clrt"/>.
But now we have a requirement which requires standalone program to be run as client which need to connect datasource through jndi. We are unable to connect to database with above configuration. We tried some of the below configuration but that too didn't work. It gives error java.net.sockettimeoutexception receive timed out while connecting to datasource.
Please can anyone help us to resolve this issue. Also can any one confirm are we using right configuration of jndi i/p and port address for connecting datasource configured with jboss.
| | <jee:jndi-lookup id="dataSource" jndi-name="jboss/clrt"> |
| | | <jee:environment> |
| | | java.naming.provider.url=jnp://localhost:4447 |
| | | java.naming.factory.url.pkgs=org.jnp.interfaces:org.jboss.naming |
| | | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory |
| | | </jee:environment> |
| | </jee:jndi-lookup> |
| | <jee:jndi-lookup id="dataSource" jndi-name="jboss/clrt"> |
| | | <jee:environment> |
| | | java.naming.provider.url=jnp://localhost:1099 |
| | | java.naming.factory.url.pkgs=org.jnp.interfaces:org.jboss.naming |
| | | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory |
| | | </jee:environment> |
| | </jee:jndi-lookup> |
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796127#796127]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - Cannot save process in web designer
by Tassya Frigieri
Tassya Frigieri [https://community.jboss.org/people/tassya.frigieri] created the discussion
"Cannot save process in web designer"
To view the discussion, visit: https://community.jboss.org/message/795648#795648
--------------------------------------------------------------
I've created a 4-lane process (only the modelling, no programming) and tried to save it afterwards. At this point I get an error saying "Unable to perform user action due to error(s). Validate your process before saving, and view server logs to see error details."
On the server logs I can see the following error:
12:28:10,849 ERROR [org.jbpm.designer.web.profile.impl.JbpmProfileImpl] (http-localhost-127.0.0.1-8080-26) null: java.lang.NullPointerException
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallSequenceFlow(Bpmn2JsonMarshaller.java:2469) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallFlowElement(Bpmn2JsonMarshaller.java:868) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:480) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:372) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:208) [classes:]
at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:285) [classes:]
at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doPost(UUIDBasedRepositoryServlet.java:148) [classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_09]
I am using JBPM 5.4.0 Final and google Chrome. Is there anything that needs to be done before saving the process?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/795648#795648]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months
[jBPM] - Why JBPM5.4 full installer demo keeps writing Creating RulesRepository in server.log?
by Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"Why JBPM5.4 full installer demo keeps writing Creating RulesRepository in server.log?"
To view the discussion, visit: https://community.jboss.org/message/777946#777946
--------------------------------------------------------------
Hi,
I use jbpm5.4 Full installer, run ant install.demo, then ant start.demo,
I try to open JBPM-console, login as krisv/krisv, get personal task list, logout, and then close my browser.
I observe server.log and every once in a while it makes log entry like this,
19:31:23,079 WARN [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-2) Creating RulesRepository with default username.
19:31:23,079 INFO [stdout] (http-localhost-127.0.0.1-8080-2) =============== session-guest-60
19:31:23,095 INFO [stdout] (http-localhost-127.0.0.1-8080-2) =============== session-guest-60
19:31:33,095 WARN [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-2) Creating RulesRepository with default username.
19:31:33,095 INFO [stdout] (http-localhost-127.0.0.1-8080-2) =============== session-guest-61
19:31:33,111 INFO [stdout] (http-localhost-127.0.0.1-8080-2) =============== session-guest-61
What is that? and who triggers it?
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777946#777946]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 3 months