Hi, we are using JIRA 5.1 and trying to add new java servlet filter into web.xml, once i restart my JIRA service, server does not start, any suggestions to fix it? Thanks
I have installed a JAR file as plugin and getting below error in logs:
2013-07-01 14:06:49,180 http-80-4 INFO kashif.inam@thomsonreuters.com 846x1407x1 1qb3y6x 127.0.0.1 /rest/plugins/1.0/com.atlassian.customjirablockfilter-key [atlassian.plugin.manager.DefaultPluginManager] Found dependent enabled plugins for uninstalled plugin 'com.atlassian.customjirablockfilter': []. Disabling...
Please see attached atlassian-plugin.xml
Please advise
<atlassian-plugin name="Block REST API Filter" key="com.atlassian.customjirablockfilter" plugins-version="2"> <plugin-info> <description>A Servlet filter to block REST API!</description> <vendor name="Atlassian Software Systems" url="http://www.atlassian.com"/> <version>1.0</version> </plugin-info> <servlet-filter name="ServiceBlockServlet" key="jiraBlockServlet" class="com.atlassian.JiraBlockFilter" location="after-encoding" weight="200"> <description>Block JIRA REST Services</description> <url-pattern>/*/rest/api/*</url-pattern> <dispatcher>REQUEST</dispatcher> </servlet-filter> </atlassian-plugin>
any suggestions to fix it?
Remove the changes that you made?
Jira has a plugin module for Servlet Filters (https://developer.atlassian.com/display/JIRADEV/Servlet+Filter+Plugin+Module). Use this instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see above URL and found example referring "atlassian-plugin.xml" and "com.example.myplugins.helloworld.HelloWorldFilter", I want to understand its development and deployment.
Can I see full working example or related documentation?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<servlet-filter name="Hello World Servlet" key="helloWorld" class="com.example.myplugins.helloworld.HelloWorldFilter" location="before-dispatch" weight="200"> <description>Says Hello World, Australia or your name.</description> <url-pattern>/helloworld</url-pattern> <init-param> <param-name>defaultName</param-name> <param-value>Australia</param-value> </init-param> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </servlet-filter>
You then hit this URL (http://yourserver/jira/helloworld). The class is a normal servlet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where i need to copy this "atlassian-plugin.xml" into JIRA code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have installed a JAR file as plugin and getting below error, but on administration site, I still see this as installed and active:
846x1407x1 1qb3y6x 127.0.0.1 /rest/plugins/1.0/com.atlassian.customjirablockfilter-key [atlassian.plugin.manager.DefaultPluginManager] Found dependent enabled plugins for uninstalled plugin 'com.atlassian.customjirablockfilter': []. Disabling...
846x1407x1 1qb3y6x 127.0.0.1 /rest/plugins/1.0/com.atlassian.customjirablockfilter-key [atlassian.plugin.manager.DefaultPluginManager] Disabling com.atlassian.customjirablockfilter
846x1407x1 1qb3y6x 127.0.0.1 /rest/plugins/1.0/com.atlassian.customjirablockfilter-key [atlassian.plugin.loaders.ScanningPluginLoader] Removed plugin com.atlassian.customjirablockfilter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.