---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
---------------------------------------------------------------------------
----- Original Message -----
From: "tolina" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Tuesday, February 19, 2008 11:58 PM
Subject: 2 Webapps sharing classloader ?
Hi tolina, sorry I didnt understand your question... ignore my previous
comment
I think you either have to combine it, and even then there are multiple
class loaders ie this stuff applies
http://ws.apache.org/axis2/faq.html#b1
I had a quick look and I dont even recognize axis since that very first
release... a second opinion would be good ;)
I think it must be possible to combine servlet and Axis...
If that Jar is not holding info, ie its just because you dont want 2 jars...
all this is not worth the effort, just let each have its own jar.
Alternatively I guess one could get the WebApp to call the web service
jar... thru a webservice clnt
I would go for combining first... daves suggestion..
This page here shows the binary and war... I think you should be able to set
that war up in your IDE (from the binary stuff), or just unzip the war.
Or find the source...
And then ad the web app stuff to it... but even then, there are 2
classloaders involved and you have to do that forname stuff above, and then
even then... it will have to be thread safe and all that stuff...
Have fun...
I have a webapp which contains a class which methods should also exposed
as
webservice.
What I would do would be to create an axis2 webservice out of it and put
this inside an axis2.war.
I then would have 2 webapps - the actual webapp and the axis2-webapp whcih
contains the WS-access.
The problem is that each Webapp gets loaded by its own classloader, so I
would have 2 instances of my class.
How can I tell tomcat to use the same classloader for both webapps ?
Can I put a single *.class inside of catalina.properties? E.g.
shared.loader=my.special.Clazz.class
(I cannot reference the *.jar because its inside the wepapp and inside an
axis2 archive an *.aar)
--
View this message in context:
http://www.nabble.com/2-Webapps-sharing-classloader---tp15571888p15571888.html
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]