You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by zhshqzyc <zh...@yahoo.com> on 2007/10/04 04:10:45 UTC

Axis is not working.

Hello, I am using Jakarta Tomcat 6.0.10. I followed the tutorial from
"Configuring & Using Apache Tomcat 6" at "http://www.coreservlets.com".
Installation is fine, tomcat works well for servets and JSP.
After I installed Axis-1.4, I typed the url "http://localhost/axis".
I get 
[code]HTTP Status 404 - /axis/

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

type Status report

message /axis/

description The requested resource (/axis/) is not available.

[/code]
I checked the classpath it is okay. I did copy webapp file to a right place.
CLASSPATH=.;C:\apache-tomcat-6.0.10\lib\servlet-api.jar;C:\apache-tomcat-6.0.14\lib\jsp-api.jar;C:\apache-tomcat-6.0.14\lib\el-api.jar;C:\Program
Files\jade\lib\http.jar;C:Program Files\jade\lib\iiop.jar;C:\Program
Files\jade\lib\jade.jar;C:\Program Files\jade\lib\jadeTools.jar;C:\Program
Files\Jade\lib\common-codec-1.3.jar;C:\Program
Files\Jade\lib\Base64.jar;C:\cygwin\bin;C:\axis\lib\axis.jar;C:\axis\lib\common-discovery-0.2.jar;C:\axis\lib\commons-logging-1.0.4.jar;C:\axis\lib\jaxrpc.jar;C:\axis\lib\saaj.jar;C:\axis\lib\log4j-1.2.8.jar;C:\axis\lib\xml-apis.jar;C:\axis\lib\xercesImpl.jar.

I check the log file.
I see

Oct 3, 2007 9:37:21 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
org.apache.axis.transport.http.AxisHTTPSessionListener
java.lang.NoClassDefFoundError:
org/apache/commons/discovery/tools/DiscoverSingleton
	at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
	at
org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
	at
org.apache.axis.transport.http.AxisHTTPSessionListener.<clinit>(AxisHTTPSessionListener.java:33)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3771)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
	at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Oct 3, 2007 9:37:21 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.catalina.Registry',
'org.apache.tomcat.util.modeler.Registry@10045eb')
Oct 3, 2007 9:37:22 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.catalina.MBeanServer',
'com.sun.jmx.mbeanserver.JmxMBeanServer@ee7a14')

AXIS_LIB=c:\AXIS\lib
AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\common-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar

ANY ADVICE WILL BE APPRECIATED.
-- 
View this message in context: http://www.nabble.com/Axis-is-not-working.-tf4565424.html#a13031428
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Axis is not working.

Posted by zhshqzyc <zh...@yahoo.com>.
I can't imagine it would be working without CLASSPATH.
I uninstalled the tomcat 6.0 and installed tomcat 5.0.25. It works then.

Caldarale, Charles R wrote:
> 
>> From: zhshqzyc [mailto:zhshqzyc@yahoo.com] 
>> Subject: RE: Axis is not working.
>> 
>> Which environment variable should be removed?
>> CLASSPATH?
> 
> CLASSPATH is the only one I mentioned.
> 
> You might want to read over the description of Tomcat's classloading
> mechanism to make sure the jars needed by your webapp are located in the
> proper directories:
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis-is-not-working.-tf4565424.html#a13038251
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Axis is not working.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: zhshqzyc [mailto:zhshqzyc@yahoo.com] 
> Subject: RE: Axis is not working.
> 
> Which environment variable should be removed?
> CLASSPATH?

CLASSPATH is the only one I mentioned.

You might want to read over the description of Tomcat's classloading
mechanism to make sure the jars needed by your webapp are located in the
proper directories:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Axis is not working.

Posted by zhshqzyc <zh...@yahoo.com>.
Which environment variable should be removed?
CLASSPATH?
OR
AXISCLASSPATH?

Thanks!


Caldarale, Charles R wrote:
> 
>> From: zhshqzyc [mailto:zhshqzyc@yahoo.com] 
>> Subject: Axis is not working.
>> 
>> I checked the classpath it is okay.
> 
> No, it isn't o.k.  No CLASSPATH should be used when running Tomcat.  The
> referenced tutorial fails to make clear that setting CLASSPATH is only
> for compiling servlets, not for server execution.  Remove the
> environment variable.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis-is-not-working.-tf4565424.html#a13031775
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Axis is not working.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: zhshqzyc [mailto:zhshqzyc@yahoo.com] 
> Subject: Axis is not working.
> 
> I checked the classpath it is okay.

No, it isn't o.k.  No CLASSPATH should be used when running Tomcat.  The
referenced tutorial fails to make clear that setting CLASSPATH is only
for compiling servlets, not for server execution.  Remove the
environment variable.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org