问题描述
- Error: Could not find or load main class =8080
- solr 4.10 在tomcat上的配置问题
这是日志:
16986 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442231152311&wt=json} status=0 QTime=3
17027 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442231152347&wt=json} status=0 QTime=7
54539069 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442285613656&wt=json} status=0 QTime=11
54539103 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442285613696&wt=json} status=0 QTime=6
54553500 [http-bio-8080-exec-1] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442285628073&wt=json} status=0 QTime=0
54553522 [http-bio-8080-exec-6] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442285628094&wt=json} status=0 QTime=3
Error: Could not find or load main class =8080
67099246 [http-bio-8080-exec-2] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298217972&wt=json} status=0 QTime=1
67099276 [http-bio-8080-exec-2] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298218001&wt=json} status=0 QTime=3
67101938 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298220642&wt=json} status=0 QTime=1
67101965 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298220667&wt=json} status=0 QTime=3
67102672 [http-bio-8080-exec-2] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298221344&wt=json} status=0 QTime=0
67102688 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298221358&wt=json} status=0 QTime=4
67103231 [http-bio-8080-exec-9] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298221880&wt=json} status=0 QTime=0
67103249 [http-bio-8080-exec-10] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298221893&wt=json} status=0 QTime=3
67103864 [http-bio-8080-exec-4] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298222485&wt=json} status=0 QTime=0
67103891 [http-bio-8080-exec-1] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298222499&wt=json} status=0 QTime=3
67104588 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298223159&wt=json} status=0 QTime=0
67104606 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298223179&wt=json} status=0 QTime=3
67105890 [http-bio-8080-exec-9] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298224394&wt=json} status=0 QTime=0
67105907 [http-bio-8080-exec-9] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298224410&wt=json} status=0 QTime=3
Error: Could not find or load main class =8080
Error: Could not find or load main class =8080
67244404 [http-bio-8080-exec-7] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298357010&wt=json} status=0 QTime=0
67244433 [http-bio-8080-exec-7] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298357037&wt=json} status=0 QTime=3
Error: Could not find or load main class =8080我的环境变量没有问题
解决方案
昨天在写Java代码的时候,Eclipse突然抽了,报了这个错误,然后用尽了各种方法都没有用,比如说JDK重新安装,Eclipse重启N次,但是都没有,后来去国外的一个网站找到了答案,居然是.metadata这个文件抽了,我当时很想说,“**ck”,是的,你没看错,删除这个文件,重启Eclipse就好了。
好了,就先记下这一点吧!......
答案就在这里:Eclipse Error: Could not find or load main class [duplicate]
解决方案二:
你也是吊的不行,还换个号继续回答问题
时间: 2024-11-09 02:07:20