0

my project is develop website using JSP. In this project, the JSP file will call a function from my java file.

Here is how I import my java file:

<%@ page import="java.sql.*,java.util.*,de.fraport.mobileformular.CreateEngine,org.activiti.engine.*,org.activiti.engine.runtime.*"%> 

Then, here is how I call my method:

<% //deploy process from activiti CreateEngine ce = new CreateEngine(); %> 

But, I don't know why, when I load above page, it will generate following error:

Error while Loading Page

FYI: this web application running on Tomcat 7 and connected to Activiti Workflow Engine.

Thanks for your help.

Edited:

Here is the deployed class:

package de.fraport.mobileformular; import org.activiti.engine.*; import org.activiti.engine.runtime.*; public class CreateEngine { //set global variable ProcessEngine processEngine; RepositoryService repositoryService; RuntimeService runtimeService; ProcessInstance processInstance; //method for deploying and start process public void deployProcess() { processEngine = ProcessEngines.getDefaultProcessEngine(); repositoryService = processEngine.getRepositoryService(); repositoryService.createDeployment() .addClasspathResource("accidentForm.bpmn20.xml") .deploy(); runtimeService = processEngine.getRuntimeService(); processInstance = runtimeService.startProcessInstanceByKey("accidentForm");; } } 
13
  • Because it can't find that type. Commented Mar 31, 2014 at 13:10
  • but, i've import the class file @dave Commented Mar 31, 2014 at 13:12
  • No, you've attempted to import the class, and it cannot be found. Is it deployed? Commented Mar 31, 2014 at 13:15
  • yes it is. How can solve it? Commented Mar 31, 2014 at 13:18
  • Deploy the missing class. Looks like what you believe is a class name is a package. Post the package and class declaration, not the code, for the class you've packaged incorrectly. Commented Mar 31, 2014 at 13:20

1 Answer 1

1

Problem Solved by change the type of the project from Java Project into Dynamic Web Project. Thanks

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.