Solr debug on Intellij idea with Tomcat - solr

I have been trying to debug solr 6.5 source with tomcat 8 with deploy .war my own artifact but I can' deploy give an 404 error and I put index.HTML in URL after /solr it work but not create instance. Plz help me for debug solr with tomcat using war deploy after changing source code

Solr 6.2 on tomcat works. You can use my instructions here to setup solr on tomcat. Unfortunately, solr 6.3+ doesn't work on tomcat and the solr team doesn't care.

Related

JAXB ClassNotFoundException com.sun.xml.bind.v2.ContextFactory when hot-deploying camel routes

Yes I know, there are numerous questions and answers since JAXB was removed from JDK 11. But this one is specific.
I've a Wildfly Server (tested with 18.0.1 and 16.0.0) running with the wildfly-camel subsystem 11.0.1 patch applied. The patch installs Camel 2.25.0
Deploying and Hot-Deploying (while the server is up) Camel routes works fine!
Until I deploy Liferay on the same server :-(
Then the Hot-Deploy of a camel route gives me the annoying
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory from [Module "org.apache.camel.spring" version 2.25.0...
exeption.
No matter if I run the server on JDK 11 or JDK 8! Liferay 7.3.2 claims to be runnable on both JDK versions so I guess it has something to with the way Liferay was build.
Reading this article
http://www.descher.at/descher-vu/2019/01/java-11-jaxb-and-osgi/
that the JAXB topic is very complex and far from being resolved.
Question:
How can a deployed application destroy otherwise working classpath resolutions?
And more important:
How to fix it?
I tried removing the 2 jars in question jaxb-api.jar and jaxb-impl.jar from Liferay. But that didn't help.
Turns out that the root cause of the error is a missing dependency to com.sun.xml.bind in the org.apache.camel.spring module of the wildfly-camel patch.
I filed the issue in detail.
Looks like Liferay has nothing to do with it. Because in theory jboss-modules should separate the deployments.

How to configure Sentry for work with Apache Solr

I downloaded the Apache Solr from github (https://github.com/apache/lucene-solr). Building the project using ANT and deploy .war file to TOMCAT7. Everything was successful. But now i want using Sentry for authorization in Apache Solr. I read a lot of documentation, but it not clarifying for me.
I don't understand how these two products have dependencies and how to start using the Sentry with Solr

exceptions in solr

I am new to Solr. I tried to install solr as per the instructions given by
Visit http://www.beingjavaguys.com/2013/01/introduction-to-apache-solr-40-with.html
while running i am getting an error like
collection1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
RequestHandler init failure
Anyone please help me in resolving this?
This is because .. your tomcat server is not getting collection1 folder's content correctly.
Please start with a fresh copy of solr 4 and tomcat and configure whole setup again ...I followed the same site and i am able to integrate correctly.
Double check every step mentioned there.

Google AppEngine gives Jersey ServletContainer ClassNotFoundException

I am using Eclipse Indigo with Google AppEngine SDK (and no GWT)
Project setup starting with a clean default project:
Java in use is the Oracle JDK 7 but changed project settings to generate 1.6 code and source code compatibility also set to 1.6
Added 2 external jars to BuildPath from Glassfish Java EE 6 + JDK 7 installation
jersey-core.jar
jersey-gf-server.jar
jersey-gf-server.jar contains com.sun.jersey.spi.container.servlet.ServletContainer
Fixed Eclipse markers complaining that the jar files would not be found in the deployed app -- accepted suggested fix for each to copy them to war/WEB-INF/lib folder
Deployed successfully
Upon accessing the regular non-Jersey hello-world servlet, I get the error in AppEngine logs: java.lang.ClassNotFoundException: com.sun.jersey.spi.provider.container.servlet.ServletContainer
the class ServletContainer is in the jersey-bundle.jar
You should add jersey-servlet.jar as well. At some point this class was migrated there.

Solr 3.1 Admin Interface

I am using Solr 1.4 , by default it comes with web application deployed as "solr.war" in webapps directory in example .
I tried to upgrade to solr 3.1 , but this vesrion (3.1) doesn't have attached web admin interface ,
I copied the solr.war from 1.4 and put it in webapps in 3.1
but this will lunch the 1.4 version of solr rather than 3.1 , I wanted to use edismax feature in 3.1 and other features and improvements ,
Please how can I use ediamx or give me regular steps to upgrade to solr 3.1 or even compile from source !!!
Thank you
Solr 3.1 does have a web admin interface. The web application archive is in the dist directory of the official distribution, the file is named apache-solr-3.1.0.war
download the source package for 3.1
and run "ant example" to build the example solr application
the new war for 3.1 should be under solr/example/webapp dir.
you will need to add the following config in your solrconfig.xml
<luceneMatchVersion>LUCENE_31</luceneMatchVersion>
also make sure your "unique id" field in schema.xml is of type string

Resources