Tag: Apache
-
Active MQ – java.io.IOException: tmpFile.renameTo(classFile) failed
I downloaded the latest version of Apache ActiveMQ. Post download followed the simple steps for installation and then followed the starting ActiveMQ. It started and I tried accessing the admin console @ http://localhost:8161/admin/. It opened by showed an error message: [sourcecode language=”java”] Error! Exception occurred while processing this request, check the log for more information!…
-
Search Lucene Index created in database using JdbcDirectory
In our last excercise we created Lucene index in database using JdbcDirectory which comes with Compass in this post we will search against index created. With this much of text let’s get our hand dirty and write some code. Please note following files will be used from create lucene index post pom.xml MyJDBCDirectory.java JDBCBatchInsert.java JDBCIndexer.java…
-
Integrate LDAP and Spring Security 3.1 for Authentication and Authorization in a JSF 2.0 Application.
Backtracking all our previous tutorial you will notice we always had our user definition with password placed in our database. Not every time this will be the case and frequently we will have to integrate our application with LDAP. In this tutorial we will integrate our earlier application with Apache Directory Services. If you don’t…
-
Configuring Apache DS in Eclipse
Lightweight Directory Access Protocol aka LDAP is a protocol used for maintaining data over distributed ENV. Most of the organization will use LDAP for holding there user information and more often then not in almost all our application we will authenticate user against LDAP. In this post we will configure Apache Directory which is built…
-
Create Lucene Index in database using JdbcDirectory
In our last post we built a simple index over file system. While our example works fine but cannot be extended over clustered environment and also cannot be used for a large document because of memory foot print. Lucene doesn’t provide a direct in built JDBC interface but Compass does, though the JDBC interface of…
-
Integrating Apache Lucene and Maven in Eclipse
In two steps we will integrate Apache Lucene and Maven in Eclipse. First Create Java Project using Maven in Eclipse Second add lucene dependency in your pom.xml, so you pom.xml should look like this: pom.xml [sourcecode language=”xml”] <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mumz.test.lucene</groupId> <artifactId>ApacheLuceneTest</artifactId> <version>0.0.1-SNAPSHOT</version> <name>ApacheLuceneTest</name> <description>ApacheLuceneTest</description> <dependencies> <dependency> <artifactId>lucene-core</artifactId> <groupId>org.apache.lucene</groupId> <type>jar</type> <version>3.6.1</version> </dependency>…
-
Index and Search a Directory using Apache Lucene
Building a custom search is a common requirement in almost every application. Building such a system can be complex and tedious with numerous use cases around. Apache Lucene is a search framework built in Java. In this tutorial we will write a small application which will use Lucene to search a given directory. Lucene works…