• Mail Configuration

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #13539  by abin
 
Dear Sir,

I have Debian Squeeze Server installed with OpenKm 5.1.8_2.

I am trying Mail Configuration and have edited file "$ vi $JBOSS_HOME/server/default/deploy/mail-service.xml" with the required changes under JBoss mail configuration.

Next Step JBPM configuration but I can not find a file if I give command

vi $JBOSS_HOME/server/default/deploy/OpenKM.war/WEB-INF/classes/jbpm.cfg.xml

Do I need to Build JBPM or just edit jbpm.cfg.xml file

please help me

Thanks

Abin
 #13552  by pavila
 
Starting with OpenKM 5.1.8 you can also configure jBPM creating a file $JBOSS_HOME/jbpm.xml
 #13575  by abin
 
Dear Sir,

Thank you for your reply.

As advised, I have created a file $JBOSS_HOME/jbpm.xml

vi /opt/jboss-4.2.3.GA/jbpm.xml

and have added following to a new file
Code: Select all
<string name="jbpm.mail.smtp.host" value="with my smtp settings " />
<string name="jbpm.mail.from.address" value="noreply@mydomain.com" />
<string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
<bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.OKMAddressResolver" singleton="true"/>
Then restarted Jboss

when I login http://mydomain.com/OpenKM, I get the following error;

The system has generated an error
Code: Select all
OKM-015006(findUserTaskInstances) : OKM - 015006
couldn't parse xml

OKM - 015006(findPooledTaskInstance): OKM-015006
couldn't parse xml
But I get the above message window away if I refresh my browser.

Further, Please note I do get a notification by email with or without adding/creating jbpm.xml

From terminal tail -f /opt/jboss-4.2.3.GA/server/default/log/server.log, I get a long list of DEBUG messages

And WARNINGS in server log is as under;
Code: Select all
2012-01-19 16:49:51,308 ERROR [STDERR] [Fatal Error] :3:2: The markup in the document following the root element must be well-formed.
2012-01-19 16:49:51,334 ERROR [com.openkm.servlet.frontend.WorkflowServlet] couldn't parse xml
        at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:85)
        at org.jbpm.configuration.ObjectFactoryParser.parseElementsStream(ObjectFactoryParser.java:109)
        at org.jbpm.JbpmConfiguration.parseObjectFactory(JbpmConfiguration.java:355)
        at org.jbpm.JbpmConfiguration.parseInputStream(JbpmConfiguration.java:408)
        at com.openkm.util.JBPMUtils.getConfig(JBPMUtils.java:50)
        at com.openkm.module.direct.DirectWorkflowModule.findUserTaskInstances(DirectWorkflowModule.java:753)
        at com.openkm.api.OKMWorkflow.findUserTaskInstances(OKMWorkflow.java:235)
        at com.openkm.servlet.frontend.WorkflowServlet.findUserTaskInstances(WorkflowServlet.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        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:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
        at org.jbpm.util.XmlUtil.parseXmlInputStream(XmlUtil.java:83)
        ... 36 more
Please advice, where is the problem

Thanks & regards,

Abin
 #13600  by pavila
 
The XML is bad formed. Should be something like this:
Code: Select all
<jbpm-configuration>
  <string name="jbpm.mail.smtp.host" value="smtp.your-domain.com " />
  <string name="jbpm.mail.from.address" value="noreply@your-domain.com" />
  <string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
  <bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.OKMAddressResolver" singleton="true"/>
</jbpm-configuration>
 #13604  by abin
 
Dear Sir,

Thank you very much for your advice.

regards,

Abin

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.