cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Modeler/ JBoss 5:Path error because of archive name

mskaesz
Champ in-the-making
Champ in-the-making
Hey guys,

I deployed activiti-modeler5.alpha4 successfully in JBoss 5.1. When clicking on "New Business Process Diagram" the following exception occurs:

17:02:24,049 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
17:02:24,155 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
17:02:24,180 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 1m:2s:205ms
17:02:45,681 INFO  [STDOUT] /home/msk/opt/jboss-5.1.0.GA/server/default/deploy/activiti-modeler/editor/stencilsets/bpmn2.0/bpmn2.0.json
17:02:45,713 ERROR [STDERR] com.signavio.platform.exceptions.RequestException: RequestException Error Code: editor.stencilset.exception
17:02:45,723 ERROR [STDERR]    at com.signavio.platform.exceptions.RequestException.fillInStackTrace(RequestException.java:50001)
17:02:45,723 ERROR [STDERR]    at java.lang.Throwable.<init>(Throwable.java:218)
17:02:45,723 ERROR [STDERR]    at java.lang.Exception.<init>(Exception.java:59)
17:02:45,723 ERROR [STDERR]    at java.lang.RuntimeException.<init>(RuntimeException.java:61)

The war is exploded and has the following name: activiti-modeler.war

The problem is that the modeler checks for everything under the following path:
/home/msk/opt/jboss-5.1.0.GA/server/default/deploy/activiti-modeler/

The correct path is this one:
/home/msk/opt/jboss-5.1.0.GA/server/default/deploy/activiti-modeler.war/

I can't remove the ending ".war" - JBoss needs it for deploying… Any ideas how i can fix that?

Cheers,
Marc


/EDIT:

Added a jboss-web.xml with the following content:

<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE jboss-web
    PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">

<jboss-web>
   <context-root>activiti-modeler.war</context-root>
</jboss-web>

But it is still not working… it seems that the jboss-web.xml is ignored:

2010-08-04 17:32:20,616 INFO  [org.activiti.impl.ProcessEngineImpl] (main) ProcessEngine default created
2010-08-04 17:32:20,616 INFO  [org.activiti.ProcessEngines] (main) initialised process engine default
2010-08-04 17:32:20,811 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/activiti-modeler
2010-08-04 17:32:20,903 INFO  [com.signavio.platform.listeners.EntryPoint] (main) Initializing platform…
2010-08-04 17:32:21,001 INFO  [STDOUT] (main) [INFO] Initializing Root Directory…
2010-08-04 17:32:21,002 INFO  [STDOUT] (main) [INFO] Root directory path: /home/msk/activiti-model-repository
2010-08-04 17:32:21,008 INFO  [STDOUT] (main) [INFO] Initialized Root Directory!
2010-08-04 17:32:22,994 INFO  [com.signavio.platform.listeners.EntryPoint] (main) Done initializing platform!
11 REPLIES 11

frederikherema1
Star Contributor
Star Contributor
The file should be here in the war:

/WEB-INF/classes/messages/activiti-i18n-app.properties

bernd_ruecker
Champ in-the-making
Champ in-the-making
I am almost sure, this is some classloading issue, where the properties file cannot be access by the right classloader in that moment. My guess is, that in JBoss there are other libs available in the server environment somehow causing that issue. Maybe debugging into the web app and checking the classloader in the moment, when he tries to access the properties file, could point to a direction?
Not sure how much that helps 😉