axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bell, Douglas" <DB...@boingo.com>
Subject RE: Unable to deploy typemapping / ClassNotFoundException
Date Thu, 15 Jun 2006 21:35:31 GMT
Hi Ben,
 
My first guess would be that you misspelled the class name in the WSDD
(it looks like CitationStatusType is missing an e) If that's the correct
class name, check your WSDD and make sure there is a beanMapping for
your type.
<beanMapping qname="myNS:CitationStatusTyp"
xmlns:myNS="http://server.gen.citation.services.ed.uptodate.com"
languageSpecificType="java:com.uptodate.es.services.citation.gen.server.
CitationStatusTyp"/>

Hope this helps,

- Doug


  _____  

From: Ben Ethridge [mailto:bethridge@UpToDate.com] 
Sent: Thursday, June 15, 2006 2:23 PM
To: axis-user@ws.apache.org
Subject: Unable to deploy typemapping / ClassNotFoundException



Hi.

 

My question is this: What typically causes this "Unable to deploy
typemapping" error?

 

Details:

 

After attempting the normal deployment and getting only a blank page
back, (see my other thread: 'AxisServlet returns "And now... Some
Services" only (blank page)'...

 

...I changed over to do the "Advanced Installation: adding Axis to your
own Webapp" (see: http://ws.apache.org/axis/java/install.html).

 

This at least gets me an error message, so I now have something to go
on:

 

------------------------------------------------------------------------
-------------------------------------------------

Unable to deploy typemapping: {http://www.uptodate.com}CitationStatusTyp

java.lang.ClassNotFoundException:
com.uptodate.es.services.citation.gen.server.CitationStatusTyp

     at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1352)

     at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1198)

     at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:186)

     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:100)

     at
org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(
WSDDTypeMapping.java:183)

     at
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDServic
e.java:542)

     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.jav
a:192)

     at
org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.ja
va: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(DefaultAxis
ServerFactory.java:109)

     at
org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisSer
verFactory.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 javax.servlet.GenericServlet.init(GenericServlet.java:211)

     at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1105)

     at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)

     at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3917)

     at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4201
)

     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)

     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

     at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
608)

     at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:535)

     at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)

     at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)

     at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
0)

     at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)

     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

     at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

     at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

     at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

     at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

     at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

     at java.lang.reflect.Method.invoke(Method.java:585)

     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

Jun 15, 2006 4:58:45 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive utdEditor.war

------------------------------------------------------------------------
-------------------------------------------------

 

This setup (essentially the same) works ok on my
Eclipse/Tomcat/Axis/Windows setup, so I'm thinking it's some kind of
library jar and/or classpath setup problem, but I just don't see it yet.

 

Axis itself is working ok, i.e. I can run the sample stock app ok. 

 

My setup is as follows:

 

Axis 1.2.1

Tomcat 5.5.17

Java 1.5.0_07

Linux Redhat 3.4.5-2, which if I remove my custom JAVA_HOME to JDK1.5
shows java version 1.4.2

 

Here is my setup from the Axis happy page:

 

------------------------------------------------------------------------
-----------

 


Needed Components


*	Found SAAJ API ( javax.xml.soap.SOAPMessage ) at
/data/shared/editor/axis/axis-1_2_1/webapps/axis/WEB-INF/lib/saaj.jar 
*	Found JAX-RPC API ( javax.xml.rpc.Service ) at
/data/shared/editor/axis/axis-1_2_1/webapps/axis/WEB-INF/lib/jaxrpc.jar 
*	Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet )
at /data/shared/editor/axis/axis-1_2_1/webapps/axis/WEB-INF/lib/axis.jar

*	Found Jakarta-Commons Discovery (
org.apache.commons.discovery.Resource ) at
/data/shared/editor/axis/axis-1_2_1/webapps/axis/WEB-INF/lib/commons-dis
covery-0.2.jar 
*	Found Jakarta-Commons Logging ( org.apache.commons.logging.Log )
at
/data/shared/editor/tomcat/apache-tomcat-5.5.17/bin/commons-logging-api.
jar 
*	Found Log4j ( org.apache.log4j.Layout ) at
/data/shared/editor/axis/axis-1_2_1/webapps/axis/WEB-INF/lib/log4j-1.2.8
.jar 
*	Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl )
at
/data/shared/editor/axis/axis-1_2_1/webapps/axis/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
/data/shared/editor/axis/axis-1_2_1/webapps/axis/WEB-INF/lib/activation.
jar 


