Hi all,

I'm having problems installing axis2 1.5.1 war distribution on a tomcat
server.

I have successfully installed on my dev machine with tomcat 5.0.28, but
on web hotel server with tomcat 5.0.30 i get lots of errors in the
console, and the version service does not work.

I have exploded the axis2 war-file and then moved the entire structure
as an "axis2" folder into the tomcat webapps folder. Tomcat finds the
web-app and starts it, but then the problems begin.

I  have googled alot on this problem and browsed through bug lists, but
haven't really found anything useful. Right now I don't know where to
start. Is this a tomcat configuration problem? Or is it an axis problem?
A classpath problem? A jdk/jre version problem? What? Any pointers
appreciated!

Kind regards,
/Leif


List of console output:

May 24, 2010 10:15:12 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-18171
May 24, 2010 10:15:12 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 902 ms
May 24, 2010 10:15:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Apache
May 24, 2010 10:15:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.30
May 24, 2010 10:15:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 24, 2010 10:15:15 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 24, 2010 10:15:15 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 24, 2010 10:15:15 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
May 24, 2010 10:15:15 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8171
May 24, 2010 10:15:15 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=9/45 config=/usr/local/tomcat/instance/c1417100/conf/jk2.properties
May 24, 2010 10:15:15 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-18171
May 24, 2010 10:15:15 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2962 ms
May 24, 2010 10:17:58 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /axis2 from URL file:/home/userC/c1417100/public_html/....../tomcat5-webapps/axis2
[INFO] Clustering has been disabled
[ERROR] The ping-1.5.1.mar module, which is not valid, caused null
java.lang.ExceptionInInitializerError
at org.apache.axis2.deployment.util.Utils.createTempFile(Utils.java:224) at org.apache.axis2.deployment.util.Utils.getURLsForAllJars(Utils.java:165) at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:899) at org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:115) at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:65) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251) at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68) at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63) at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147) at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4017) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.apache.axis2.deployment.util.TempFileManager.<clinit>(TempFileManager.java:191)
    ... 34 more
[ERROR] The addressing-1.5.1.mar module, which is not valid, caused Could not initialize class org.apache.axis2.deployment.util.TempFileManager java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.deployment.util.TempFileManager


And it goes on with similar probs for all (?) the modules.

The "happy page" for the not working inst:


  Axis2 Happiness Page


    Examining webapp configuration


            Essential Components

    Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
      at
    
/home/userC/c1417100/public_html/......../tomcat5-webapps/axis2/WEB-INF/lib/axis2-transport-http-1.5.1.jar
    Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
      at /usr/local/tomcat/bin/commons-logging-api.jar
    Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
      at an unknown location
    Found Streaming API for XML implementation
    (org.codehaus.stax2.XMLStreamWriter2)
      at
    
/home/userC/c1417100/public_html/......../tomcat5-webapps/axis2/WEB-INF/lib/wstx-asl-3.2.4.jar

    The core axis2 libraries are present.

    Note: Even if everything this page probes for is present, there is
    no guarantee your Axis Service will work, because there are many
    configuration options that we do not check for. These tests are
    necessary but not sufficient


    Examining Version Service

There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see whether it is working.


    Examining Application Server

    Servlet version     2.4
    Platform    Apache Tomcat/5.0.30


    Examining System Properties

