[jBPM] - Cannot instantiate abstract class or interface
by dearest555
dearest555 [http://community.jboss.org/people/dearest555] created the discussion
"Cannot instantiate abstract class or interface"
To view the discussion, visit: http://community.jboss.org/message/640479#640479
--------------------------------------------------------------
Hi,
I 'm newbie in JBPM. I try to do assign handler but I got an error message.
Caused by: org.hibernate.InstantiationException
Cannot instantiate abstract class or interface: com.mmm.workflow.bom.Document
-file : process.jpdl.xml
package com.dear.workflow.task.assigment;
import org.apache.commons.lang.StringUtils;
import org.jbpm.api.model.OpenExecution;
import org.jbpm.api.task.Assignable;
import com.dear.common.bom.Employee;
import com.dear.workflow.bom.Document;
import com.trg.search.Search;
public class AssignByOrganization extends AssignmentBase {
public static String ORGANIZATION_TYPE_SUPERVISOR = "supervisor";
public static String ORGANIZATION_TYPE_DIVMGR = "divmgr";
public static String ORGANIZATION_TYPE_DEPTMGR = "deptmgr";
String type;
/* (non-Javadoc)
* @see org.jbpm.api.task.AssignmentHandler#assign(org.jbpm.api.task.Assignable, org.jbpm.api.model.OpenExecution)
*/
public void assign(Assignable assignable, OpenExecution execution)
throws Exception {
String docRefId = (String)execution.getVariable("docRefId");
Search search = new Search(Document.class);
search.addFilterEqual("docRefId", docRefId);
Document document = (Document)generalDAO.searchUnique(search);
//Document document = (Document)execution.getVariable("document");
Employee author = generalDAO.find(Employee.class, StringUtils.rightPad(document.getAuthor().getEmployeeId(), 10, " ").toUpperCase() ).getSupervisor();
//generalDAO.refresh(author);
if(author != null)
{
if(type.equals(ORGANIZATION_TYPE_SUPERVISOR))
assignable.setAssignee(author.getSupervisor().getEmployeeId());
if(type.equals(ORGANIZATION_TYPE_DIVMGR))
assignable.setAssignee(author.getDivisionManager().getEmployeeId());
if(type.equals(ORGANIZATION_TYPE_DEPTMGR))
assignable.setAssignee(author.getDepartmentManager().getEmployeeId());
}
}
}
#
<
task g=++"186,155,123,52"++ name=++"Supervisor Review"++>
<assignment-handler auto-wire=++"true"++ class=++"com.dear.workflow.task.assigment.AssignByOrganization"++>
<field name=++"type"++>
<string value=++"supervisor"++/>
</field>
</assignment-handler>
<notification/>
<!--<reminder duedate="2 minutes" repeat="10 seconds"/>
-->
<transition g=++"464,134:-36,-18"++ name=++"deny"++ to=++"notify deny"++/>
<transition g=++"5,-16"++ name=++"approve"++ to=++"Finance Review"++/>
</task>
-
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/640479#640479]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JNDI and Naming] - Soap over JMS using JBOSS - Error: scheme java not recognized
by ale2011
ale2011 [http://community.jboss.org/people/ale2011] created the discussion
"Soap over JMS using JBOSS - Error: scheme java not recognized"
To view the discussion, visit: http://community.jboss.org/message/640402#640402
--------------------------------------------------------------
Hello,
I'm a newbie with web services and Jboss. I am trying to develop a simple Soap over JMS weather service with Jboss.
- I integrated activeMQ with Jboss ( http://activemq.apache.org/integrating-apache-activemq-with-jboss.html link)
- Implemented the server and deployed it
- Generate the client codes , and my main class is as below (I followed this https://docs.jboss.org/author/display/JBWS/SOAP+over+JMS tutorial)
public static void main(String args[]) throws Exception {
URL wsdlURL = new URL("file:/C:/jboss/jboss.6.0.0.Final/server/default/data/wsdl/SoapOverJms_JmsOnly.war/soapjmsweatherimpl.wsdl");
System.out.println(wsdlURL);
if (args.length > 0) {
File wsdlFile = new File(args[0]);
try {
if (wsdlFile.exists()) {
wsdlURL = wsdlFile.toURI().toURL();
} else {
wsdlURL = new URL(args[0]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
SoapJmsWeatherImpl ss = new SoapJmsWeatherImpl(wsdlURL, SERVICE_NAME);
Bus bus = BusFactory.newInstance().createBus();
BusFactory.setThreadDefaultBus(bus);
try {
SoapJmsWeatherImplPort proxy = (SoapJmsWeatherImplPort) ss.getPort(new QName("http://soapoverjms.nsrr.swim.faa.gov/", "SoapJmsWeatherImplPort"), SoapJmsWeatherImplPort.class);
System.out.println("\nInvoking getForecast...");
proxy.getForecast("Philadelphia");
}
finally
{
bus.shutdown(true);
}
System.exit(0);
}
After I execute the client, I got this error:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: javax.naming.NamingException: scheme java not recognized
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
at $Proxy31.getForecast(Unknown Source)
at gov.faa.swim.nsrr.soapoverjms.MainClient.main(MainClient.java:59)
Caused by: java.lang.RuntimeException: javax.naming.NamingException: scheme java not recognized
at org.apache.cxf.transport.jms.JMSFactory.getConnectionFactoryFromJndi(JMSFactory.java:87)
at org.apache.cxf.transport.jms.JMSConfiguration.getOrCreateWrappedConnectionFactory(JMSConfiguration.java:433)
at org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigured(JMSConfiguration.java:104)
at org.apache.cxf.transport.jms.JMSConduit.prepare(JMSConduit.java:101)
at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 2 more
Caused by: javax.naming.NamingException: scheme java not recognized
at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:221)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
at org.apache.cxf.transport.jms.JMSFactory.getConnectionFactoryFromJndi(JMSFactory.java:75)
... 12 more
I could post more codes if neccessary.
Could anyone explain why this exception was thrown? Any ideas/help would be appreciate.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/640402#640402]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[JBoss Tools] - Problem with Deployment to AS 7
by Thomas Letsch
Thomas Letsch [http://community.jboss.org/people/thomas.letsch] created the discussion
"Problem with Deployment to AS 7"
To view the discussion, visit: http://community.jboss.org/message/640253#640253
--------------------------------------------------------------
Hi,
I am using Eclipse Indigo with the M4 Release of JBoss Tools. When deploying my web application in eclipse to my JBoss AS 7.0.2 the WEB-INF/lib directory is not populated with dependent libraries.
My Eclipse project is build with maven eclipse:eclipse. Here are some information:
.setting/org.eclipse.wst.common.component:
...(all dependencies look the same)
<dependent-module archiveName="commons-lang-2.5.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-lang/commons-lang/2.5/commons-lang-2.5.jar">
<dependency-type>uses</dependency-type>
</dependent-module>
...
pom.xml:
...
| | <dependency> |
| | <groupId>commons-lang</groupId> |
| | <artifactId>commons-lang</artifactId> |
| | <version>${commons-lang.version}</version> |
| | </dependency> |
...
| | <plugin> |
| | <groupId>org.apache.maven.plugins</groupId> |
| | <artifactId>maven-eclipse-plugin</artifactId> |
| | <version>2.8</version> |
| | <inherited>true</inherited> |
| | <configuration> |
| | <downloadSources>true</downloadSources> |
| | <useProjectReferences>false</useProjectReferences> |
| | <workspace>C:\dev\workspaces\default</workspace> |
| | <wtpversion>2.0</wtpversion> |
| | <excludes> |
| | <exclude>com.google.gwt:gwt-user</exclude> |
| | <exclude>com.google.gwt:gwt-servlet</exclude> |
| | <exclude>com.google.gwt:gwt-dev</exclude> |
| | </excludes> |
| | <additionalProjectnatures> |
| | <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature> |
| | <projectnature>com.google.gdt.eclipse.core.webAppNature</projectnature> |
| | </additionalProjectnatures> |
| | <additionalBuildcommands> |
| | <buildCommand> |
| | <name>com.google.gwt.eclipse.core.gwtProjectValidator</name> |
| | </buildCommand> |
| | <buildCommand> |
| | <name>com.google.gdt.eclipse.core.webAppProjectValidator</name> |
| | </buildCommand> |
| | <buildCommand> |
| | <name>com.google.appengine.eclipse.core.projectValidator</name> |
| | </buildCommand> |
| | </additionalBuildcommands> |
| | <classpathContainers> |
| | <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer> |
| | <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer> |
| | </classpathContainers> |
| | <additionalConfig> |
| | <file> |
| | <name>.settings/com.google.gdt.eclipse.core.prefs</name> |
| | <content><![CDATA[ |
| | eclipse.preferences.version=2 |
| | jarsExcludedFromWebInfLib= |
| | warSrcDir=src/main/webapp |
| | warSrcDirIsOutput=true |
| | ]]> |
| | </content> |
| | </file> |
| | </additionalConfig> |
| | <buildOutputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</buildOutputDirectory> |
| | </configuration> |
| | </plugin> |
Thanks,
Thomas
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/640253#640253]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months