lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ☼ 林永忠 ☼ (Yung-chung Lin) <henearkrx...@gmail.com>
Subject Exception fixing docBase for context [error in opening zip file]
Date Mon, 23 Apr 2012 06:32:39 GMT
Hi,

I am experiencing a problem starting solr with Tomcat 6.

My system:  Ubuntu 11.

ii  tomcat6                                6.0.32-5ubuntu1.2
        Servlet and JSP engine
ii  openjdk-6-jre                          6b23~pre11-0ubuntu1.11.10.2
        OpenJDK Java runtime, using Hotspot JIT

I'm using the nightly build war
file: apache-solr-4.0-2012-04-21_08-25-44.war

Can anyone give me a pointer? Thanks.

Below is the error message I got.

2012/4/23 下午 02:24:42 org.apache.coyote.http11.Http11Protocol init
資訊: Initializing Coyote HTTP/1.1 on http-8080
2012/4/23 下午 02:24:42 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 575 ms
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardService start
資訊: Starting service Catalina
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardEngine start
資訊: Starting Servlet Engine: Apache Tomcat/6.0.32
2012/4/23 下午 02:24:42 org.apache.catalina.startup.HostConfig
deployDescriptor
資訊: Deploying configuration descriptor ROOT.xml
2012/4/23 下午 02:24:42 org.apache.catalina.startup.HostConfig
deployDescriptor
資訊: Deploying configuration descriptor solr.xml
2012/4/23 下午 02:24:42 org.apache.catalina.startup.ContextConfig init
嚴重的: Exception fixing docBase for context [/solr]
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
 at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at java.util.jar.JarFile.<init>(JarFile.java:150)
 at java.util.jar.JarFile.<init>(JarFile.java:87)
at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:90)
 at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:66)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:86)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
 at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:148)
at
org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:886)
 at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1021)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5707)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4449)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
 at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
 at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardContext
resourcesStart
嚴重的: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file :
/home/yclin/Projects/search/search/solr/wars/apache-solr-4.0-2012-04-21_08-25-44.war
at
org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:130)
 at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4320)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardContext start
嚴重的: Error in resourceStart()
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardContext start
嚴重的: Error getConfigured
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardContext start
嚴重的: Context [/solr] startup failed due to previous errors
2012/4/23 下午 02:24:42 org.apache.catalina.core.StandardContext stop
資訊: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr] has
not been started
2012/4/23 下午 02:24:42 org.apache.coyote.http11.Http11Protocol start
資訊: Starting Coyote HTTP/1.1 on http-8080
2012/4/23 下午 02:24:42 org.apache.catalina.startup.Catalina start
資訊: Server startup in 237 ms


-- 
Best regards,
Yung-chung Lin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message