[JBoss jBPM] - JBPM Connection refused on Mysql
by goodtimzss
I am having problems installing and running "jbpm-starters-kit-3.0.2". Whenever I attempt to execute the run-jbpm.cmd script from the Windows command prompt I get an Error: "org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused: connect " ... (etc)
So far I have successfully completed the follwing:
|
| Install Java 1.5.0_10
|
| Installed Mysql database server my InnoDb Transaction running on port 3307.
|
| Installed the binary_bpmspace-database_1.10 database layer
|
| I have downlaoded and inlcuded mysql-connector-java-5.0.4-bin.jar in the CLASSPATH.
|
|
|
| Need assistance quicly - please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009566#4009566
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009566
18Â years, 9Â months
[JCA/JBoss] - Re: EJB3 - XA datasource - Transactions - XAER_OUTSIDE
by adrianï¼ jboss.org
And do you get XAER_OUTSIDE for the following change?
| final Connection connection = xaConnection.getConnection();
| connection.setAutoCommit(false);
|
What about?
| final Connection connection = xaConnection.getConnection();
| connection.setAutoCommit(false);
| connection.setAutoCommit(true);
|
If so, like I said before <no-tx-seperate-pools/> will fix it
Except for the fact that you are getting the statement before
enlisting the XAResource, this is exactly the code that JBoss is executing.
Move the XAResource.start() to before the createStatement() to check it exactly,
I doubt it will make a difference?
For anything further, you need to provide logs, see the post at the top of forum.
You still need to ask IBM what the XAER_OUTSIDE means exactly,
you can't expect us to keep guessing test code that might reproduce.
There aren't enough hours in the day. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009562#4009562
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009562
18Â years, 9Â months
[JBossWS] - Re: JBossWS 1.2.0CR2 with JEMS 1.2 (and JBoss 4.0.5) fails
by Juergen.Zimmermann
So far the classpath issues are solved. Now I get this stacktrace:
2007-02-01 17:50:16,266 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 42s:842ms
| 2007-02-01 17:50:34,873 DEBUG [org.jboss.ws.core.server.AbstractServiceEndpointServlet] doPost: /hska/KundenverwaltungService
| 2007-02-01 17:50:34,883 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@18c3efb (Thread http-0.0.0.0-8080-1)
| 2007-02-01 17:50:34,883 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:context=hska/KundenverwaltungService,endpoint=KundenverwaltungService
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [authorization=Basic Mjoy]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [soapaction=]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [content-type=text/xml; charset="utf-8"]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [accept=text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [user-agent=Java/1.5.0_10]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [host=localhost:8080]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [connection=keep-alive]
| 2007-02-01 17:50:34,883 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] [content-length=202]
| 2007-02-01 17:50:34,903 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8]
| 2007-02-01 17:50:34,903 TRACE [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage
| <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:findNachname xmlns:ns2="http://ws.hska.de"><long_1>71</long_1></ns2:findNachname></S:Body></S:Envelope>
| 2007-02-01 17:50:34,933 DEBUG [javax.xml.soap.MessageFactory] Load from Service API META-INF/services/javax.xml.soap.SOAPFactory: org.jboss.ws.core.soap.SOAPFactoryImpl
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.utils.DOMUtils] createElement {http://schemas.xmlsoap.org/soap/envelope/}S:Envelope
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] new SOAPElementImpl: {http://schemas.xmlsoap.org/soap/envelope/}Envelope
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] new SOAPElementImpl: {http://schemas.xmlsoap.org/soap/envelope/}Envelope
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] addNamespaceDeclaration: xmlns:S='http://schemas.xmlsoap.org/soap/envelope/'
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.utils.DOMUtils] createElement {http://schemas.xmlsoap.org/soap/envelope/}S:Header
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] new SOAPElementImpl: {http://schemas.xmlsoap.org/soap/envelope/}Header
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] addChildElement: {http://schemas.xmlsoap.org/soap/envelope/}Envelope -> {http://schemas.xmlsoap.org/soap/envelope/}Header
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.utils.DOMUtils] createElement {http://schemas.xmlsoap.org/soap/envelope/}S:Body
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] new SOAPElementImpl: {http://schemas.xmlsoap.org/soap/envelope/}Body
| 2007-02-01 17:50:34,933 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] addChildElement: {http://schemas.xmlsoap.org/soap/envelope/}Envelope -> {http://schemas.xmlsoap.org/soap/envelope/}Body
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.utils.DOMUtils] createElement {http://ws.hska.de}ns2:findNachname
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] new SOAPElementImpl: {http://ws.hska.de}findNachname
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPBodyImpl] addChildElement: {http://ws.hska.de}findNachname
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] addChildElement: {http://schemas.xmlsoap.org/soap/envelope/}Body -> {http://ws.hska.de}findNachname
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPBodyImpl] appendChild: ns2:findNachname
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] addNamespaceDeclaration: xmlns:ns2='http://ws.hska.de'
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.utils.DOMUtils] createElement {}long_1
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] new SOAPElementImpl: long_1
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] addChildElement: {http://ws.hska.de}findNachname -> long_1
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.utils.DOMUtils] Ignore attribute: [uri=null,qname=xmlns,value=]
| 2007-02-01 17:50:34,943 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] setXMLFragment: <long_1 xmlns=''>71</long_1>
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] removeContentsAsIs
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPElementImpl] removeContents
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] getChildElements
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] getChildNodes
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] resetElementContent
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] invalidateDOMContent
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] invalidateObjectContent
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] invalidateXMLContent
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] invalidateDOMContent
| 2007-02-01 17:50:34,943 TRACE [org.jboss.ws.core.soap.SOAPContentElement] invalidateObjectContent
| 2007-02-01 17:50:34,943 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: PRE
| 2007-02-01 17:50:34,943 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE
| 2007-02-01 17:50:34,943 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT
| 2007-02-01 17:50:34,943 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST
| 2007-02-01 17:50:34,943 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [service={http://ws.hska.de}KundenverwaltungService,port={http://ws.hska.d...]
| 2007-02-01 17:50:34,953 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: []
| 2007-02-01 17:50:34,953 TRACE [org.jboss.ws.core.soap.SOAPBodyImpl] getChildElements
| 2007-02-01 17:50:34,953 TRACE [org.jboss.ws.core.soap.SOAPBodyImpl] getChildNodes
| 2007-02-01 17:50:34,953 DEBUG [org.jboss.ws.core.soap.SOAPMessageDispatcher] getDispatchDestination: {http://ws.hska.de}findNachname
| 2007-02-01 17:50:34,953 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindRequestMessage: {http://ws.hska.de}findNachname
| 2007-02-01 17:50:34,953 TRACE [org.jboss.ws.core.soap.SOAPBodyImpl] getChildElements
| 2007-02-01 17:50:34,953 TRACE [org.jboss.ws.core.soap.SOAPBodyImpl] getChildNodes
| 2007-02-01 17:50:34,963 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
| org.jboss.ws.WSException: Cannot find child element: arg0
| at org.jboss.ws.core.CommonSOAPBinding.getParameterFromMessage(CommonSOAPBinding.java:749)
| at org.jboss.ws.core.CommonSOAPBinding.unbindRequestMessage(CommonSOAPBinding.java:265)
| at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:147)
| at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:203)
| at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:383)
| at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009561#4009561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009561
18Â years, 9Â months
[JBoss AOP] - Re: How do I access security info in a Interceport class?
by flavia.rainoneï¼ jboss.com
Hi!
The currentDomain static variable is set by the execution of AuthenticationInterceptor. This interceptor is created byAuthenticationInterceptorFactory on this piece of code:
| SecurityDomain domain = (SecurityDomain) advisor.resolveAnnotation(SecurityDomain.class);
| if (domain == null) throw new RuntimeException("Unable to determine security domain");
| try
| {
| manager = (AuthenticationManager) new InitialContext().lookup("java:/jaas/" + domain.value());
| }
| catch (NamingException e)
| {
| throw new RuntimeException(e);
| }
| ...
| return new AuthenticationInterceptor(manager);
|
This interceptor is bound to the following pointcuts:
| "all(@security)"
| "all((a)org.jboss.aspects.security.Permissions)"
| "all((a)org.jboss.aspects.security.Unchecked)"
| "all((a)org.jboss.aspects.security.Exclude)"
|
Please, verify whether your @all((a)ydxt.ejb.aop.FydSecurity) joinpoints are matched by one or more of the pointcuts above. If yes, it should be working, since AuthenticationManager should be executed on the same joinpoints as "MyInteceptor".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009557#4009557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009557
18Â years, 9Â months
[EJB 3.0] - Re: Query
by andydale
Hi,
The are a few ways that the multiple bag exception can be avoided.
You mentioned using a Set instead, this would solve the problem but it has the restriction that it can only contain distinct values so you need to consider if they will work for you.
Another solution would be to use Lists, but i would personally never do this as i have experienced lots of problems (like them missing out the join table they create in queries) with Bi-Directional indexed relationships (using a list to map a oneToMany)
The thrid solution could be to keep using collections, but also annotate with @CollectionId, i have not used this yet, but i reckon it could also run into problems with bi-directional relationships.
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009555#4009555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009555
18Â years, 9Â months