I am also facing the same issue. Has somebody, found the solution. If yes, please share on the forum.
I take it you have added the class-path tag to your component.xml file and the referenced jar file is in the correct location?
can u please elaborate your point? I think this can solve the problem. But I am not able to figure out.
Thanks and Regards,
There are two ways to refer to classes in the component.xml file; class-path and import-packages.
If the jar file containing the class you need is in your component (i.e. it is in the component's jar file) then use the class-path tag to refer to that jar file. For example, I am using two jar files that will be inside my component:
If the classes you need are in the application server's library path, then you don't want to include them in your component jar file. You refer to the classes using the import-packages tag:
Note - don't do both for the same class, you may get coercion errors.
I tried both the ways, but it dint work.
In my case, I am having five class files, component.xml and one supporting jar in component's jar. Now, out of these five java classes, one is java bean object which is used in other class files as an object.
When, I am deploying the component, there is no error. I also made a test process for checking the component.While executing the process, I am getting an error, "Class Not found" for that java bean object.
Please let me know, where am I getting wrong? I guess, I am missing some configuration, which needs to be in config.xml regarding that bean class.
Thanks and Regards,
From your description it sounds like your java bean is not in a seperate jar file. I had assumed it was earlier. If that is true then you don't need a class path or import packages entry. You really don't need anything. As long as the class is in the right package folder in your component.jar then everything should be fine.
But I am still facing the problem.
The process throws the same error. But while playing back, its not tracing the error. Its showing the contents of the complex custom data component.
When I tried to retrieve, the values in different variables, its going empty.