You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Mayank Kumar <ma...@gmail.com> on 2018/02/09 11:21:01 UTC

Need to install Solr in Tomcat in Eclipse

Hi,

I am Mayank and just wanted to contribute to Apache Solr.

I want to deploy the solr application in Apache tomcat in Eclipse so that I will be able to debug it.

Can anybody help me in doing the same.


Thank you,
Mayank
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Need to install Solr in Tomcat in Eclipse

Posted by Martin Gainty <mg...@hotmail.com>.


________________________________
From: Mayank Kumar <ma...@gmail.com>
Sent: Friday, February 9, 2018 6:21 AM
To: dev@lucene.apache.org
Subject: Need to install Solr in Tomcat in Eclipse

Hi,

I am Mayank and just wanted to contribute to Apache Solr.

I want to deploy the solr application in Apache tomcat in Eclipse so that I will be able to debug it.

Can anybody help me in doing the same.

MG>Parroting eclipse-tomcat-plugin documentation from
http://marketplace.eclipse.org/content/eclipse-tomcat-plugin
Eclipse Tomcat Plugin | Eclipse Plugins, Bundles and ...<http://marketplace.eclipse.org/content/eclipse-tomcat-plugin>
marketplace.eclipse.org
The Eclipse Tomcat Plugin provides simple integration of a tomcat servlet container for the development of java web applications. This project is the successor of the ...





1. Go to the source forge site (click on "?') (https://sourceforge.net/projects/tomcatplugin/)

[https://a.fsdn.com/allura/p/tomcatplugin/icon?1487932622]<https://sourceforge.net/projects/tomcatplugin/>

Eclipse Tomcat Plugin download | SourceForge.net<https://sourceforge.net/projects/tomcatplugin/>
sourceforge.net
Download Eclipse Tomcat Plugin for free. Simple handling of a tomcat server in Eclipse IDE. The Eclipse Tomcat Plugin provides simple integration of a ...



2. Download the version of the tomcat plugin

3. Unzip the file, there should be folders features and plugins

4. Put the files of the folders into their respective folders in the eclipse root directory

5. Restart eclispe.

MG>JDK 8 WARNING: you may have to manually edit context.xml and .tomcatplugin (be sure to copy to backup first!)

MG>JDK9: Untested

MG>if you experience Handshake errors apparently need JCE installed

1) Download and unzip "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8" (first link google in my case)

2) replace both files in the directory $JAVA_HOME/jre/lib/security

3) restart eclipse.

Thank you,
Mayank
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Need to install Solr in Tomcat in Eclipse

Posted by Shawn Heisey <ap...@elyograg.org>.
On 2/9/2018 4:21 AM, Mayank Kumar wrote:
> I am Mayank and just wanted to contribute to Apache Solr.
> 
> I want to deploy the solr application in Apache tomcat in Eclipse so that I will be able to debug it.
> 
> Can anybody help me in doing the same.

You MIGHT be able to get new Solr versions to run in Tomcat at the 
moment, but this capability could disappear at any time.  The 
combination is not officially supported, and it's always possible that 
some new capability that gets added to Solr will explicitly use Jetty 
classes.

The only officially supported option is the Jetty that comes with Solr:

https://wiki.apache.org/solr/WhyNoWar

I was trying to adapt the instructions on the following page to Solr 
7.2, but Solr fails to start, and nothing gets logged to indicate why it 
never starts:

https://wiki.apache.org/solr/HowToConfigureEclipse

This is the command I tried (on Windows):

bin\solr start -f -a "-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7666" -m 4g

The only thing that gets logged is:

Listening for transport dt_socket at address: 7666

I also tried without the "-f" option.  That option starts Solr in the 
foreground and logs to the console.

If I start without the -a option and the debug parameters, then Solr 
starts just fine.

Thanks,
Shawn

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: Need to install Solr in Tomcat in Eclipse

Posted by Tomas Fernandez Lobbe <tf...@apple.com>.
Hi Mayank, 
I haven’t tried it yet, but a user proposed a patch to add Eclipse launchers. See https://issues.apache.org/jira/browse/SOLR-11331. It’s not running Tomcat though, It uses the Jetty jars that are shipped with Solr. 
Note that, for creating the Eclipse project and for running unit tests you only need to `ant eclipse`, and then import as existing project to Eclipse, as described here: https://wiki.apache.org/solr/HowToConfigureEclipse.

I hope it helps. 

Tomás

> On Feb 9, 2018, at 3:21 AM, Mayank Kumar <ma...@gmail.com> wrote:
> 
> Hi,
> 
> I am Mayank and just wanted to contribute to Apache Solr.
> 
> I want to deploy the solr application in Apache tomcat in Eclipse so that I will be able to debug it.
> 
> Can anybody help me in doing the same.
> 
> 
> Thank you,
> Mayank
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org