Re: [jbpm-users] unable to deploy a process definition (jBPM 4 b2)
by SirFrancis
Thanks for your hint.
Searching for files referencing the "jpdl.xsd" give no
results. But while searching for the files I found out that
the "jpdl.xsd" was not available in the classpath. So I made it
available in the classpath, but this didn't resolved the problem.
.
Now I focused on the classloader and change the behaviour of it,
to prefer the classes in the WEB-INF folder.
And voila, everything works fine. it seems that some libs deliverd by the
weblogic server are not compatible.
For all people also deploying on a Weblogic 10.3:
In detail I added the following lines to the "WEB_INF\weblogic.xml" file :
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
Now I'm facing another problem. but for this I'll open another thread,
after some more researches.
thanks and best regards
sirfrancis
Tom Baeyens wrote:
> 22.04.2009 18:34:09 org.jbpm.internal.log.Jdk14Log debug
> FEIN: schema resource found: jpdl.xsd
> 22.04.2009 18:34:09 org.jbpm.internal.log.Jdk14Log debug
> FEIN: schema resource found: jpdl.xsd
>
> some file is twice on the classpath. look for a file that references
> jpdl.xsd
> probably you have that one twice somewhere.
>
16 years, 11 months
unable to deploy a process definition (jBPM 4 b2)
by SirFrancis
Hi all,
I'm new to the jBPM Framework, and I'm trying to setup jBPM 4 on a
Weblogic 10.3 Server. After the first steps i faced some errors and I'm
not able to fix them
up on my own. So, hopefully someone of this list can/will help me.
For the first setup and evaluation, I've created a simple web
application with a servlet to use jBPM. I've packed all the libs from
the installation folder in the "WEB-INF/lib" folder and
created a function to instantiate a configuration, instantiate a
ProcessEngine and to retrieve the offered services (e.g.
RepositoryService, TaskService,...).
To this point everything works fine.
Now I'm trying to deploy my first process definition (one of the example
definitions), but this always ends up with following error :
-----------------------------------------------------------
<22.04.2009 18.34 Uhr CEST> <Error> <HTTP> <BEA-101020>
<[weblogic.servlet.internal.WebAppServletContext@f48eb5 - appName:
'jBPM_Test_simpleWebApp', name: 'jBPM_Test_simpleWebApp.war',
context-path: '/jBPM_Test_simpleWebApp', spec-version: '2.5'] Servlet
failed with Exception
org.jbpm.JbpmException: problems during deployment: errors:
error: couldn't parse xml document : java.lang.IllegalArgumentException:
When using array of Objects as the value of SCHEMA_SOURCE property , no
two Schemas should share the same targetNamespace.
error: couldn't interpret the dom model: null :
java.lang.NullPointerException
at
org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:63)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:49)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:35)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
Truncated. see log file for complete stacktrace
-----------------------------------------------------------
complete stacktrace at --> http://riotstarters.de/jBPM_stacktrace_1.txt
Here is my code to deploy a process definition :
-----------------------------------------------------------
RepositoryService repositoryService = processEngine.getRepositoryService();
Deployment newDeployment = repositoryService.createDeployment();
newDeployment.addResourceFromClasspath("/test_2_process.jpdl.xml", is);
long deploymentId = newDeployment.deploy();
-----------------------------------------------------------
To be sure the resource is available, I have also created an input
stream und successfully read the file into a string. After ensuring
the resource is available I tried to add the resource via
"addResourceFrom InputStream". This also ends up with an error.
Other researches I've already done:
-> I've validated that the used process definition has a "name"
attribute defined
-> I've validated that the defined encoding in the process definition is
correct.
So it would be great if anyone can help me to bring up jBPM running
properly.
Any tips and hints are welcome.
thanks and best regards
SirFrancis
16 years, 11 months