Look in your logs, and see if you have an earlier
"ExceptionInInitializerError" somewhere.
I have seen those cause later "NoClassDefFoundError" exceptions to be thrown.
Larry
On 10/8/05, Bolke de Bruin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having trouble getting a service deployed on a system with above
> specifications. "HappyAxis" says everything is find except for one
> optional library (which I am not using).
>
> The service bails out with "java.lang.NoClassDefFoundError". Of course I
> tried digging a little further into this (I needed to add some output to
> the axis libs - I could not find out which class failed to load). Weird
> thing is that if fails loading my 'main service'-class. I confirmed it
> is in one of the jars in the lib dir. Other classes of the same jar, do
> actually load. So I am a bit lost on this:
>
> =====
> Trying to load: nl.aub.ticketservice.response.BookedSeating
> Trying to load: org.apache.axis.handlers.http.URLMapper
> Trying to load: org.apache.axis.handlers.http.HTTPAuthHandler
> Trying to load: org.apache.axis.handlers.SimpleSessionHandler
> - Hibernate 3.0.5
> - hibernate.properties not found
> - using CGLIB reflection optimizer
> - using JDK 1.4 java.sql.Timestamp handling
> - configuring from resource: /hibernate.cfg.xml
> - Configuration resource: /hibernate.cfg.xml
> - Mapping resource: Client.hbm.xml
> Trying to load: nl.aub.ticketservice.Service
> - Exception:
> java.lang.NoClassDefFoundError
> =====
>
> ('Trying to load' is extra output - all the nl.* classes are in the same
> jar)
>
> Regarding the libraries this is a basic install of tomcat 5.5 no
> extra's. All libraries are the lib dir of the application. I did not put
> any (extra) libraries in common/lib.
>
> I also attached the happyaxis output. Maybe someone is able to give me
> some directions where to look for this error?
>
> Thanks in advance & Kind regards,
>
> B. de Bruin
>
>
> Axis Happiness Page
> Examining webapp configuration
>
> Needed Components
> Found SAAJ API (javax.xml.soap.SOAPMessage) at C:\Program Files\Apache
> Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\saaj.jar
> Found JAX-RPC API (javax.xml.rpc.Service) at C:\Program Files\Apache Software
> Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\jaxrpc.jar
> Found Apache-Axis (org.apache.axis.transport.http.AxisServlet) at C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ticketservice\WEB-INF\lib\axis.jar
> Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource) at
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ticketservice\WEB-INF\lib\commons-discovery-0.2.jar
> Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at
> C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.5\bin\commons-logging-api.jar
> Found Log4j (org.apache.log4j.Layout) at C:\Program Files\Apache Software
> Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\log4j-1.2.9.jar
> Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl) at C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ticketservice\WEB-INF\lib\wsdl4j-1.5.1.jar
> Found JAXP implementation (javax.xml.parsers.SAXParserFactory) at an unknown
> location
> Found Activation API (javax.activation.DataHandler) at C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ticketservice\WEB-INF\lib\activation.jar
> Optional Components
> Found Mail API (javax.mail.internet.MimeMessage) at C:\Program Files\Apache
> Software Foundation\Tomcat 5.5\webapps\ticketservice\WEB-INF\lib\mail.jar
>
> Warning: could not find class org.apache.xml.security.Init from file
> xmlsec.jar
> XML Security is not supported
> See http://xml.apache.org/security/
>
> Found Java Secure Socket Extension (javax.net.ssl.SSLSocketFactory) at an
> unknown location
> The core axis libraries are present. 1 optional axis library is missing
> Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain
> java.* or javax.* packages into CATALINA_HOME/common/lib
> jaxrpc.jar and saaj.jar are two such libraries.
>
> Note: Even if everything this page probes for is present, there is no
> guarantee your web service will work, because there are many configuration
> options that we do not check for. These tests are necessary but not sufficient
> Examining Application Server
> Servlet version 2.4
> XML Parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> XML ParserLocation an unknown location
> Examining System Properties
>
> java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path=C:\Program Files\Java\jre1.5.0_04\bin
> java.vm.version=1.5.0_04-b05
> shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
> java.vm.vendor=Sun Microsystems Inc.
> java.vendor.url=http://java.sun.com/
> path.separator=;
> java.vm.name=Java HotSpot(TM) Client VM
> tomcat.util.buf.StringCache.byte.enabled=true
> file.encoding.pkg=sun.io
> user.country=NL
> sun.os.patch.level=Service Pack 2
> java.vm.specification.name=Java Virtual Machine Specification
> user.dir=C:\WINDOWS\system32
> java.runtime.version=1.5.0_04-b05
> java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
> java.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\common\endorsed
> os.arch=x86
> java.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp
> line.separator=
>
> java.vm.specification.vendor=Sun Microsystems Inc.
> user.variant=
> java.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> java.naming.factory.url.pkgs=org.apache.naming
> os.name=Windows XP
> sun.jnu.encoding=Cp1252
> java.library.path=C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
> Files\LANDesk\ManagementSuite
> java.specification.name=Java Platform API Specification
> java.class.version=49.0
> sun.management.compiler=HotSpot Client Compiler
> os.version=5.1
> user.home=C:\Documents and Settings\Administrator.DEV-354
> user.timezone=Europe/Berlin
> catalina.useNaming=true
> java.awt.printerjob=sun.awt.windows.WPrinterJob
> java.specification.version=1.5
> file.encoding=Cp1252
> catalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
> user.name=SYSTEM
> java.class.path=C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\bin\bootstrap.jar
> java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
> package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
> java.vm.specification.version=1.0
> sun.arch.data.model=32
> java.home=C:\Program Files\Java\jre1.5.0_04
> java.specification.vendor=Sun Microsystems Inc.
> user.language=nl
> awt.toolkit=sun.awt.windows.WToolkit
> java.vm.info=mixed mode, sharing
> java.version=1.5.0_04
> java.ext.dirs=C:\Program Files\Java\jre1.5.0_04\lib\ext
> sun.boot.class.path=C:\Program Files\Java\jre1.5.0_04\lib\rt.jar;C:\Program
> Files\Java\jre1.5.0_04\lib\i18n.jar;C:\Program
> Files\Java\jre1.5.0_04\lib\sunrsasign.jar;C:\Program
> Files\Java\jre1.5.0_04\lib\jsse.jar;C:\Program
> Files\Java\jre1.5.0_04\lib\jce.jar;C:\Program
> Files\Java\jre1.5.0_04\lib\charsets.jar;C:\Program
> Files\Java\jre1.5.0_04\classes
> java.vendor=Sun Microsystems Inc.
> server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
> catalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5
> file.separator=\
> java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
> common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
> sun.cpu.endian=little
> sun.io.unicode.encoding=UnicodeLittle
> package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
> sun.desktop=windows
> sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
>
> Platform: Apache Tomcat/5.5.9
>
>