tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Forstmayr" <a.forstm...@gmx.de>
Subject Error opening zip file /usr/bin/build-classpath
Date Sun, 27 Sep 2009 12:51:46 GMT
Hello!

I wrote a Java/Spring application and it works on my local SLES 10 testing
vm and all other test systems perfectly. If I deploy it on another SLES 10
SP2 (x86_64) server with Tomcat 5.0.28 and java-1_5_0-ibm-1.5.0_sr7 it also
works at first view, but if I want to view some pages of the app I get the
following error on the screen:

 

Compile failed; see the compiler error output for details.
        org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
        org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
        org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilt
er(FilterChainProxy.java:378)
 
...

 

In the log file:

 

2009-09-25 09:28:25,596 [http-8080-Processor25] ERROR
org.apache.jasper.compiler.Compiler - Env: Compile:
javaFileName=/srv/www/tomcat5/base/work/Catalina/localhost/myapp//org/apache
/jsp/WEB_002dINF/jsp/myjsp_jsp.java
 
classpath=/srv/www/tomcat5/base/webapps/myapp/WEB-INF/classes/:...:/usr/shar
e/tomcat5/common/classes/:/usr/share/java/xerces-j2-2.7.1.jar:/usr/share/jav
a/xerces-j2-2.7.1.jar:/usr/share/tomcat5/common/lib/naming-resources.jar:/us
r/share/tomcat5/common/lib/jasper-compiler.jar:/usr/share/tomcat5/common/lib
/jasper-runtime.jar:/usr/share/tomcat5/common/lib/naming-common.jar:/usr/sha
re/tomcat5/common/lib/naming-factory.jar:/usr/share/tomcat5/common/lib/namin
g-java.jar:/usr/share/java/ant-1.6.5.jar:/usr/share/java/jakarta-commons-col
lections-3.1.jar:/usr/share/java/jakarta-commons-dbcp-1.2.1.jar:/usr/share/j
ava/jakarta-commons-pool-1.2.jar:/usr/share/java/jakarta-commons-logging-api
-1.0.4.jar:/usr/share/java/jakarta-commons-el-1.0.jar:/usr/share/java/jaf-1.
0.2.jar:/usr/share/java/jta-1.0.1.jar:/usr/share/java/javamail/mailapi-1.3.3
_01.jar:/usr/share/java/javamail/imap-1.3.3_01.jar:/usr/share/java/javamail/
imap-1.3.3_01.jar:/usr/share/java/javamail/pop3-1.3.3_01.jar:/usr/share/java
/javamail/mailapi-1.3.3_01.jar:/usr/share/java/javamail/smtp-1.3.3_01.jar:/u
sr/share/java/javamail/pop3-1.3.3_01.jar:/usr/share/java/javamail/smtp-1.3.3
_01.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/server.jar:/usr/shar
e/java/mx4j/mx4j-jmx-1.1.1.jar:/usr/share/java/jspapi-5.0.18.jar:/usr/share/
java/servletapi5-5.0.18.jar:/usr/share/java/log4j-1.2.12.jar:/usr/lib64/jvm/
java-1_5_0-ibm-1.5.0_sr7/jre/lib/core.jar:/usr/share/java/servletapi5-5.0.18
.jar:/usr/share/java/jspapi-5.0.18.jar:/usr/share/java/ant-1.6.5.jar:/usr/sh
are/java/jakarta-commons-collections-3.1.jar:/usr/share/java/jakarta-commons
-dbcp-1.2.1.jar:/usr/share/java/jakarta-commons-pool-1.2.jar:/usr/share/java
/jakarta-commons-logging-api-1.0.4.jar:/usr/share/java/jakarta-commons-el-1.
0.jar:/usr/share/java/jaf-1.0.2.jar:/usr/share/java/jta-1.0.1.jar:/usr/share
/java/javamail/mailapi-1.3.3_01.jar:/usr/share/java/javamail/imap-1.3.3_01.j
ar:/usr/share/java/javamail/imap-1.3.3_01.jar:/usr/share/java/javamail/pop3-
1.3.3_01.jar:/usr/share/java/javamail/mailapi-1.3.3_01.jar:/usr/share/java/j
avamail/smtp-1.3.3_01.jar:/usr/share/java/javamail/pop3-1.3.3_01.jar:/usr/sh
are/java/javamail/smtp-1.3.3_01.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/
jre/lib/server.jar:/usr/share/java/mx4j/mx4j-jmx-1.1.1.jar:/usr/share/java/j
spapi-5.0.18.jar:/usr/share/java/servletapi5-5.0.18.jar:/usr/share/java/log4
j-1.2.12.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/core.jar:/usr/l
ib64/jvm/java-1_5_0-ibm-1.5.0_sr7/lib/tools.jar:/usr/share/tomcat5/bin/boots
trap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/bin/build-class
path:/%20error:/%20JVM_LIBDIR%20/usr/lib64/jvm-exports/java-1%20does%20not%2
0exist%20or%20is%20not%20a%20directory:/usr/bin/build-classpath:/%20error:/%
20JVM_LIBDIR%20/usr/lib64/jvm-exports/java-1%20does%20not%20exist%20or%20is%
20not%20a%20directory:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/dt
fj-interface.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/CmpCrmf
.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/ibmcmsprovider.jar:
/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/dtfj.jar:/usr/lib64/jvm/
java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/IBMKeyManagementServer.jar:/usr/lib64/j
vm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/gskikm.jar:/usr/lib64/jvm/java-1_5_0
-ibm-1.5.0_sr7/jre/lib/ext/ibmjceprovider.jar:/usr/lib64/jvm/java-1_5_0-ibm-
1.5.0_sr7/jre/lib/ext/ibmjcefips.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7
/jre/lib/ext/ibmpkcs11impl.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/l
ib/ext/ibmkeycert.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/ib
mpkcs11.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/ibmsaslprovi
der.jar:/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/indicim.jar:/usr
/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/jaccess.jar:/usr/lib64/jvm/j
ava-1_5_0-ibm-1.5.0_sr7/jre/lib/ext/jdmpview.jar
 
