-
1. Re: Help!The java code of Script Task action ( class cannot be resolved to a type)
salaboy21 Nov 30, 2011 7:27 AM (in response to jimmy.dongjia)The error that you are getting is because you have the jar file (jdom-1.0.jar) in your IDE but not in guvnor's classpath. You should add that lib to the server in order to be able to deploy that process.
By the way, you can use service tasks instead of script tasks and create a class that has the dependency on jdom, instead of bundling java code inside the xml process definition. The newly integrated service repository will allow you to download the dependencies as well, so you will not need to download and place the jar inside the container by hand.
Cheers
-
2. Re: Help!The java code of Script Task action ( class cannot be resolved to a type)
jimmy.dongjia Nov 30, 2011 10:22 AM (in response to salaboy21)I think you are right! Could you tell me the detail path of the jdom-1.0.jar should be deployed? I use JBOSS.
I don't understand service task completely,I think service task can only be used for log and email,I will try tomorrow,thank you for your help!