Optional Components


*	Found Mail API ( javax.mail.internet.MimeMessage ) at
/data/shared/editor/axis/axis-1_2_1/webapps/axis/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 wanted optional axis librar(ies)
are 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=/data/shared/editor/java/jdk1.5.0_07/jre/lib/i386
java.vm.version=1.5.0_07-b03
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=:
java.vm.name=Java HotSpot(TM) Server VM
tomcat.util.buf.StringCache.byte.enabled=true
file.encoding.pkg=sun.io
java.util.logging.config.file=/shared/editor/tomcat/apache-tomcat-5.5.17
/conf/logging.properties
user.country=US
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/data/shared/editor/tomcat/apache-tomcat-5.5.17/bin
java.runtime.version=1.5.0_07-b03
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/shared/editor/tomcat/apache-tomcat-5.5.17/common/end
orsed
os.arch=i386
java.io.tmpdir=/shared/editor/tomcat/apache-tomcat-5.5.17/temp
line.separator=
 
java.vm.specification.vendor=Sun Microsystems Inc.
java.util.logging.manager=org.apache.juli.ClassLoaderLogManager
java.naming.factory.url.pkgs=org.apache.naming
os.name=Linux
sun.jnu.encoding=UTF-8
java.library.path=/data/shared/editor/java/jdk1.5.0_07/jre/lib/i386/serv
er:/data/shared/editor/java/jdk1.5.0_07/jre/lib/i386:/data/shared/editor
/java/jdk1.5.0_07/jre/../lib/i386
java.specification.name=Java Platform API Specification
java.class.version=49.0
sun.management.compiler=HotSpot Server Compiler
os.version=2.6.9-34.ELsmp
user.home=/home/deved
user.timezone=America/New_York
catalina.useNaming=true
java.awt.printerjob=sun.print.PSPrinterJob
java.specification.version=1.5
file.encoding=UTF-8
catalina.home=/shared/editor/tomcat/apache-tomcat-5.5.17
user.name=deved
java.class.path=:/shared/editor/tomcat/apache-tomcat-5.5.17/bin/bootstra
p.jar:/shared/editor/tomcat/apache-tomcat-5.5.17/bin/commons-logging-api
.jar
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,or
g.apache.tomcat.,org.apache.jasper.
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=/data/shared/editor/java/jdk1.5.0_07/jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
java.vm.info=mixed mode
java.version=1.5.0_07
java.ext.dirs=/data/shared/editor/java/jdk1.5.0_07/jre/lib/ext
sun.boot.class.path=/data/shared/editor/java/jdk1.5.0_07/jre/lib/rt.jar:
/data/shared/editor/java/jdk1.5.0_07/jre/lib/i18n.jar:/data/shared/edito
r/java/jdk1.5.0_07/jre/lib/sunrsasign.jar:/data/shared/editor/java/jdk1.
5.0_07/jre/lib/jsse.jar:/data/shared/editor/java/jdk1.5.0_07/jre/lib/jce
.jar:/data/shared/editor/java/jdk1.5.0_07/jre/lib/charsets.jar:/data/sha
red/editor/java/jdk1.5.0_07/jre/classes
java.vendor=Sun Microsystems Inc.
server.loader=${catalina.home}/server/classes,${catalina.home}/server/li
b/*.jar
catalina.base=/shared/editor/tomcat/apache-tomcat-5.5.17
file.separator=/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.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.t
omcat.,org.apache.jasper.,sun.beans.
sun.cpu.isalist=
  _____  


Platform: Apache Tomcat/5.5.17

------------------------------------------------------------------------
-----------

 

What typically causes this "Unable to deploy typemapping" error?

 

Ben

This e-mail message may contain confidential and/or privileged
information. If you are 
not an addressee or otherwise authorized to receive this message, you
should not use, 
copy, disclose or take any action based on this e-mail or any
information contained in the 
message. If you have received this material in error, please advise the
sender immediately 
by reply e-mail and delete this message. 

Thank you.

Mime
View raw message