On 6/8/2010 3:06 PM, Deepal Jayasinghe wrote:
Are you using any kind of Application server or just Axis2 ?
If you are using any kind of IDE, then you need to add your jar in to
the project. If you are using any kind of application server like
(Tomcat), then you need to put your jar into webapps/axis2/WEB-INF/lib
that worked, thank you. I thought that an app server was supposed to be
used when running axis2 (don't have a background in service technologies)
so, thank you very much.
I also just finished building axis2 (w/o tests); this still requires the
settings.xml file described in this fix,
https://issues.apache.org/jira/browse/AXIS2-4549
to be manually created, but with well.formed-xml :-) thus
<settings>
<mirrors>
<mirror>
<id>java.net.2</id>
<name>java.net Mirror of http://repo1.maven.org/maven2/<</name>
<url>http://download.java.net/maven/2/<</url>
<mirrorOf>java.net</mirrorOf>
</mirror>
</mirrors>
</settings>
I'll add that to the issue, but I wonder where, other than google,
people should normally find a pointer to this, 1.5.1 being the latest
stable release. It took me work to find it, as it results in just maven
downloading a miniscule jar from java.net and subsequently complaining
that it is un-unzipable.
thanks,
jan
On Tue, Jun 8, 2010 at 8:48 AM, Jan Sinschek<su...@gmx.net> wrote:
hi, thanks for not losing interest.
On 6/7/2010 2:31 PM, Deepal Jayasinghe wrote:
What is "C:\Users\CSinschek" ?
that is just the directory the shell comes up with, and it doesn't matter
the classpath looks definitely ok to me
C:\>echo %CLASSPATH%
.;C:\Me\Apps\aspectj1.6\lib\aspectjrt.jar;C:\Me\Inf\Attestation\Eclipse35ODE\Axis2Ressources\bin\
as the class is found in that latter bin folder (viz beneath the correct
subfolders), and I can do
C:\>java de.cased.secmon.WeavingPOJODeployer
Hello from main
so that is not the problem. As far as I can see, the class is available on
the classpath. Yet, axis2's tcl in axis2.Loader seems to be either missing
or looking elsewhere, as line 261 in loadClass is a point that I guess
should not have been reached in the first place.
Your depoyer need to be some place where Axis2 can find that using
either default class path or using it libraries.
Do I have to tell Axis2 to look in the user's classpath? I have both
"system" and "user" classpath variables (windows) pointing to the aforesaid
/bin folder beneath which the directory structure and the file reside, so it
should be findable.
And your deployer need to have a default constructor as well.
I have a nullary constructor in the source.
Deepal
On Mon, Jun 7, 2010 at 1:56 AM, Jan Sinschek<su...@gmx.net> wrote:
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 -
de.cased.secmon.WeavingPOJODeployer
java.lang.ClassNotFoundException: de.cased.secmon.WeavingPOJODeployer
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
...
based on the configuration
<deployer extension=".class" directory="pojox"
class="de.cased.secmon.WeavingPOJODeployer"/>
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<su...@gmx.net> 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(WebappClassLoader.java:1387)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
at
org.apache.axis2.deployment.AxisConfigBuilder.processDeployers(AxisConfigBuilder.java:396)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:260)
...
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
http://ws.apache.org/axis2/mail-lists.html 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: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org