axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Sinschek <>
Subject Re: Loading a Custom Deployer
Date Mon, 07 Jun 2010 05:56:05 GMT
No, it stands that
$ C:\Users\CSinschek> java de.cased.secmon.WeavingPOJODeployer
 > Exception in thread "main" java.lang.NoSuchMethodError: main

while at the same time
2010-06-07 07:42:08,893 [main] INFO  
org.apache.axis2.deployment.AxisConfigBuilder  - Unable to instantiate 
deployer de.cased.secmon.WeavingPOJODeployer
2010-06-07 07:42:08,894 [main] DEBUG 
org.apache.axis2.deployment.AxisConfigBuilder  - 
java.lang.ClassNotFoundException: de.cased.secmon.WeavingPOJODeployer

based on the configuration
<deployer extension=".class" directory="pojox" 

I thought that maybe the original deployer, being the parent class, 
might be missing- though it of course shouldn't be- but when loading it 
explicitly (rgistering it under a faux extension ahead of my own 
deployer), nothing changes. I'll later try and find out where the class 
loader is actually searching if I can find and build the module 
containing the loader.

On 6/6/2010 9:47 PM, Deepal Jayasinghe wrote:
> Hi Jan,
> If you have put the jar or class files in the classpath, then Axis2
> should pick your class. If you have created a jar file for your
> deployer please double check it.
> Deepal
> On Sun, Jun 6, 2010 at 2:39 PM, Jan Sinschek<>  wrote:
>> Hello,
>> I am trying to use a custom deployer (which for the time being is simply a
>> POJODeployer subtype with no extra code), and have changed the axis2.xml
>> accordingly. Class-loading fails, as shown, although the deployer is found
>> on the classpath when I spawn a JVM stand-alone (noting the absence of a
>> main).
>> java.lang.ClassNotFoundException: de.cased.secmon.WeavingPOJODeployer
>>     at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(
>>     at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(
>>     at java.lang.ClassLoader.loadClassInternal(
>>     at java.lang.Class.forName0(Native Method)
>>     at java.lang.Class.forName(
>>     at org.apache.axis2.util.Loader.loadClass(
>>     at
>> org.apache.axis2.deployment.AxisConfigBuilder.processDeployers(
>>     at
>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
>> ...
>> How is the WebappClassLoader initialized, and how can I learn that? It is
>> necessary trying to build axis and probably whatever provides
>> catalina.loader (commons?) to get to that? Do I have to state additional
>> classpaths for this loader in a config? I have not looked inside the jars to
>> find out where the normal POJODeployer is to be found, but this should be
>> irrelevant.
>> I am running 1.5.1 in a Tomcat 6.0. (And yes, I have restarted tomcat, as
>> this seems necessary in order to have the axis2.xml be read again, my not
>> knowing how to just shutdown axis selectively)
>> On an unrelated note, the project website
>> links only to the previous
>> mailing list; the mailer demon pointed me to the right address.
>> Thanks for any pointers,
>> Jan Sinschek
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message