[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...]
13 years, 6 months
[jBPM] - Human Task View and "Could not connect to task server, refresh first" problem.
by Francisco Barros
Francisco Barros [http://community.jboss.org/people/francisco_barros] created the discussion
"Human Task View and "Could not connect to task server, refresh first" problem."
To view the discussion, visit: http://community.jboss.org/message/590059#590059
--------------------------------------------------------------
Hi all!
I've been trying to reproduce the screencast ( http://people.redhat.com/kverlaen/install-eclipse-jbpm.swf http://people.redhat.com/kverlaen/install-eclipse-jbpm.swf) linked at section "2.4. Using Eclipse Tooling" of "jBPM User Guide". I was stuck at 1:05, when, at the Human Task View, krisv name is entered at UserId and the button Refresh is clicked. I was getting "Could not connect to task server, refresh first" message. I've discovered that what was causing the problem was the installation of JBoss Tools 3.2 (before the installation I was able to reproduce the screencast *). To confirm, I uninstalled just Drools related plugins of JBoss Tools and could, then, reproduce the screencast without errors *.
My environment:
Eclipse Java EE Helios SR1 Win32 (not the default eclipse Java Helios that is configured to be retrieved at build.xml)
jbpm-5.1-SNAPSHOT
JBoss Tools 3.2 (Helios) Final.
* After uninstalling Drools related plugins from JBoss Tools I was *almost* able to identically reproduce the screencast. The only diference is that I can't see the image that represents process ongoing at Process Instance view (1:18).
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/590059#590059]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[Beginner's Corner] - Struggling with injecting singleton in 6.0
by Robin Hughes
Robin Hughes [http://community.jboss.org/people/rhinmass] created the discussion
"Struggling with injecting singleton in 6.0"
To view the discussion, visit: http://community.jboss.org/message/597183#597183
--------------------------------------------------------------
Hello,
I am having trouble figuring out how to inject a singleton into another class - in this case a servlet.
My singleton looks like this:
package com.robin.ejb
import javax.ejb.Singleton;
import javax.ejb.Startup;
@Singleton
@Startup
public class HelloWorld
{
public HelloWorld()
{
System.out.println("constructing HelloWorld");
}
public String sayHello() {
return "Hello World !!!";
}
}
My servlet looks like this:
import ...
import com.robin.ejb.HelloWorld;
@WebServlet(name="helloServlet", urlPatterns={"/hello"},
initParams={ @WebInitParam(name="nameParam", value="world")})
public class HelloServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@Inject
private HelloWorld hw;
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
String nameParam = request.getParameter("nameParam");
if (nameParam == null)
nameParam = getServletConfig().getInitParameter("nameParam");
out.println("hello " + nameParam + " " + hw.sayHello());
out.flush();
out.close();
}
}
When I run this in JBoss AS 6.0.0.Final I get the following errors:
2011-04-01 10:23:43,299 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (Thread-2) Error installing to Start: name=vfs:///C:/jboss/jboss-6.0.0.Final/server/rbh/deploy/myapp-0.0.1.ear_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [HelloWorld] with qualifiers [@Default] at injection point [[field] @Inject private com.robin.webapp.HelloServlet.hw]. Possible dependencies [[Session bean [class com.robin.ejb.HelloWorld with qualifiers [@Any @Default]; local interfaces are [HelloWorld], Session bean [class com.robin.ejb.HelloWorld with qualifiers [@Any @Default]; local interfaces are [HelloWorld]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:139) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:162) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:377) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:363) [:6.0.0.Final]
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:388) [:6.0.0.Final]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597183#597183]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[JBoss Tools] - Re: Adding JBoss AS source to a project
by henk de boer
henk de boer [http://community.jboss.org/people/henk53] created the discussion
"Re: Adding JBoss AS source to a project"
To view the discussion, visit: http://community.jboss.org/message/569958#569958
--------------------------------------------------------------
Just wondering, have the runtime guys ever been convinced of this?
In other words, with JBoss AS 6 and JBoss Tools 3.2, can I attach all source with one click now?
I'm now moving to Eclipse 3.6, which is of course a brand new install and it's really painful to attach all the literally hundreds of jars again that I attached to my old setup over the last year. Since quite often I have to attach the same jar twice (both for the editor and for the debugger), this really adds up.
If I upgrade my installation at work I have to attach the same couple of hundred jars there as well. This is really painful. I'm not sure how others cope with this, or maybe I'm the only nut who wants to have every last bit of source there is available in Eclipse ;)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569958#569958]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months