[jBPM] - jBPM Ejb dependency Problem
by Pushpak D
Pushpak D [http://community.jboss.org/people/pushpak1981] created the discussion
"jBPM Ejb dependency Problem"
To view the discussion, visit: http://community.jboss.org/message/600854#600854
--------------------------------------------------------------
Hi All,
We are facing some issue with the jBPM shutdown and startup. We have installed jBPM 4.4 into jBoss 5.1 server.
Along with jBPM we have our custom ear application which has ejb deployed into jboss. While spawing the jBPM processes
we did a lookup for Process Engine from JNDI and started the business process into out application ear.
Our jBPM processes (jpdl) are configured such that they use the EJB's which are deployed into our application (ear).
Business processes are running properly when the server is running. But suppose if some Java activity is running and we shutdown the
server (shutdown.bat) there is no clean shutdown it current executing processes throws and Ejb not bound exception. This is because
the ejb's deployed into our ear applications are unloaded first even before the current running processes are stopped.
Is there any way in which we can add a dependency into ejb / jbpm not to unload the ejb till the jbpm service is down?
The same thing is happening during startup the jbpm application loads are starts the job executor looking for pending jobs and if pending jobs are found then it starts executing the process and throws abc not bound. This is because still our ear and ejb are are not loaded.
There are 2 application in jboss deploy:
1. jbpm
2. abc.ear (this contains our ejb's)
Please Help!!!
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600854#600854]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 12 months
[JBoss Web Services] - cannot be cast to javax.servlet.Servlet
by PRAVEEN KONDAKA
PRAVEEN KONDAKA [http://community.jboss.org/people/pkondaka1] created the discussion
"cannot be cast to javax.servlet.Servlet"
To view the discussion, visit: http://community.jboss.org/message/600386#600386
--------------------------------------------------------------
Hello Folks,
This might be a duplicate post, but honestly i couldn't find any solutions to this. please help me.
I am trying to expose my POJO as web service using maven. I have _logic.jar, _war.war and _logic jar is available in WEB-INF/lib/_logic.jar
Have a POJO based on javax.jws.* and have simple method
@WebMethod
public String sayHello(String name)
{
return "Hi " + name + " from the New York.";
}
<servlet>
<display-name>Hello Web Service</display-name>
<servlet-name>HelloService</servlet-name>
<servlet-class>xxx.xxxx.xxxx.xxxx.Hello</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>HelloService</servlet-name>
<url-pattern>/HelloService</url-pattern>
</servlet-mapping>
.
I am getting following error while deploying
*+java.lang.ClassCastException: mil.oni.gdb.webservice.Hello cannot be cast to javax.servlet.Servlet+*
**
Do i need to add/edit any other files like jboss-web.xml or any other configuration file missing? I was googling for long time, but couldn't find any solution.
PLEASE HELP ME
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600386#600386]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 12 months
[jBPM] - Issue with Deploying jBPM-BPEL example processes: deployment throws errors on the jBoss server
by Vishnu Kammari
Vishnu Kammari [http://community.jboss.org/people/kvishnu13] created the discussion
"Issue with Deploying jBPM-BPEL example processes: deployment throws errors on the jBoss server"
To view the discussion, visit: http://community.jboss.org/message/598033#598033
--------------------------------------------------------------
Hey guys,
I deployed jBPM-BPEL 1.1.1 on jBoss AS 4.2.3. I followed thedirections in the jBPM-BPEL documentation and created a schema using *ant create.schema*. Everything ran smoothly till that point. But when I try todeploy the *Hello* jBPM-BPEL example into the jBoss server using *ant deploy.process* in the Hello directory, the server is throwing errors.
*Does anyone know what the errors might mean, and how I could fixthem? Do the errors have anything to do with wstools?*
*VERSION DETAILS*
*OS:* Mac OS X
jBPM-BPEL 1.1.1
jBoss AS 4.2.3
*DETAILS*
When I run *ant deploy.process*, this is the output of thecommand:
>
> >> ant deploy.process
> Buildfile: /Users/vishnu/Documents/BPEL/jbpm-bpel-1.1.1/examples/hello/build.xml
>
>
> package.process:
>
>
> deploy.process:
> [deployprocess] deploying process: hello.zip
> [deployprocess] *operation failed: Internal Server Error*
>
>
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
The terminal in which the server is running throws the followingerrors:
>
> 17:01:33,288 *ERROR* [WscompileTool] error: modeler error:failed to parse document at"/var/folders/Cn/Cnbv-7YWHU0gnLBnUrxxoE+++TI/-Tmp-/hello2414886834268474673.war/wsdl/hello-service.wsdl":java.io.FileNotFoundException:/var/folders/Cn/Cnbv-7YWHU0gnLBnUrxxoE TI/-Tmp-/hello2414886834268474673.war/wsdl/hello-service.wsdl
> 17:01:33,290 *ERROR* [ProblemHandler] java mappinggeneration failed
> 17:01:33,291 INFO [WebModuleBuilder] packaged web module:hello.war
> 17:01:33,293 *ERROR* [[deploymentServlet]]Servlet.service() for servlet deploymentServlet threw exception
> org.jbpm.bpel.BpelException: could not build web module for:BpelProcessDefinition(HelloWorld)
> atorg.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:223)
> atorg.jbpm.bpel.web.DeploymentServlet.deployProcessDefinition(DeploymentServlet.java:199)
> atorg.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:111)
> atjavax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> atjavax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
> atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> atorg.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> atjava.lang.Thread.run(Thread.java:680)
>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598033#598033]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 12 months
[EJB3] - @Asynchronous invocation retain session context
by Nacho Estrada
Nacho Estrada [http://community.jboss.org/people/putopuntocom] created the discussion
"@Asynchronous invocation retain session context"
To view the discussion, visit: http://community.jboss.org/message/600639#600639
--------------------------------------------------------------
Hello,
I have this situation. A client is invoking several asynchronous stateless session bean methods returning a AsyncResult.
The client wait for 30 secs for a response and after this calls cancel method of the Future object.
Ok cancel it's not woking. It doen't matter becouse i don't mind about cancelling the executions of the asynchronous methods.
The problem is that the container keeps the reference to all the SessionBeans that haven't been consumed calling Future.get() causing some out of memory problems after some hours.
What i should do to avoid this? I'm planning to wait in another thread after 30 secs to the rest of the results.
Is there any way of specifing a Timeout to Asynchronous methods?
Thanks in advance,
Nacho.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600639#600639]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 12 months