[ https://issues.apache.org/jira/browse/TUSCANY-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandeep Raman updated TUSCANY-2074: ----------------------------------- Attachment: src.zip > Component Service not coming up. > -------------------------------- > > Key: TUSCANY-2074 > URL: https://issues.apache.org/jira/browse/TUSCANY-2074 > Project: Tuscany > Issue Type: Test > Components: Java SCA Tomcat Integration > Affects Versions: Java-SCA-1.1 > Environment: Windows , Tomcat 5.5 , Apache tuscany 1.1 , Java 5.0 > Reporter: Sandeep Raman > Priority: Critical > Fix For: Java-SCA-Next > > Attachments: src.zip, two-ws-reference.jar, TwoWS.war > > Original Estimate: 72h > Remaining Estimate: 72h > > summary of the Issue: > I have an issue with the component service not coming up. below mentioned > is my scenario. > I have a JSP (default.jsp) which does the following: > <%@ page import="org.apache.tuscany.sca.host.embedded.SCADomain"%> > <%@ page contentType="text/html;charset=UTF-8" language="java" %> > <% > SCADomain scaDomain = SCADomain.newInstance("RunTime.composite"); > System.out.println("RunTime Composite Started"); > %> > and the Runtime.composite is as follows: > <component name="TwoWSService"> > <implementation.java class="eai.Compose" /> > <service name="Compose"> > interface="http://eai#wsdl.interface(TwoWSService)" /> > <binding.ws uri="http://localhost:8080/TwoWSService" /> > </service> > </component> > Now I create a war of all my Java classes , wsdl , composite files and > with the default.jsp as the default run target. > This war gets deployed in tomcat and the jsp page comes up. It creates a > new instance of Runtime.composite too , but it doesnt seem to be starting > the > component service which i have mentioned in the composite file : > <binding.ws uri="http://localhost:8080/TwoWSService" />. > ------------------------------------------------------------------------------------------------------------------------------------------------------ > Following Mails explain the scenario:: > > I see everything in console, like > > > > INFO: initContextPath: /TwoWS > > INFO: Added Servlet mapping: /TwoWSService > > > > Even if i try to Run my low lying services which i am composing it Runs > > fine and can see the output in the console.. > > The issue is the wsdl url which i need to publish and not able to find it > > anywhere. > > > > As per the samples , in my case > > http://localhost:8080/TwoWS/TwoWSService?wsdl should point to my wsdl, but > > tht doesnt seem to exist > > > > Regards > > Sandeep > > > > > > "ant elder" <[EMAIL PROTECTED]> wrote on 03/11/2008 05:03:44 PM: > > > > > A difference between this and the calculator sample is the way the jsp > > gets > > > the SCADomain object, the Tuscany jsp samples do: > > > <% > > > SCADomain scaDomain = (SCADomain) application.getAttribute(" > > > org.apache.tuscany.sca.SCADomain"); > > > CalculatorService calculatorService = > > > (CalculatorService)scaDomain.getService(CalculatorService.class, > > > "CalculatorServiceComponent"); > > > %> > > > > > > whereas this code does: > > > <% > > > SCADomain scaDomain = SCADomain.newInstance("RunTime.composite"); > > > System.out.println("RunTime Composite Started"); > > > %> > > > I've never tried that so i don't know if it will work. > > > > > > If Tuscany is activating the WS endpoint you should see the messages on > > the > > > tomcat console about it, for example, with the calculator ws sample you > > see: > > > > > > INFO: ContextPath: /sample-calculator-ws-webapp > > > and > > > INFO: Added Servlet mapping: /AddServiceComponent > > > > > > so you can add those and you tomcat host and port to get > > > > > > http://localhost:8080//sample-calculator-ws-webapp/AddServiceComponent > > > > > > You can test thats working by appending ?wsdl to that and url and > > entering > > > it in a browser which should return the wsdl document for the service. > > > > > > If you don't see the above messages then something is going wrong and > > the WS > > > endpoint is not being registered correctly. > > > > > > ...ant > > > > > > On Tue, Mar 11, 2008 at 11:07 AM, Sandeep Raman <[EMAIL PROTECTED]> > > > wrote: > > > > > > > Hi, > > > > > > > > I have done pretty much in the same way as the sample. > > > > i need to see my wsdl , my component service which is running . I am > > not > > > > able to figure out the URL for the wsdl file. > > > > > > > > I am stuck up there, since all my external requests need this wsdl URL > > to > > > > process, any help or suggestion will be highly appreciated > > > > > > > > Regards > > > > Sandeep Raman > > > > > > > > "ant elder" <[EMAIL PROTECTED]> wrote on 03/11/2008 02:28:13 PM: > > > > > > > > > On Tue, Mar 11, 2008 at 3:38 AM, Sandeep Raman > > <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > I have an issue with the component service not coming up. below > > > > mentioned > > > > > > is my scenario. > > > > > > > > > > > > I have a JSP (default.jsp) which does the following: > > > > > > > > > > > > <%@ page import="org.apache.tuscany.sca.host.embedded.SCADomain"%> > > > > > > <%@ page contentType="text/html;charset=UTF-8" language="java" %> > > > > > > <% > > > > > > SCADomain scaDomain = > > SCADomain.newInstance("RunTime.composite"); > > > > > > System.out.println("RunTime Composite Started"); > > > > > > %> > > > > > > > > > > > > and the Runtime.composite is as follows: > > > > > > > > > > > > <component name="TwoWSService"> > > > > > > <implementation.java class="eai.Compose" /> > > > > > > <service name="Compose"> > > > > > > > > > > > > interface="http://eai#wsdl.interface(TwoWSService)<http://eai#wsdl.interface%28TwoWSService%29> > > < > > > http://eai#wsdl.interface%28TwoWSService%29> > > > > < > > > > > http://eai#wsdl.interface%28TwoWSService%29>" > > > > > > /> > > > > > > <binding.ws uri="http://localhost:8080/TwoWSService" /> > > > > > > </service> > > > > > > </component> > > > > > > > > > > > > > > > > > > Now I create a war of all my Java classes , wsdl , composite files > > and > > > > > > with the default.jsp as the default run target. > > > > > > This war gets deployed in tomcat and the jsp page comes up. It > > creates > > > > a > > > > > > new instance of Runtime.composite too , but it doesnt seem to be > > > > starting > > > > > > the > > > > > > component service which i have mentioned in the composite file : > > > > > > <binding.ws uri="http://localhost:8080/TwoWSService" />. > > > > > > > > > > > > What could be wrong in this, Can you please guide me. > > > > > > > > > > > > Regards > > > > > > Sandeep Raman. > > > > > > > > > > > > > > > > It could be there is a dependency missing but its hard to tell from > > just > > > > > that description. Are there any odd messages produce on the tomcat > > > > console > > > > > or logs? One thing is having the jsp create the SCADomain is not the > > > > normal > > > > > way to start the runtime, have you seen how the calculator-ws sample > > > > does > > > > > this? There's two significant bits - the config in the web.xml [1] > > and > > > > the > > > > > code in the jsp [2]. > > > > > > > > > > ...ant > > > > > > > > > > [1] > > > > > https://svn.apache. > > > > > org/repos/asf/incubator/tuscany/java/sca/samples/calculator-ws- > > > > > webapp/src/main/webapp/WEB-INF/web.xml > > > > > [2] > > > > > https://svn.apache. > > > > > org/repos/asf/incubator/tuscany/java/sca/samples/calculator-ws- > > > > > webapp/src/main/webapp/calc.jsp > > > > > > > > > ForwardSourceID:NT00006F7A > > > > =====-----=====-----===== > > > > Notice: The information contained in this e-mail > > > > message and/or attachments to it may contain > > > > confidential or privileged information. If you are > > > > not the intended recipient, any dissemination, use, > > > > review, distribution, printing or copying of the > > > > information contained in this e-mail message > > > > and/or attachments to it are strictly prohibited. If > > > > you have received this communication in error, > > > > please notify us by reply e-mail or telephone and > > > > immediately and permanently delete the message > > > > and any attachments. Thank you > > > > > > > > > > > > > > > > > ForwardSourceID:NT00007012 > > =====-----=====-----===== > > Notice: The information contained in this e-mail > > message and/or attachments to it may contain > > confidential or privileged information. If you are > > not the intended recipient, any dissemination, use, > > review, distribution, printing or copying of the > > information contained in this e-mail message > > and/or attachments to it are strictly prohibited. If > > you have received this communication in error, > > please notify us by reply e-mail or telephone and > > immediately and permanently delete the message > > and any attachments. Thank you > > > > > > > ForwardSourceID:NT0000721A -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]