Sorry Raymond my description was wrong.
What I meant is to install the soap Web-App on JRUN and THEN
copy the ejb-client.jar into the soap-lib directory.
(So Tomcat is out of the game)
If it should work now you can be sure that you had run into the soap classloader bug.
If this is the case you have 2 possibilities:
1) Let the soap-App run on the same Application server where the EJBs are, with all
the client-jars needed in the soap/lib directory
2) If you want to run SOAP on Tomcat, the only solution I know is to call the EJBs
dynamically via reflection.
Please keep me informed...
Andreas Ullmann
> Thanks for your reply
> I moved the ejb-client.jar into /usr/local/soap-2_0/lib (next to
> soap.jar) and added it to tomcat's CLASSPATH from that dir. I get the
> same error. Is this what you meant to do? I do not see how switching
> the location of the JAR file affects the classloader handling of it.
>
> ---Raymond
>
> Andreas Ullmann wrote:
> >
> > Hi,
> >
> > maybe this is a known bug. Try the following:
> > copy your EJB-Clientjar into the lib directory of your SOAP-App and test again.
> >
> > The problem is that soap do not use the classloader correctly. So all classes have
>to be loaded from ONE classloader in order to work properly.
> >
> > Hope this helps,
> >
> > Andreas Ullmann
> >
> > > Hi
> > > This is all under Linux.
> > >
> > > I'm trying to access EJBs deployed in a JRun 3.0SP2 server from a client
> > > that is a SOAP service that is running under jakarta-tomcat.
> > >
> > > So, the JRun EJB client is itself an Apache-soap service running in
> > > jakarta-tomcat.
> > >
> > > My [SOAP service] client code sets the security manager and then tries
> > > to login but receives the Exception below on getting the Context.
> > > I expect that this is due to the different classes used by Tomcat and
> > > JRun and that the right amount of CLASSPATH manipulation could resolve
> > > this but I've been unable to get it working.
> > >
> > > Any one have experience with this and care to help?
> > > TIA
> > > ---Raymond
> > >
> > > > javax.naming.CommunicationException: Failed to communicate with
>XXX.XXX.XXX.XXX:2323.
> > > > Root exception is java.lang.ClassCastException:
>org.apache.tomcat.protocol.WARConnection
> > > > at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:500)
> > > > at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:462)
> > > > at sun.misc.URLClassPath$2.run(URLClassPath.java:258)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at sun.misc.URLClassPath.getLoader(URLClassPath.java:247)
> > > > at sun.misc.URLClassPath.getLoader(URLClassPath.java:224)
> > > > at sun.misc.URLClassPath.getResource(URLClassPath.java:137)
> > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
> >
> > --
> > Andreas Ullmann
> > [EMAIL PROTECTED]
> > MATHEMA AG
> >
> > N�gelsbachstra�e 25b
> > 91052 Erlangen
> > Telefon 09131/8903-0
> > Telefax 09131/8903-55
> > www.mathema.de
>
> --
> Cheers,
>
> Raymond Blum
> Chief Technical Officer, VP of System Architecture
> Askit Systems
>
> ***********************************************
> AskIt is Customer Support Management Magazine's
> USERS' CHOICE GOLD AWARD WINNER. Recognized as
> the easiest to use, quickest to implement, most
> cost-effective solution for Web-based customer
> service.
>
> http://www.askit.com/
>
> NEVER ANSWER THE SAME QUESTION TWICE!
> ************************************************
> This e-mail is intended only for the use of the addressees.
> Any copying, forwarding, printing or other use of this
> e-mail by persons other than the addressees is not
> authorized.
> This e-mail may contain information that is privileged,
> confidential and exempt from disclosure.
--
Andreas Ullmann
[EMAIL PROTECTED]
MATHEMA AG
N�gelsbachstra�e 25b
91052 Erlangen
Telefon 09131/8903-0
Telefax 09131/8903-55
www.mathema.de