cp=/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/lib/tools.jar:/usr/share/tomcat5/
bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/bin/bu
ild-classpath: error: JVM_LIBDIR /usr/lib64/jvm-exports/java-1 does not
exist or is not a directory:/usr/bin/build-classpath: error: JVM_LIBDIR
/usr/lib64/jvm-exports/java-1 does not exist or is not a directory
    cp=/srv/www/tomcat5/base/webapps/myapp/WEB-INF/classes
    cp=/...
     cp=/%20error
 
cp=/%20JVM_LIBDIR%20/usr/lib64/jvm-exports/java-1%20does%20not%20exist%20or%
20is%20not%20a%20directory
    cp=/usr/bin/build-classpath
    cp=/%20error
 
cp=/%20JVM_LIBDIR%20/usr/lib64/jvm-exports/java-1%20does%20not%20exist%20or%
20is%20not%20a%20directory
...
work dir=/srv/www/tomcat5/base/work/Catalina/localhost/myapp
    extension dir=/usr/lib64/jvm/java-1_5_0-ibm-1.5.0_sr7/jre/lib/ext
    srcDir=/srv/www/tomcat5/base/work/Catalina/localhost/myapp
   compilerTargetVM=1.3
   compilerSourceVM=1.3
    include=org/apache/jsp/WEB_002dINF/jsp/myjsp_jsp.java
 
2009-09-25 09:28:43,496 [http-8080-Processor24] ERROR
org.apache.jasper.compiler.Compiler - Error compiling file:
/srv/www/tomcat5/base/work/Catalina/localhost/myapp//org/apache/jsp/WEB_002d
INF/jsp/myjsp_jsp.java     [javac] Compiling 1 source file
 
error: error reading /usr/bin/build-classpath; Error opening zip file
/usr/bin/build-classpath
1 error
 
What catches my eye here is:
 
/usr/bin/build-classpath: error: JVM_LIBDIR /usr/lib64/jvm-exports/java-1
does not exist or is not a directory

 

Does anybody have an idea? I get this error always on the same pages. One
measure that helped at first view was to increase the memory of Tomcat in
the JAVA_OPTS but the pages on which this error occurs only changed... It is
also remarkable, that compilerTargetVM and compilerSourceVM both are set to
1.3. Shouldn't that be 1.5? The whole app is written in Java 5.

 

Regards,

Andi


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