[JBoss Web Services] - specify handlerchain.xml outside of jar
by Matt Wringe
Matt Wringe [http://community.jboss.org/people/mwringe] created the discussion
"specify handlerchain.xml outside of jar"
To view the discussion, visit: http://community.jboss.org/message/586783#586783
--------------------------------------------------------------
Is there anyway to specify the handlerchain.xml file out of the jar which contain the interface classes?
I have an interface class within the WEB-INF/classes folder of my war. If I place a handlerchain xml file within the classes folder and specify it with the @HandlerChain(file="../../handlerchain.xml") then it gets picked up. But if I place it within the WEB-INF/conf directory, then I can't access it (file="../../../WEB-INF/conf/handlerchain.xml" will result in an index out of bounds error). Using JBoss 5.1.0.GA
Since I don't know what the exact absolute file path where this is going to potentially be deployed, I don't believe I can use file="file://..."
Is there some other way I can specify the handlerchain.xml file outside of the annotations? I would ideally like to have this configuration file located in an ear somewhere and not within a jar or war.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586783#586783]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - error deploying process archive
by erik yap
erik yap [http://community.jboss.org/people/erikcute] created the discussion
"error deploying process archive"
To view the discussion, visit: http://community.jboss.org/message/586750#586750
--------------------------------------------------------------
I'm having problems deploying a process archive, already selected the deployment package as well as the classes but still the same error occurs. i'm trying to create a par file for openKM. please help. thanks.
below is the error log:
Message: Plug-in
Exception happened while deploying org.jbpm.gd.jpdl
Exception stack trace:
java.lang.NullPointerException
at org.jbpm.gd.jpdl.util.ProcessDeployer.addClassOrResource(Unknown Source)
at org.jbpm.gd.jpdl.util.ProcessDeployer.addClassesAndResources(Unknown Source)
at org.jbpm.gd.jpdl.util.ProcessDeployer.createParBytes(Unknown Source)
at org.jbpm.gd.jpdl.util.ProcessDeployer.access$1(Unknown Source)
at org.jbpm.gd.jpdl.util.ProcessDeployer$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.jbpm.gd.jpdl.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
at org.jbpm.gd.jpdl.util.ProcessDeployer.deploy(Unknown Source)
at org.jbpm.gd.jpdl.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586750#586750]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[JBoss Web Services] - Unable to deploy a simple web service with WebServiceProvider annotation
by raits
raits [http://community.jboss.org/people/raits] created the discussion
"Unable to deploy a simple web service with WebServiceProvider annotation"
To view the discussion, visit: http://community.jboss.org/message/585470#585470
--------------------------------------------------------------
Hello, I'm trying to build a simple web service using javax.xml.ws.WebServiceProvider. The code compiles fine and no errors are reported while deploying in JBoss but when I try to load the wsdl I get an error message stating the class isn't a servlet.
The code for the provider itself:
package org.raits;
import java.io.StringWriter;
import javax.servlet.http.HttpServlet;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.ws.Provider;
import javax.xml.ws.ServiceMode;
import javax.xml.ws.WebServiceProvider;
@WebServiceProvider(wsdlLocation = "WEB-INF/Test.wsdl")
@ServiceMode(value=javax.xml.ws.Service.Mode.MESSAGE)
public class TestService implements Provider<Source>{
@Override
public Source invoke(Source request) {
try{
StringWriter requestXmlWriter = new StringWriter();
Transformer trans = TransformerFactory.newInstance().newTransformer();
trans.transform(request, new StreamResult(requestXmlWriter));
System.out.println(requestXmlWriter.toString());
}catch(Exception e){
e.printStackTrace();
}
return null;
}
}
And I'm mapping it my web.xml file as follows:
<servlet>
<servlet-name>TestService</servlet-name>
<servlet-class>
org.raits.TestService
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestService</servlet-name>
<url-pattern>/TestService/*</url-pattern>
</servlet-mapping>
I'm also using a fairly old JBoss build (Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)), which I can't upgrade due to the rest of the system tied into it. A regular @WebService worked just fine using this method, am I missing something in the setup?
Any help would be greatly appreciated.
Thank you in advance
Raits
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585470#585470]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - jBPM in cooperation with an existing CRM system
by hans lux
hans lux [http://community.jboss.org/people/hlux] created the discussion
"jBPM in cooperation with an existing CRM system"
To view the discussion, visit: http://community.jboss.org/message/586657#586657
--------------------------------------------------------------
Hello,
Introduction
Our company is using a kind of CRM (tomcat,struts,ojb) where about 50 users work with about 2500 customer accounts.
Many of the working steps are repetitive. A self programmed sort of calendar is used to remind the crm user of the work to do.
A few days ago the CEO called in for a meeting. The subject was "a new calendar for the crm system".
This job of the new calendar is to
-enable the measurement of time consumption of certain units of work
-support the crm user to do all necessary units of work
-share calendar events between crm-user
...
after a few minutes and some questions, it seemed to me that we are not in need of a new calendar, but a business process management system.
Research
I started doing some research on the topic. I know fairly few things about BPM and haven't used any framework or system so far.
After a while jBPM seemd to be what i was looking for. I read the documentation and installed the demo.
>From what I've seen and understood jBPM will provide the framework and tools to define business processes in various ways.
Allow monitoring, measuring and reporting of the processes and all the tasks within a process. It also has a focus on human tasks,
which would find heavy use in our company's business processes.
Problem
At this moment I don't have a clear picture of how to bring the two systems together (CRM+jBPM).
The idea behind BPM is to "force" the working entities to stick to a workflow and preform the required tasks.
At the moment all the tasks are done within the CRM. But the start, progress and completion of the tasks needs to be
controlled by the BPM-System now.
Question
In case we had business processes in a knwoledge base and reported the various events in the CRM to the BPM-system:
-what if the BPM system isn't available for some reason and a completed task couldn't be reported?
-should the processes be linked to the crm users or rather to the accounts?
Does anybody of you have some exprience with this kind of "system-integration/cooperation" ?
Or can you point me out to some helpful reading about this?
thank you very much.
greetings
hlux
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586657#586657]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months