java.runtime.name Java(TM) SE Runtime Environment sun.boot.library.path /usr/java/jdk1.6.0_07/jre/lib/i386 java.vm.version 10.0-b23 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) Server VM file.encoding.pkg sun.io user.country US sun.java.launcher SUN_STANDARD sun.os.patch.level unknown java .vm.specification.name Java Virtual Machine Specification user.dir /usr/local/tomcat/temp java.runtime.version 1.6.0_07-b06 java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.endorsed.dirs /usr/local/tomcat/common/endorsed os.arch i386 java.io.tmpdir /usr/local/tomcat/instance/c1417100/temp line.separator java.vm.specification.vendor Sun Microsystems Inc. java.naming.factory.url.pkgs org.apache.naming os.name Linux sun.jnu.encoding ISO-8859-1 java.library.path /usr/java/jdk1.6.0_07/jre/lib/ i386/server: /usr/java/jdk1.6.0_07/jre/lib/i386: /usr/java/jdk1.6.0_07/jre/../lib/i386: /usr/java/packages/lib/i386: /lib: /usr/lib java.specification.name Java Platform API Specification java.class.version 50.0 sun.management.compiler HotSpot Tiered Compilers os.version 2.4.21-63.ELsmp user.home /usr/local/tomcat/temp user.timezone Europe/Stockholm catalina.useNaming true java.awt.printerjob sun.print.PSPrinterJob file.encoding ISO-8859-1 java.specification.version 1.6 catalina.home /usr/local/tomcat user.name tomcat4 java.class.path /usr/java/latest/lib/tools.jar: /usr/local/tomcat/bin/bootstrap.jar: /usr/local/tomcat/bin/commons-logging-api.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 /usr/java/jdk1.6.0_07/jre java.specification.vendor Sun Microsystems Inc. user.language en java.vm.info mixed mode java.version 1.6.0_07 java.ext.dirs /usr/ java/jdk1.6.0_07/jre/lib/ext: /usr/java/packages/lib/ext sun.boot.class.path /usr/local/tomcat/common/endorsed/xercesImpl.jar: /usr/local/tomcat/common/endorsed/xml-apis.jar: /usr/java/jdk1.6.0_07/jre/lib/resources.jar: /usr/java/jdk1.6.0_07/jre/lib/rt.jar: /usr/java/jdk1.6.0_07/jre/lib/sunrsasign.jar: /usr/java/jdk1.6.0_07/jre/lib/jsse.jar: /usr/java/jdk1.6.0_07/jre/lib/jce.jar: /usr/java/jdk1.6.0_07/jre/lib/charsets.jar: /usr/java/jdk1.6.0_07/jre/classes java.vendor Sun Microsystems Inc. java.awt.headless true server.loader ${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar catalina.base /usr/local/tomcat/instance/c1417100 file.separator / java.vendor.url.bug http: //java.sun.com/cgi- bin/bugreport.cgi common.loader ${catalina.home}/common/classes,${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.cpu.isalist


And the happy page for the working inst:


  Axis2 Happiness Page


    Examining webapp configuration


            Essential Components

    Found Apache-Axis (org.apache.axis2.transport.http.AxisServlet)
      at
    C:\Tomcat\webapps\axis2\WEB-INF\lib\axis2-transport-http-1.5.1.jar
    Found Jakarta-Commons Logging (org.apache.commons.logging.Log)
      at C:\Tomcat\bin\commons-logging-api.jar
    Found Streaming API for XML (javax.xml.stream.XMLStreamReader)
      at an unknown location
    Found Streaming API for XML implementation
    (org.codehaus.stax2.XMLStreamWriter2)
      at C:\Tomcat\webapps\axis2\WEB-INF\lib\wstx-asl-3.2.4.jar

    The core axis2 libraries are present.

    Note: Even if everything this page probes for is present, there is
    no guarantee your Axis Service will work, because there are many
    configuration options that we do not check for. These tests are
    necessary but not sufficient


    Examining Version Service

    Found Axis2 default Version service and Axis2 is working properly.

    Now you can drop a service archive in axis2/WEB-INF/services.
    Following output was produced while invoking Axis2 version service

    Hi - the Axis2 version is 1.5.1


    Examining Application Server

    Servlet version     2.4
    Platform    Apache Tomcat/5.0.28


    Examining System Properties

java.runtime.name Java(TM) SE Runtime Environment sun.boot.library.path C: \Program\Java\jdk1.6.0_20\jre\bin java.vm.version 16.3-b01 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 file.encoding.pkg sun.io user.country SE sun.java.launcher SUN_STANDARD sun.os.patch.level Service Pack 3 java.vm.specification.name Java Virtual Machine Specification user.dir C: \Documents and Settings\Leif java.runtime.version 1.6.0_20-b02 java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment java.endorsed.dirs C: \Tomcat\common\endorsed os.arch x86 java.io.tmpdir c: \temp\ line.separator java.vm.specification.vendor Sun Microsystems Inc. user.variant java.naming.factory.url.pkgs org.apache.naming os.name Windows XP sun.jnu.encoding Cp1252 java.library.path C: \Program\Java\jdk1.6.0_20\bin;.;C: \WINDOWS\Sun\Java\bin;C: \WINDOWS\system32;C: \WINDOWS;C: /Program/Java/jre6/bin/client;C: /Program/Java/jre6/bin;C: \WINDOWS\system32;C: \WINDOWS;C: \WINDOWS\System32\Wbem;C: \Program\Microsoft SQL Server\80\Tools\Binn\;C: \Program\MySQL\MySQL Server 5.0\bin;C: \Program\Borland\StarTeam SDK 2005 R2\Lib;C: \Program\Borland\StarTeam SDK 2005 R2\Bin;C: \Sun\AppServer\bin;"C: \Program\Zone Labs\ZoneAlarm\MailFrontier";C: \Program\cvsnt;C: \Program\QuickTime\QTSystem\;C: \usr\local\bin\;C: \android-sdk_r05-windows\android-sdk-windows\tools;C: \Sun\AppServer\bin;C: \Program\CVSNT\ java.specification.name Java Platform API Specification java.class.version 50.0 sun.management.compiler HotSpot Client Compiler os.version 5.1 user.home C: \Documen ts and Settings\Leif user.timezone Europe/Berlin catalina.useNaming true java.awt.printerjob sun.awt.windows.WPrinterJob java.specification.version 1.6 file.encoding Cp1252 catalina.home C: \Tomcat user.name Leif java.class.path C: \Tomcat\bin\bootstrap.jar;C: \Program\Java\jdk1.6.0_20\lib\tools.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 su n.arch.data.model 32 java.home C: \Program\Java\jdk1.6.0_20\jre java.specification.vendor Sun Microsystems Inc. user.language sv awt.toolkit sun.awt.windows.WToolkit java.vm.info mixed mode java.version 1.6.0_20 java.ext.dirs C: \Program\Java\jdk1.6.0_20\jre\lib\ext;C: \WINDOWS\Sun\Java\lib\ext sun.boot.class.path C: \Tomcat\common\endorsed\xercesImpl.jar;C: \Tomcat\common\endorsed\xml-apis.jar;C: \Program\Java\jdk1.6.0_20\jre\lib\resources.jar;C: \Program\Java\jdk1.6.0_20\jre\lib\rt.jar;C: \Program\Java\jdk1.6.0_20\jre\lib\sunrsasign.jar;C: \Program\Java\jdk1.6.0_20\jre\lib\jsse.jar;C: \Program\Java\jdk1.6.0_20\jre\lib\jce.jar;C: \Program\Java\jdk1.6.0_ 20\jre\lib\charsets.jar;C: \Program\Java\jdk1.6.0_20\jre\classes java.vendor Sun Microsystems Inc. server.loader ${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar catalina.base C: \Tomcat file.separator \ java.vendor.url.bug http: //java.sun.com/cgi-bin/bugreport.cgi common.loader ${catalina.home}/common/classes,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar sun.cpu.endian little sun.io.unicode.encoding UnicodeLittle wtp.deploy C: \Tomcat\webapps package.access sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. ,sun.beans. sun.desktop windows sun.cpu.isalist



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to