lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7429) Remove Solr server module sync-hack introduced in SOLR-4050.
Date Wed, 22 Apr 2015 14:10:59 GMT

    [ https://issues.apache.org/jira/browse/SOLR-7429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14507140#comment-14507140
] 

Shalin Shekhar Mangar commented on SOLR-7429:
---------------------------------------------

I need help to fix branch_5x. See the following sequence of steps.

{code}
cd solr
ant server
cd server
java -jar start.jar

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
	at org.eclipse.jetty.start.Main.start(Main.java:615)
	at org.eclipse.jetty.start.Main.main(Main.java:96)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletResponse
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructor0(Class.java:3075)
	at java.lang.Class.newInstance(Class.java:412)
	at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:338)
	at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:296)
	at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1247)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1182)
	... 7 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletResponse
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 16 more

Usage: java -jar start.jar [options] [properties] [configs]
       java -jar start.jar --help  # for more information

java -jar start.jar --dry-run
/home/shalin/programs/jdk8/jre/bin/java -Djetty.home=/home/shalin/work/oss/branch_5x/solr/server
-cp /home/shalin/work/oss/branch_5x/solr/server/resources:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-deploy/jars/jetty-deploy-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-servlets/jars/jetty-servlets-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.slf4j/jcl-over-slf4j/jars/jcl-over-slf4j-1.7.7.jar:/home/shalin/.ivy2/cache/org.slf4j/jul-to-slf4j/jars/jul-to-slf4j-1.7.7.jar:/home/shalin/.ivy2/cache/log4j/log4j/bundles/log4j-1.2.17.jar:/home/shalin/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar:/home/shalin/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.7.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-rewrite/jars/jetty-rewrite-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-8.1.10.v20130312.jar:/home/shalin/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-8.1.10.v20130312.jar
org.eclipse.jetty.xml.XmlConfiguration /tmp/start7143644878484375300.properties /home/shalin/work/oss/branch_5x/solr/server/etc/jetty.xml

ls lib/
ext                                      jetty-http-8.1.10.v20130312.jar     jetty-security-8.1.10.v20130312.jar
 jetty-util-8.1.10.v20130312.jar
javax.servlet-api-3.0.1.jar              jetty-io-8.1.10.v20130312.jar       jetty-server-8.1.10.v20130312.jar
   jetty-webapp-8.1.10.v20130312.jar
jetty-continuation-8.1.10.v20130312.jar  jetty-jmx-8.1.10.v20130312.jar      jetty-servlet-8.1.10.v20130312.jar
  jetty-xml-8.1.10.v20130312.jar
jetty-deploy-8.1.10.v20130312.jar        jetty-rewrite-8.1.10.v20130312.jar  jetty-servlets-8.1.10.v20130312.jar
{code}

The servlet-api jar is present in lib but that jar is not being included in jetty's classpath
as is apparent from the output of --dry-run. I can't quite figure out why though.

> Remove Solr server module sync-hack introduced in SOLR-4050.
> ------------------------------------------------------------
>
>                 Key: SOLR-7429
>                 URL: https://issues.apache.org/jira/browse/SOLR-7429
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: Trunk, 5.2
>
>         Attachments: SOLR-7429-fix-servlet-api-deps.patch, SOLR-7429.patch
>
>
> This is annoying to the beast script I have and for other obvious reasons. We would really
like to use sync=true here like everywhere. I'll see what I can do.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message