Jump to content

nikhil_kulkarni03

Members
  • Posts

    2
  • Joined

  • Last visited

nikhil_kulkarni03's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, I am aading external database security to the jasper server and I am success fully loged in with the external db and the username and passwords are able to save in the JIUSER.We also need to create the external auth filter for adding profile attributes.I have createed a testfilter and have done jar for that. SimpleAuthFilterTest is my filter class and have referenced in the applicationContext-security-web.xml below are the filter class and applicationContext-security-web.xml, SimpleAuthFilterTest package com.mccamish.actions; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.springframework.beans.factory.InitializingBean; public class SimpleAuthFilterTest implements Filter, InitializingBean { private static Logger log = Logger.getLogger(SimpleAuthFilterTest.class); //private static final String[] userAttribs = { "officeType", "userType","officeCode" }; @Override public void afterPropertiesSet() throws Exception { // TODO Auto-generated method stub } @Override public void destroy() { // TODO Auto-generated method stub } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { log.debug(" ********** Hello from SimpleAuthFilterTest debug *************"); log.info(" ********** Hello from SimpleAuthFilterTest info *************"); log.warn(" ********** Hello from SimpleAuthFilterTest warn ************* "); log.error(" ********** Hello from SimpleAuthFilterTest error ************* "); HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; chain.doFilter(req, res); } @Override public void init(FilterConfig arg0) throws ServletException { // TODO Auto-generated method stub log.info(" ********** Hello from init SimpleAuthFilterTest *************"); } } applicationContext-security-web.xml <bean id="filterChainProxy" class="org.springframework.security.util.FilterChainProxy"> <property name="filterInvocationDefinitionSource"> <value> CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /xmla=httpSessionContextIntegrationFilter,${bean.loggingFilter},${bean.basicProcessingFilter},JIAuthenticationSynchronizer,anonymousProcessingFilter,basicAuthExceptionTranslationFilter,filterInvocationInterceptor /services/**=httpSessionContextIntegrationFilter,${bean.loggingFilter},${bean.portletAuthenticationProcessingFilter}, delegatingBasicProcessingFilter,${bean.passwordExpirationProcessingFilter},anonymousProcessingFilter,wsBasicAuthExceptionTranslationFilter,filterInvocationInterceptor /rest/login=httpSessionContextIntegrationFilter,${bean.loggingFilter},delegatingAuthenticationRestProcessingFilter,anonymousProcessingFilter,filterInvocationInterceptor /rest/**=httpSessionContextIntegrationFilter,${bean.loggingFilter},${bean.portletAuthenticationProcessingFilter},delegatingBasicProcessingFilter,${bean.passwordExpirationProcessingFilter},anonymousProcessingFilter,wsBasicAuthExceptionTranslationFilter,filterInvocationInterceptor /rest_v2/**=httpSessionContextIntegrationFilter,encryptionFilter,textOnlyResponseWebAppSecurityFilter,jsCsrfGuardFilter,${bean.loggingFilter},${bean.userPreferencesFilter},${bean.authenticationProcessingFilter},${bean.userPreferencesFilter},${bean.basicProcessingFilter},requestParameterAuthenticationFilter,JIAuthenticationSynchronizer,anonymousProcessingFilter,restExceptionTranslationFilter,filterInvocationInterceptor /**=httpSessionContextIntegrationFilter,encryptionFilter,multipartRequestWrapperFilter,webAppSecurityFilter,jsCsrfGuardFilter,${bean.loggingFilter},${bean.userPreferencesFilter},delegatingAuthenticationProcessingFilter,${bean.userPreferencesFilter},${bean.basicProcessingFilter},requestParameterAuthenticationFilter,anonymousProcessingFilter,delegatingExceptionTranslationFilter, filterInvocationInterceptor,switchUserProcessingFilter,iPadSupportFilter,simpleAuthFilterTest </value> </property> </bean> <bean id="simpleAuthFilterTest" class="com.mccamish.actions.SimpleAuthFilterTest"> </bean> When I try to run the application I am getting the below error,Can any one please tell me what is the resion for the below issue.. 2013-11-21 13:03:44,346 WARN JSDelegatingFilterProxy,http-8062-1:76 - Filter proxy bean proxyAuthenticationProcessingFilter discovered. 2013-11-21 13:03:44,363 WARN JSDelegatingFilterProxy,http-8062-1:80 - proxyExceptionTranslationFilter bean was not "dropped into" application context. Using class org.springframework.security.ui.ExceptionTranslationFilter instead. 2013-11-21 13:03:44,402 ERROR SimpleAuthFilterTest,http-8062-1:40 - ********** Hello from SimpleAuthFilterTest error ************* 2013-11-21 13:03:44,402 ERROR SimpleAuthFilterTest,http-8062-1:40 - ********** Hello from SimpleAuthFilterTest error ************* 2013-11-21 13:03:45,477 ERROR SimpleAuthFilterTest,http-8062-2:40 - ********** Hello from SimpleAuthFilterTest error ************* 2013-11-21 13:03:45,494 ERROR SimpleAuthFilterTest,http-8062-6:40 - ********** Hello from SimpleAuthFilterTest error *************
  2. Hi All, Can any one please suggest, I am using Ireport 5.0.0 ,I am trying to give password protection for pdf files,When I try doing this by giving the owner passwod and user password and run getting this error, steps tools->exportoptions->security encryptiontype ->standard added external jars,Itext - 2.1.0.jar,bcprov - jdk16 - 1.46.jar Error exporting print... org/bouncycastle/asn1/ASN1OctetString java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString at com.lowagie.text.pdf.PdfEncryption.<init>(Unknown Source) at com.lowagie.text.pdf.PdfWriter.setEncryption(Unknown Source) at com.lowagie.text.pdf.PdfWriter.setEncryption(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:519) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:417) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1174) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.ASN1OctetString at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 8 more Thanks, Nikhil Kulkarni
×
×
  • Create New...