You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Peake, Chris" <Ch...@ca.com> on 2002/09/17 00:02:57 UTC

reference to AxisServer fails

Moved from beta 2 to RC1.

Fail to get a reference to AxisServer.

Situation:
Previously,  a user deployed a service from a jar that was in the classpath and updated the server-config.wsdd.
If for whatever reasons, the container was stopped.  (in this case tomcat).  And the 'jar' that had services deployed from it
now is removed from the classpath, when we startup Axis and try to get a reference to the AxisServer, we fail because of the
WSDDException that is wrapped from a 'ClassNotfoundExcetpion'.
  
Looks like on startup now, the server-config.wsdd is 'validated'.
Previously, this was not the case.

Is there any way to get around this?

I've tried catching an exception but I simply can't get a reference to the AxisServer using
AxisServer axisserverref = AxisServlet.getEngine(servlet);

I would like to handle the users experience a little nicer than just failing to start up.

org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: peakeserver.EchoComplex
java.lang.ClassNotFoundException: peakeserver.EchoComplex 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156) 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) 	at java.lang.Class.forName0(Native Method) 	at java.lang.Class.forName(Class.java:120) 	at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197) 	at java.security.AccessController.doPrivileged(Native Method) 	at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171) 	at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112) 	at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:221) 	at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:502) 	at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:637) 	at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:234) 	at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:242) 	at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:107) 	at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:217) 	at org.apache.axis.AxisEngine.init(AxisEngine.java:188) 	at org.apache.axis.AxisEngine.<init>(AxisEngine.java:173) 	at org.apache.axis.server.AxisServer.<init>(AxisServer.java:127) 	at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:152) 	at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:116) 	at org.apache.axis.server.AxisServer.getServer(AxisServer.java:112) 	at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:221)


thanks,
Chris 





Re: reference to AxisServer fails

Posted by Davanum Srinivas <di...@yahoo.com>.
Chris,

PLEASE log a bug in bugzilla.

thanks,
dims

--- "Peake, Chris" <Ch...@ca.com> wrote:
> Moved from beta 2 to RC1.
> 
> Fail to get a reference to AxisServer.
> 
> Situation:
> Previously,  a user deployed a service from a jar that was in the classpath and updated the
> server-config.wsdd.
> If for whatever reasons, the container was stopped.  (in this case tomcat).  And the 'jar' that
> had services deployed from it
> now is removed from the classpath, when we startup Axis and try to get a reference to the
> AxisServer, we fail because of the
> WSDDException that is wrapped from a 'ClassNotfoundExcetpion'.
>   
> Looks like on startup now, the server-config.wsdd is 'validated'.
> Previously, this was not the case.
> 
> Is there any way to get around this?
> 
> I've tried catching an exception but I simply can't get a reference to the AxisServer using
> AxisServer axisserverref = AxisServlet.getEngine(servlet);
> 
> I would like to handle the users experience a little nicer than just failing to start up.
> 
> org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException:
> peakeserver.EchoComplex
> java.lang.ClassNotFoundException: peakeserver.EchoComplex 	at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) 	at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156) 	at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) 	at
> java.lang.Class.forName0(Native Method) 	at java.lang.Class.forName(Class.java:120) 	at
> org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197) 	at
> java.security.AccessController.doPrivileged(Native Method) 	at
> org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171) 	at
> org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112) 	at
>
org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:221)
> 	at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:502) 	at
> org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:637) 	at
> org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:234) 	at
> org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:242) 	at
> org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:107) 	at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:217) 	at
> org.apache.axis.AxisEngine.init(AxisEngine.java:188) 	at
> org.apache.axis.AxisEngine.<init>(AxisEngine.java:173) 	at
> org.apache.axis.server.AxisServer.<init>(AxisServer.java:127) 	at
> org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:152) 
> at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:116) 
> at org.apache.axis.server.AxisServer.getServer(AxisServer.java:112) 	at
> org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:221)
> 
> 
> thanks,
> Chris 
> 
> 
> 
> 
> 


=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com