axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Developer Developer <devquesti...@gmail.com>
Subject Re: Deployment problem with Axis 1.2.1/Tomcat 5.5.9/ JDK 1.5
Date Mon, 10 Oct 2005 20:16:47 GMT
I got similar error, I solved it by copying all the jar files from
 axis/lib to tomcat shared lib ( i.e ../shared/lib).


 On 10/10/05, Bolke de Bruin <bdbruin@aub.nl> wrote:
>
> I did some further digging (thanks for the pointers), but still I am
> facing the same problem. The Service class does get accessed (I have a
> static part which logs things), but still I have 2 errors (and no
> service).
>
> I did some searching on the net but could not find anything except that
> my "typemappings/beanmappings" might be incorrect.
> Mind you these mappings are copied straight from a tomcat 5.027
> installation and do work there.
>
> I attached the two errors, maybe someone has seen them before?
>
> Kind regards,
>
> Bolke
>
> Larry Meadors wrote:
> > 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 <bdbruin@aub.nl> 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:\ProgramFiles\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
> >>
> >>
>
>
>
> 2005-10-10 21:54:48,531 [http-8080-Processor25] DEBUG
> org.apache.axis.encoding.ser.BaseDeserializerFactory - Exception:
> java.lang.NoSuchMethodException:
> org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(
> java.lang.Class, javax.xml.namespace.QName)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.getConstructor(Unknown Source)
> at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(
> BaseDeserializerFactory.java:246)
> at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(
> WSDDService.java:554)
> at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
> :253)
> at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java
> :233)
> at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(
> WSDDDeployment.java:192)
> at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(
> WSDDDocument.java:139)
> at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java
> :65)
> at org.apache.axis.configuration.FileProvider.configureEngine(
> FileProvider.java:179)
> at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
> at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
> at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
> at org.apache.axis.server.DefaultAxisServerFactory.createServer(
> DefaultAxisServerFactory.java:109)
> at org.apache.axis.server.DefaultAxisServerFactory.getServer(
> DefaultAxisServerFactory.java:73)
> at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
> at org.apache.axis.transport.http.AxisServletBase.getEngine(
> AxisServletBase.java:185)
> at org.apache.axis.transport.http.AxisServletBase.getOption(
> AxisServletBase.java:396)
> at org.apache.axis.transport.http.AxisServletBase.init(
> AxisServletBase.java:112)
> at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1091)
> at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
> :750)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:130)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :856)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
> 2005-10-10 21:55:13,906 [http-8080-Processor25] INFO
> org.apache.axis.EXCEPTIONS - Exception:
> java.lang.NoClassDefFoundError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:176)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
> at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142)
> at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:85)
> at org.apache.axis.providers.java.JavaProvider.getServiceClass(
> JavaProvider.java:428)
> at org.apache.axis.providers.java.JavaProvider.initServiceDesc(
> JavaProvider.java:461)
> at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(
> SOAPService.java:285)
> at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(
> WSDDService.java:500)
> at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(
> WSDDDeployableItem.java:274)
> at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(
> WSDDDeployableItem.java:260)
> at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(
> WSDDDeployment.java:427)
> at org.apache.axis.configuration.FileProvider.getService(FileProvider.java
> :231)
> at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
> at org.apache.axis.MessageContext.setTargetService(MessageContext.java
> :755)
> at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.java:50)
> at org.apache.axis.handlers.http.URLMapper.generateWSDL(URLMapper.java:58)
> at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java
> :33)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
> at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:446)
> at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java
> :68)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.axis.transport.http.AxisServlet.processQuery(
> AxisServlet.java:1217)
> at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at org.apache.axis.transport.http.AxisServletBase.service(
> AxisServletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :856)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> 2005-10-10 21:55:13,906 [http-8080-Processor25] DEBUG
> org.apache.axis.transport.http.AxisServlet - Exit: doGet()
>
>

Mime
View raw message