[jBPM] - Re: How to fix: "The chosen transaction strategy requires access to the JTA TransactionManager" issue?
by James Williams
James Williams [http://community.jboss.org/people/williajd] created the discussion
"Re: How to fix: "The chosen transaction strategy requires access to the JTA TransactionManager" issue?"
To view the discussion, visit: http://community.jboss.org/message/614984#614984
--------------------------------------------------------------
Here is my persistence.xml content.
<persistence-unit name="org.jbpm.persistence.jpa" >
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/processInstanceDS</jta-data-source>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Delegation</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Group</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.EmailNotification</class>
<class>org.jbpm.task.EmailNotificationHeader</class>
<class>org.jbpm.task.PeopleAssignments</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Status</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.TaskData</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
<class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
<class>org.jbpm.task.User</class>
<properties>
<property name="hibernate.dialect" value="${hibernate.dialect}" />
<property name="hibernate.max_fetch_depth" value="3" />
<property name="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}" />
<property name="hibernate.show_sql" value="${hibernate.show_sql}" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup" />
</properties>
</persistence-unit>
Note the <provider>org.hibernate.ejb.HibernatePersistence</provider>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/614984#614984]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - couldn't parse process definition
by Cristóvão Neto
Cristóvão Neto [http://community.jboss.org/people/netocris] created the document:
"couldn't parse process definition"
To view the document, visit: http://community.jboss.org/docs/DOC-17031
--------------------------------------------------------------
Hi,
I have a problem with the deploy process definition functinality with jBPM API.
I need to deploy a process definition programmatically to jBPM.
I have the next code:
1. The string file points to webapp classpath (web/WEB-INF/classes/...)
String file = "jbpm/testews/testews.jpdl.xml";
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(file);
2. The string path point to absolut file path (ex: C:\test\jbpm\testews/testews.jpdl.xml)
String path = FileManagerFactory.getDefaultEngine().getFolder();
File f1 = new File(path + "testews.jpdl.xml");
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(f1);
1. works fine
2. don't work
When i try the 2nd option ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(f1) throws the following exception:
IPDMS[2011-07-13 16:49:57] ERROR (JpdlXmlReader.java:167) couldn't parse process definition
org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:58)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:141)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:180)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:161)
at com.sinfic.ipdms.tramitacao.jbpm.service.JbpmService.deployProcessDefinition(JbpmService.java:78)
at com.sinfic.ipdms.tramitacao.jbpm.WorkflowWrapper.deployProcessWorkflow(WorkflowWrapper.java:306)
at com.sinfic.ipdms.services.entity.impl.ProcessoCRUDService.deployProcessIntoWorkflow(ProcessoCRUDService.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
at $Proxy13.deployProcessIntoWorkflow(Unknown Source)
at com.sinfic.ipdms.webservices.entity.ProcessoWS.create(ProcessoWS.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sinfic.ipdms.integration.struts.filter.StrutsTransactionFilter.doFilter(StrutsTransactionFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Nested exception:
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:58)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:141)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:180)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:161)
at com.sinfic.ipdms.tramitacao.jbpm.service.JbpmService.deployProcessDefinition(JbpmService.java:78)
at com.sinfic.ipdms.tramitacao.jbpm.WorkflowWrapper.deployProcessWorkflow(WorkflowWrapper.java:306)
at com.sinfic.ipdms.services.entity.impl.ProcessoCRUDService.deployProcessIntoWorkflow(ProcessoCRUDService.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
at $Proxy13.deployProcessIntoWorkflow(Unknown Source)
at com.sinfic.ipdms.webservices.entity.ProcessoWS.create(ProcessoWS.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sinfic.ipdms.integration.struts.filter.StrutsTransactionFilter.doFilter(StrutsTransactionFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Why?
I'm using jbpm 3.2.2 and dom4j jar files in the webapp libs.
The jBPM API have any issue with the absolute paths?
The ProcessDefinition.parseXmlResource only works with path that are in accessible with classpath?
sorry my poor english,
thanks in advance
Cristóvão Neto
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-17031]
Create a new document in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 9 months
[JBoss Messaging] - StackOverflowError while deleting Expired MSG
by Markus Lutum
Markus Lutum [http://community.jboss.org/people/mclu] created the discussion
"StackOverflowError while deleting Expired MSG"
To view the discussion, visit: http://community.jboss.org/message/614879#614879
--------------------------------------------------------------
Hi out there.
We have issues with a client which uses JBM.
We get a StackOverflowError while the server is restarted.
I think this has somethink to do with deleting of Expired Messages if there is no expiry queue...
Environment:
Oracle, JBoss 4.2.3 with JBM 1.4.5 on a solaris system. see below..
12:28:47,521 INFO [APP.DbManager] Database Product Name= Oracle
12:28:47,521 INFO [APP.DbManager] Database Product Version= Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining Scoring Engine and Real Application Testing options
12:28:47,521 INFO [APP.DbManager] JDBC Driver Name= Oracle JDBC driver
12:28:47,521 INFO [APP.DbManager] JDBC Driver Version= 11.1.0.6.0-Production+
12:28:47,521 INFO [APP.DbManager] JDBC Driver supports batch updates
12:28:47,960 INFO [org.jboss.jms.server.ServerPeer] JBoss Messaging 1.4.5.GA server [1] started
12:28:48,504 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] Connector sslbisocket://OURSYSTEMURL:4457 has leasing enabled, lease period 10000 milliseconds
12:28:48,504 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@14fe17 started
....
Then a lot of msg are removed:
....
12:29:35,506 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380028172599583]:RELIABLE
12:29:35,568 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380028172763424]:RELIABLE
12:29:35,582 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380028172960033]:RELIABLE
12:29:35,594 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380028173091106]:RELIABLE
12:29:35,608 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380028173287715]:RELIABLE
12:29:35,616 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380028173451556]:RELIABLE
.... cuttet some ....
12:29:36,825 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380909924778400]:RELIABLE
12:29:36,834 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380911717908897]:RELIABLE
12:29:36,843 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380912000729506]:RELIABLE *<<<<------------------ this one is mentioned below*
12:29:36,854 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380914197332387]:RELIABLE
12:29:36,864 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380914815435172]:RELIABLE
12:29:36,876 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380915428000165]:RELIABLE
12:29:36,885 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380998091964838]:RELIABLE
12:29:36,894 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23380998143345063]:RELIABLE
12:29:36,902 WARN [org.jboss.jms.server.endpoint.ServerSessionEndpoint] No expiry queue has been configured so removing expired Reference[23381029873287592]:RELIABLE
12:29:36,916 ERROR [org.jboss.messaging.core.impl.RoundRobinDistributor] The receiver ConsumerEndpoint[w1-1eje52qg-1-av4d52qg-nuauxy-vv5n4e4] is broken
12:29:36,917 ERROR [org.jboss.messaging.core.impl.ChannelSupport] Queue[12748390/1/2-notifications_mediumretry] Failed to deliver
12:29:36,918 ERROR [org.jboss.jms.server.endpoint.ServerConsumerEndpoint] Failed to expire delivery: Delivery[Reference[23380912000729506]:RELIABLE]
java.lang.StackOverflowError
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:58)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:358)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.log(Category.java:853)
at org.jboss.logging.Log4jLoggerPlugin.error(Log4jLoggerPlugin.java:206)
at org.jboss.logging.Logger.error(Logger.java:234)
at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:747)
at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:506)
at org.jboss.messaging.core.impl.ChannelSupport.acknowledgeInternal(ChannelSupport.java:844)
at org.jboss.messaging.core.impl.ChannelSupport.acknowledge(ChannelSupport.java:290)
at org.jboss.messaging.core.impl.SimpleDelivery.acknowledge(SimpleDelivery.java:103)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.expireDelivery(ServerSessionEndpoint.java:1109)
at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:236)
at org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
at org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:583)
at org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:665)
at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:506)
at org.jboss.messaging.core.impl.ChannelSupport.acknowledgeInternal(ChannelSupport.java:844)
at org.jboss.messaging.core.impl.ChannelSupport.acknowledge(ChannelSupport.java:290)
at org.jboss.messaging.core.impl.SimpleDelivery.acknowledge(SimpleDelivery.java:103)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.expireDelivery(ServerSessionEndpoint.java:1109)
at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:236)
at org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
at org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:583)
at org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:665)
at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:506)
at org.jboss.messaging.core.impl.ChannelSupport.acknowledgeInternal(ChannelSupport.java:844)
at org.jboss.messaging.core.impl.ChannelSupport.acknowledge(ChannelSupport.java:290)
at org.jboss.messaging.core.impl.SimpleDelivery.acknowledge(SimpleDelivery.java:103)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.expireDelivery(ServerSessionEndpoint.java:1109)
....
Any Idea what we can do about it?
Does it help to configure an expiry queue?
Is this a known issue?
Greets
Markus Lutum
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/614879#614879]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Web Services] - JBoss6 webservice read timeout
by Oliver Specht
Oliver Specht [http://community.jboss.org/people/oliverspecht] created the discussion
"JBoss6 webservice read timeout"
To view the discussion, visit: http://community.jboss.org/message/607864#607864
--------------------------------------------------------------
Hi,
I tried to change the read timeout for my Webservice deployed on a JBoss6.
I tried the following options which I found over the internet :)
| | ((BindingProvider) services).getRequestContext().put("org.jboss.ws.timeout", 10000); |
| | ((BindingProvider) services).getRequestContext().put("javax.xml.ws.connect.timeout", 10000); |
| | ((BindingProvider) services).getRequestContext().put("javax.xml.ws.connect.timeout", 10000); |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.ws.request.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.ws.connect.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.internal.ws.request.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.internal.ws.connect.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, 10000); |
| | ((BindingProvider) services).getRequestContext().put(StubExt.PROPERTY_CONNECTION_TIMEOUT, 10000); |
None of them worked. Can anyone help me? This is very, very confusing.
My Webservice was created from a WSDL via JAX and looks like this:
/**
* SOAP-Service.
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated source version: 2.1
*/
@WebServiceClient(name = "<NAME>", targetNamespace = "<TARGET_NS>")
public class SmartWheelsService extends Service {
...
}
Thanks,
Oliver
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607864#607864]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months