You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by con <co...@gmail.com> on 2008/10/23 15:20:59 UTC

Re: Solr and JBOSS Integration

Hi 
I tried the above steps.
but i am getting the following error:
Any help or suggestion is really appreciated.

18:25:25,229 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@87af6986 {
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 ---
org.jboss.deployment.DeploymentInfo@87af6986 {
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:


Thanks
con




Thierry Collogne wrote:
> 
> Hi,
> 
> The method works, but has the drawback that you need to configure your
> solr
> home inside the war of the web application.
> What we did is the following:
> 
> Add this to the jboss-service.xml
> 
> <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:\Temp\solr</jndi:value>
>             </jndi:binding>
>          </jndi:bindings>
>       </attribute>
>    </mbean>
> 
> Where I have c:\Temp\solr, you need to put your solr location.
> 
> Then inside the solr.war you edit the web.xml and add 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>
> 
> 
> Then you add a jboss-web.xml file inside the WEB-INF folder inside the
> solr.war
> The file must contain :
> 
> <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>
> 
> 
> Using this method, u can configure the solr home inside the application
> server and there is no need to edit the solr.war when you want to change
> the
> solr home.
> 
> And yes, you then copy the solr.war file inside the deploy folder of your
> jboss instance.
> 
> I hope this helps,
> 
> Thierry
> 
> On 26/08/07, Jae Joo <ja...@gmail.com> wrote:
>>
>> sort of, but need more details.
>> How about solr.war file? do I have to copy it into jboss deploy
>> directory?
>> Otherwise, how I let jboss kow where Solr is?
>> Any idea how to handle *.jar files for Solr?
>>
>> Thanks,
>>
>> Jae
>>
>> On 8/26/07, Grant Ingersoll <gs...@apache.org> wrote:
>> >
>> > Is this what you are looking for: http://wiki.apache.org/solr/SolrJBoss
>> >
>> > On Aug 25, 2007, at 10:18 AM, Jae Joo wrote:
>> >
>> > > Hi,
>> > >
>> > > I have Solr 1.2 and JBoss Application Server 4.2.1 installed in
>> > > Windows
>> > > machine and would like to find how to integrate it together.
>> > >
>> > > can anyone help me?
>> > >
>> > > Thanks,
>> > >
>> > > Jae Joo
>> >
>> > --------------------------
>> > Grant Ingersoll
>> > http://lucene.grantingersoll.com
>> >
>> > Lucene Helpful Hints:
>> > http://wiki.apache.org/lucene-java/BasicsOfPerformance
>> > http://wiki.apache.org/lucene-java/LuceneFAQ
>> >
>> >
>> >
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Solr-and-JBOSS-Integration-tp12326460p20130803.html
Sent from the Solr - User mailing list archive at Nabble.com.