I'm begging for some help on this set up.  I'm using Glue Standard for using
SOAP calls.  Anyone that has used Glue with Orion before please help me out.

I've gotten the orion example from glue working. Now I'm trying to do something
practical. I've set up an app on Orion. It had to be a separate app because it
will be using EJBs that are already deployed.

So in server.xml I have

<application name="cande" path="../applications/cande.ear" parent="catd" />

catd is the application with the EJB I need. I need this to have the apps
share EJBs.

I have the GLUE-STD.jar in my WEB-INF/lib

my web.xml looks like this:
<web-app>

<!-- Description -->
<servlet>
<servlet-name> http </servlet-name>
<servlet-class> electric.server.http.ServletServer </servlet-class>

<init-param>
<param-name> electric.commands </param-name>
<param-value> /orion-files/glue/commands.xml </param-value>
</init-param>

<load-on-startup> 1 </load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name> http </servlet-name>
<url-pattern> /* </url-pattern>
</servlet-mapping>

<ejb-ref>
<ejb-ref-name>ejb/CanDEDataMgr</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.lilly.javaatg.catd.ejb.CanDEDataMgrHome</home>
<remote>com.lilly.javaatg.catd.ejb.CanDEDataMgr</remote>
</ejb-ref>

</web-app>

It is the same as the webapps/glue web.xml except for the file location of the
commands.xml and the reference to my EJB.

My commands.xml looks like this:
<commands>
<invoke> electric.registry.Registry.publishInstance( "urn:cande", 
"com.lilly.javaatg.catd.cande.DataLoadImpl" ) </invoke>
</commands>

I wrote a test program to try this out. The main calls look like this:

String url = 
"http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl";;

RemoteDataLoader dataLoad = (RemoteDataLoader) 
Registry.bind( url, RemoteDataLoader.class );
boolean answer = dataLoad.isUserValid(userID,password);

When I run it I get this error:
could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
Exception:
electric.registry.RegistryException: could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
at electric.net.soap.SOAPRegistry.bind(Unknown Source)
at electric.registry.compound.CompoundRegistry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at ejbtest.main(ejbtest.java:78)
Caused by: java.io.IOException: HTTP GET error: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl Internal Server 
Error. Response code: 500: unable to load file 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl

I've tried generating the wsdl and pointing the console to it but that does not
work. 

What am I missing to make this work? 


=====
Jon Bricker

"You should never settle for the lesser of two Weasels."

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

Reply via email to