[Beginner's Corner] - JNDI name for xa datasource not found in JBoss-6.0.0.20100429-M3
by Jan Mortensen
Jan Mortensen [https://community.jboss.org/people/mortl] created the discussion
"JNDI name for xa datasource not found in JBoss-6.0.0.20100429-M3"
To view the discussion, visit: https://community.jboss.org/message/755385#755385
--------------------------------------------------------------
Hi,
I want to configure a XA Datasource for a Derby database in a JBoss-6.0.0.20100429-M3 server. I have used the Web Admin Interface to create the atached file "jdbc-ds.xml". The datasource is successfully bound to "java:jdbc/__default". Here is the first think which confuses me. I set the JNDI name to "jdbc/__default" but the console says that the datasource is bound to my JNDI name prefixed with "java:". Can I lookup the datasource by the name "java:jdbc/__default" or "jdbc/__default"? What is the reason for the prefix?
Then I want to access the datasource inside of a bean, deployed on the server, with the following code:
[code]
private static final String JNDI_NAME_XA = "jdbc/__default";
@Resource(name = JNDI_NAME_XA)
private DataSource _ds_xa;
[/code]
When the server trys to deploy the bean, the console output says "mapped-name is required for jdbc/__default of deployment PlainDataSourceTestBean" and the bean is not deployed. I also tryed the JNDI name "java:jdbc/__default" with the same result, although a few lines above the console output says "Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/__default' to JNDI name 'java:jdbc/__default'".
Which JNDI name do i really have to use, and do I have do do some more configuration?
Regards,
Jan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755385#755385]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[jBPM] - Re: Problem in deploying Process from guvnor to JBPM Console
by Guido Zerbinati
Guido Zerbinati [https://community.jboss.org/people/gzer] created the discussion
"Re: Problem in deploying Process from guvnor to JBPM Console"
To view the discussion, visit: https://community.jboss.org/message/736831#736831
--------------------------------------------------------------
Yes, I've seen. I've downloaded (hopefully ;-)) all the newest release (JBPM, Guvnor, etc) and the newest jbpmistaller project from GITHUB; found all the libraries and reinstall everything. Now jpbm console is version 2.3.2 SNAPSHOT, Drools is 5.4 and so on... Seems that all is working well... designing flows on guvnor and packaging them make them appears on jbpm console... Have to say that it'has been a a little too much difficult but I think I'm getting through it. So by now I can start seeing JBPM in action. By the way if someone wants the full ZIP package to install the demo with the latest version of all this stuff I can provide it (it's huge so you have to give me some kind of FTP access or so on)...
Thanks for support... Hope that now I can start doing more interesting questions..... ;-)!!!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/736831#736831]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[Datasource Configuration] - Exception when creating new XA Datasource resource with Web Admin
by Jan Mortensen
Jan Mortensen [https://community.jboss.org/people/mortl] created the discussion
"Exception when creating new XA Datasource resource with Web Admin"
To view the discussion, visit: https://community.jboss.org/message/755325#755325
--------------------------------------------------------------
Hi,
I am using jboss-6.0.0.20100429-M3. I want to a new XA Datasource for Derby. First I have written the file by hand and added to the deploy folder of JBoss. I have read some documentation and came up the file attached to this article. Due an parse exception occurs while deploying the file I wanted to use the Web Admin to create the file. So I opened the Web Admin switched to the XA Datasources and clicked "Add new resource". I used the "default (XA Datasource)" template. But when I now enter the information and click "Save" the exception at the end of this question occurs.
The only required fields are "JNDI name" and "XA DataSource Class". With both were filled out.
Has someone an idea what is wrong with the "jdbc-ds.xml" file or why I can not create the file with the Web Admin?
Best regards,
Jan
*javax.servlet.ServletException: org/richfaces/validator/NullValueValidator*
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.jboss.on.embedded.LazyStartupFilter.doFilter(LazyStartupFilter.java:87)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:293)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755325#755325]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months