Begging for help
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-nameejb/CanDEDataMgr/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.lilly.javaatg.catd.ejb.CanDEDataMgrHome/home remotecom.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
Glue and Orion classpath
I'm trying to set up Glue to work on Orion with an app that will use EJBs. At this point I made it a web app( .war file) but when I run it it can not fine things in javax.ejb.*. Do I need to make the app into an .ear and add my classes to a jar file as well? There are no EJBs in the app but it contacts existing EJBs from another application. = Jon Bricker You should never settle for the lesser of two Weasels. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Re: SOAP and Orion
Please forward me on to whomever solved this. I'm using orion 1.5.4 so an upgrade is out of the question. I would like to talk to someone and see how they set up orion, their application and their classpath. --- [EMAIL PROTECTED] wrote: Hi Jon, We had a similar sounding problem with SOAP and when we upgraded to orion 1.5.2 the problem was fixed. I wasn't the one working on the problem so I don't have much more info. Hope this helps. -Heath --- Jon Bricker [EMAIL PROTECTED] wrote: I really need some help getting a SOAP application to work on orion. I have an application set up with a servlet front that will call the SOAP rpcrouter. All in all the application is simular to the one in the Java SOAP book by Hernry Bequet. I put the soap.jar in my WEB-INF/lib in my application. The problem I'm having is that the SOAP call can never find my class that is in my deployment discriptor. I've heard that this is a classpath issue but I just can not figure out what the problem is. here is the error: Ouch, the call failed: Fault Code = SOAP-ENV:Server.BadTargetObjectURI Fault String = Unable to resolve target object: com.lilly.javaatg.catd.servlet.DataLoaderImpl I have soap in one location on my machine Here is the deploymentDescriptor.xml isd:service xmlns:isd=http://xml.apache.org/xml-soap/deployment; id=urn:CanDEDataMgr isd:provider type=java scope=Request methods=isUserValid isd:java class=com.lilly.javaatg.catd.servlet.DataLoaderImpl static=false/ /isd:provider isd:faultListenerorg.apache.soap.server.DOMFaultListener/isd:faultListener /isd:service Here is the call I use to deploy it java org.apache.soap... http://localhost:8088/servlet/rpcrouter deploy deplymentDescriptor.xml here is my test code to call it. URL url = new URL(http://localhost:8088/cande/servlet/rpcrouter;); // Build the call. Call call = new Call (); call.setTargetObjectURI (urn:CanDEDataMgr); call.setMethodName (isUserValid); Vector params = new Vector (); params.addElement (new Parameter(userID, String.class, userID, Constants.NS_URI_SOAP_ENC)); params.addElement (new Parameter(password, String.class, password, Constants.NS_URI_SOAP_ENC)); call.setParams (params); Here is my web.xml mappings servlet servlet-namecandeLoad/servlet-name display-nameCATD CanDE Patient Data load Servlet/display-name descriptionno description/description servlet-classcom.lilly.javaatg.catd.servlet.CanDEDataLoad.CanDELoadServlet/servlet-class /servlet !-- SOAP rpcrouter servlet -- servlet servlet-namerpcrouter/servlet-name display-nameApache-SOAP RPC Router/display-name descriptionno description/description servlet-classorg.apache.soap.server.http.RPCRouterServlet/servlet-class init-param param-namefaultListener/param-name param-valueorg.apache.soap.server.DOMFaultListener/param-value /init-param /servlet !-- Servlet Name to URL Pattern Recognition Mapping -- servlet-mapping servlet-namecandeLoad/servlet-name url-pattern/candeLoad/url-pattern /servlet-mapping servlet-mapping servlet-namerpcrouter/servlet-name url-pattern/rpcrouter/url-pattern /servlet-mapping = Jon Bricker You should never settle for the lesser of two Weasels. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com = Jon Bricker You should never settle for the lesser of two Weasels. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
SOAP and Orion
I really need some help getting a SOAP application to work on orion. I have an application set up with a servlet front that will call the SOAP rpcrouter. All in all the application is simular to the one in the Java SOAP book by Hernry Bequet. I put the soap.jar in my WEB-INF/lib in my application. The problem I'm having is that the SOAP call can never find my class that is in my deployment discriptor. I've heard that this is a classpath issue but I just can not figure out what the problem is. here is the error: Ouch, the call failed: Fault Code = SOAP-ENV:Server.BadTargetObjectURI Fault String = Unable to resolve target object: com.lilly.javaatg.catd.servlet.DataLoaderImpl I have soap in one location on my machine Here is the deploymentDescriptor.xml isd:service xmlns:isd=http://xml.apache.org/xml-soap/deployment; id=urn:CanDEDataMgr isd:provider type=java scope=Request methods=isUserValid isd:java class=com.lilly.javaatg.catd.servlet.DataLoaderImpl static=false/ /isd:provider isd:faultListenerorg.apache.soap.server.DOMFaultListener/isd:faultListener /isd:service Here is the call I use to deploy it java org.apache.soap... http://localhost:8088/servlet/rpcrouter deploy deplymentDescriptor.xml here is my test code to call it. URL url = new URL(http://localhost:8088/cande/servlet/rpcrouter;); // Build the call. Call call = new Call (); call.setTargetObjectURI (urn:CanDEDataMgr); call.setMethodName (isUserValid); Vector params = new Vector (); params.addElement (new Parameter(userID, String.class, userID, Constants.NS_URI_SOAP_ENC)); params.addElement (new Parameter(password, String.class, password, Constants.NS_URI_SOAP_ENC)); call.setParams (params); Here is my web.xml mappings servlet servlet-namecandeLoad/servlet-name display-nameCATD CanDE Patient Data load Servlet/display-name descriptionno description/description servlet-classcom.lilly.javaatg.catd.servlet.CanDEDataLoad.CanDELoadServlet/servlet-class /servlet !-- SOAP rpcrouter servlet -- servlet servlet-namerpcrouter/servlet-name display-nameApache-SOAP RPC Router/display-name descriptionno description/description servlet-classorg.apache.soap.server.http.RPCRouterServlet/servlet-class init-param param-namefaultListener/param-name param-valueorg.apache.soap.server.DOMFaultListener/param-value /init-param /servlet !-- Servlet Name to URL Pattern Recognition Mapping -- servlet-mapping servlet-namecandeLoad/servlet-name url-pattern/candeLoad/url-pattern /servlet-mapping servlet-mapping servlet-namerpcrouter/servlet-name url-pattern/rpcrouter/url-pattern /servlet-mapping = Jon Bricker You should never settle for the lesser of two Weasels. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
CMP O/R mapping question
My first CMP entity bean and I have some questions. I was wondering if it is possible to do a compound search within the O/R mapping in orion-ejb-jar.xml? The problem is a field from one table is needed to lookup a field on another table to get the result. Example: Customer has a field called company. The company table has a place for company name. All PKs are integers. In the customer table the company is a pk from the company table. I want to get all of the customer information and use the company pk to look up the company name. How would I have this entity in the orion-ejb-jar.xml file? table = ATD_CUSTOMER Example 1: cmp-field-mapping name=customerID persistence-name=CUSTOMER_ID persistence-type=NUMBER / cmp-field-mapping name=firstName persistence-name=FIRST_NAME persistence-type=VARCHAR2 / cmp-field-mapping name=lastName persistence-name=LAST_NAME persistence-type=VARCHAR2 / cmp-field-mapping name=company persistence-name=ATD_COMPANY.NAME persistence-type=VARCHAR2 / Example 2: cmp-field-mapping name=customerID persistence-name=CUSTOMER_ID persistence-type=NUMBER / cmp-field-mapping name=firstName persistence-name=FIRST_NAME persistence-type=VARCHAR2 / cmp-field-mapping name=lastName persistence-name=LAST_NAME persistence-type=VARCHAR2 / cmp-field-mapping name=company persistence-name=COMPANY_ID persistence-type=NUMBER / cmp-field-mapping name=companyName persistence-name=ATD_COMPANY.NAME persistence-type=VARCHAR2 / = Jon Bricker You should never settle for the lesser of two Weasels. __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com