[jboss-user] [jBPM] - Upload processes to Guvnor using ant

Demian Calcaprina do-not-reply at jboss.com
Sun Oct 23 20:53:10 EDT 2011


Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion

"Upload processes to Guvnor using ant"

To view the discussion, visit: http://community.jboss.org/message/633181#633181

--------------------------------------------------------------
Hi guys,

I am trying to upload processes to guvnor using webdav with an ant script. I am using this script:
 <target name="upload" depends="declare-tasks">
             <dav:put url=" http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage"
                       userid="" password=""
                             lock="false" overwrite="true">
                              <dav:fileset dir=".">
                                        <dav:include name="Process.bpmn"/>
                              </dav:fileset>
                    </dav:put> 
          </target>



But when I execute it, I see in guvnor logs:
| ERROR 20-10 21:53:37,701 (WebDavServletBean.java:service:154) |  Exception: org.drools.repository.RulesRepositoryException: javax.jcr.AccessDeniedException: Access denied |
| 
 | at org.drools.repository.PackageItem.addAsset(PackageItem.java:290) |
| 
 | at org.drools.repository.PackageItem.addAsset(PackageItem.java:228) |
| 
 | at org.drools.guvnor.server.files.WebDAVImpl.createResource(WebDAVImpl.java:140) |
| 
 | at net.sf.webdav.methods.DoPut.execute(DoPut.java:104) |
| 
 | at net.sf.webdav.WebDavServletBean.service(WebDavServletBean.java:128) |
| 
 | at org.drools.guvnor.server.files.WebdavServlet.service(WebdavServlet.java:76) |
| 
 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) |
| 
 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) |
| 
 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) |
| 
 | at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42) |
| 
 | at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53) |
| 
 | at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37) |
| 
 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) |
| 
 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) |
| 
 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) |
| 
 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) |
| 
 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) |
| 
 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) |
| 
 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) |
| 
 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) |
| 
 | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) |
| 
 | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) |
| 
 | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) |
| 
 | at java.lang.Thread.run(Thread.java:662) |
Caused by: javax.jcr.AccessDeniedException: Access denied
| 
 | at org.apache.jackrabbit.core.security.simple.SimpleAccessManager.checkPermission(SimpleAccessManager.java:138) |
| 
 | at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1476) |
| 
 | at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:2082) |
| 
 | at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1987) |
| 
 | at org.drools.repository.PackageItem.addAsset(PackageItem.java:248) |
| 
 | ... 23 more |


Any help?

Thanks,

Demian
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/633181#633181]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111023/f4717ebb/attachment-0001.html 


More information about the jboss-user mailing list