kie-drools-wb maven repository - repositories\kie (Access is denied)

392 views
Skip to first unread message

Kamau Washington

unread,
Jan 19, 2016, 7:04:41 PM1/19/16
to Drools Setup
I have setup Drools 6.3.0.Final on Windows 7 in tomcat 8. Everything is working there.

What I would like to do is simple: view the repository and or mirror it through a lib manager like artifactory. Like most other posts I have seen, I too can access the artifacts directly (full path to jar), but I would like to see the contents of the dir. 


I get this

java.io.FileNotFoundException: repositories\kie (Access is denied)
	java.io.RandomAccessFile.open0(Native Method)
	java.io.RandomAccessFile.open(Unknown Source)
	java.io.RandomAccessFile.<init>(Unknown Source)
	org.guvnor.m2repo.backend.server.helpers.HttpGetHelper.handle(HttpGetHelper.java:157)
	org.guvnor.m2repo.backend.server.M2Servlet.doGet(M2Servlet.java:48)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:53)
	org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:45)

I have seen this error on the web as well, and the suggestion was to remove security from /maven2/* which I did in the web.xml. Restart the service for good measure. No dice. Added permissions to the repositories\kie folder, repeat, no dice.

Has anyone had any luck with this? And how have you resolved it?

Michael Anstis

unread,
Jan 20, 2016, 1:52:25 AM1/20/16
to drools...@googlegroups.com

The Workbench doesn't support directory browsing of its internal Maven Repository. Removal of the security merely removes the need for requests for specific artifacts to be authenticated.

You could modify the HttpGetHelper class to return HTML when folders' paths are accessed (such HTML being the folder listing). Submit your changes as a Pull Request for everyone else to enjoy your efforts :-)

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/f217d943-4f66-4ca2-bc15-7037b71a5ef0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages