Hi I got the sample solr application working in jetty server, and I have connected it with database and the values are indexed as well as searched. Now for the actual production environment I want to deploy it in the JBOSS server.
Based on another post by Thierry, in the same forum, I followed the following steps: 1) Edited C:/jboss/jboss-4.2.1.GA/server/default/conf/jboss-service.xml and entered the following details: <mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="jboss.tests:service=JNDIBindingServiceMgr"> <attribute name="BindingsConfig" serialDataType="jbxb"> <jndi:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xmlns:jndi="urn:jboss:jndi-binding-service:1.0" xs:schemaLocation="urn:jboss:jndi-binding-service:1.0resource:jndi-binding-service_1_0.xsd" > <jndi:binding name="solr/home"> <jndi:value type="java.lang.String">C:\Solr\example\solr</jndi:value> </jndi:binding> </jndi:bindings> </attribute> </mbean> 2) Copied the war file from the solr distribution, converted it to solr.zip, unzipped and made the following changes and again bundled to zip and then to war, and pasted to the default/deploy folder of JBOSS. a) Edited the web.xml and added the following just before the </web-app> tag : <resource-env-ref> <resource-env-ref-name>solr/home</resource-env-ref-name> <resource-env-ref-type>java.lang.String</resource-env-ref-type> </resource-env-ref> b) Created a jboss-web.xml file inside the WEB-INF folder The file contains : <jboss-web> <context-root>solr</context-root> <resource-env-ref> <resource-env-ref-name>solr/home</resource-env-ref-name> <jndi-name>/solr/home</jndi-name> </resource-env-ref> </jboss-web> But when I start the server I am getting the following error. 18:25:25,229 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- [EMAIL PROTECTED] { url=file:/C:/jboss/jboss-4.2.1.GA/server/default/deploy/solr.war } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/C:/jboss/jboss-4.2.1.GA/server/default/deploy/solr.war altDD: null lastDeployed: 1224766525227 lastModified: 1224766525226 mbeans: --- Incompletely deployed packages --- [EMAIL PROTECTED] { url=file:/C:/jboss/jboss-4.2.1.GA/server/default/deploy/solr.war } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/C:/jboss/jboss-4.2.1.GA/server/default/depl oy/solr.war altDD: null lastDeployed: 1224766525227 lastModified: 1224766525226 mbeans: Is there anything wrong in the steps i followed or i missed some steps? Also where can I specify the index directory? Any suggestion/advice is really appreciable. Thanks con -- View this message in context: http://www.nabble.com/Integrating-Solr-with-JBOSS-to-run-the-dataimporter-tp20137228p20137228.html Sent from the Solr - User mailing list archive at Nabble.com.