On Fri, Apr 25, 2008 at 6:33 PM, Abraham Washington <[EMAIL PROTECTED]>
wrote:

> hi,  it looks like tuscany is being fired up, but the endpoint doesn't seem
> accessable.  strange that running within eclipse, it outputs the endpoints,
> but tomcat doesn't (maybe it doesn't).  here's the output from tomcat:
> Apr 25, 2008 11:27:43 AM org.apache.catalina.core.AprLifecycleListener
> lifecycle
> Event
> INFO: The Apache Tomcat Native library which allows optimal performance in
> produ
> ction environments was not found on the java.library.path:
> C:\work\jdk1.5.0_12\b
>
> in;.;C:\Windows\system32;C:\Windows;C:\work\oracle11g\product\11.1.0\client_1\bi
> n;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files
> (x86)
> \Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common
> Files\Roxio
> Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
> Shared\9.0\DLLShared
> \;C:\Program Files (x86)\QuickTime\QTSystem\
> Apr 25, 2008 11:27:43 AM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8087
> Apr 25, 2008 11:27:43 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1138 ms
> Apr 25, 2008 11:27:43 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Apr 25, 2008 11:27:43 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
> Apr 25, 2008 11:27:43 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Apr 25, 2008 11:27:44 AM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive dcri-finance-composite.war
> Apr 25, 2008 11:27:44 AM
> org.apache.tuscany.sca.host.webapp.WebAppServletHost in
> itContextPath
> INFO: initContextPath: /dcri-finance-composite
> Apr 25, 2008 11:27:46 AM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8087
> Apr 25, 2008 11:27:46 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Apr 25, 2008 11:27:46 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/26  config=null
> Apr 25, 2008 11:27:46 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Apr 25, 2008 11:27:46 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3236 ms
> my web.xml is virtually identical to the tuscany sample
> helloworld-ws-sdo-webapp.  below is my web.xml:<?xml version="1.0"
> encoding="ISO-8859-1"?><web-app version="2.4" xmlns="
> http://java.sun.com/xml/ns/j2ee"xmlns:xsi=";
> http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation=";
> http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";><display-name>Finance SOA
> Composite</display-name><filter><filter-name>tuscany</filter-name><filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class></filter><filter-mapping><filter-name>tuscany</filter-name><url-pattern>/*</url-pattern></filter-mapping></
> i figured it was best to get it working within tomcat, since that's where
> some samples are and tested.  once i can get it working there, i'll move
> back to jboss...
> thanks abe
>
>
> ----- Original Message ----
> From: Simon Laws <[EMAIL PROTECTED]>
> To: tuscany-user@ws.apache.org
> Sent: Friday, April 25, 2008 8:00:54 AM
> Subject: Re: noobie wsdl location question
>
> On Fri, Apr 25, 2008 at 2:40 PM, Abraham Washington <[EMAIL PROTECTED]>
> wrote:
>
> > sorry...i'm using tuscany version sca-1.1-incubating
> > thx simon/ant for the responses.  if i can just get the wsdl from the
> war,
> > that would be great.
> >
> >
> >
> > ----- Original Message ----
> > From: Abraham Washington <[EMAIL PROTECTED]>
> > To: tuscany-user@ws.apache.org
> > Sent: Friday, April 25, 2008 6:50:14 AM
> > Subject: Re: noobie wsdl location question
> >
> > i changed the code so and now i'm able to bring up the wsdl document when
> > starting the SCADomain:SCADomain scaDomain = SCADomain.newInstance(
> > when i go to the page,
> > http://127.0.0.1:8080/TrialServiceComponent/TrialService?wsdl, it comes
> up
> > fine.  but, i tried to deploy the war within jboss and it's not coming
> up.
> > deployment from tomcat:
> > Apr 25, 2008 6:40:24 AM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive dcri-finance-composite.war
> > Apr 25, 2008 6:40:35 AM
> > org.apache.tuscany.sca.host.webapp.WebAppServletHost ini
> > tContextPath
> > INFO: initContextPath: /dcri-finance-composite
> > Apr 25, 2008 6:40:38 AM org.apache.coyote.http11.Http11BaseProtocol start
> > INFO: Starting Coyote HTTP/1.1 on http-8087
> > here's my composite:<?
> >        <xml version="1.0" encoding="UTF-8"?>composite xmlns="
> > http://www.osoa.org/xmlns/sca/1.0";                xmlns:t="
> > http://tuscany.apache.org/xmlns/sca/1.0";                xmlns:c="
> > http://finance.dcri.org";                name="DCRI-Finance-Composite">
> >        <component name="TrialServiceComponent">
> > <implementation.java class="org.dcri.finance.TrialServiceImpl">
> >    </implementation.java>                <service name="TrialService"
> > promote="TrialServiceComponent">
> <binding.wsuri="TrialService"/>                </service>
> <reference
> > name="createTrialService" >                    <interface.java
> > interface="org.dcri.finance.CreateTrialService" />
> > </reference>        </component>        <component
> > name="CreateTrialServiceComponent">                <implementation.java
> > class="org.dcri.finance.CreateTrialServiceImpl"/>
> > <service name="CreateTrialService">
> <interface.java
> > interface="org.dcri.finance.CreateTrialService" />
> <
> > binding.ws/>                    </service>
> </component></composite>
> > i tried going to
> >
> http://127.0.0.1:8087/dcri-finance-composite/TrialServiceComponent/TrialService?wsdlbut
> > the page doesn't come up.  if i go to http://127.0.0.1:8087/ tomcat
> shows
> > up and if i go to http://127.0.0.1:8087/dcri-finance-composite/ my
> > index.jsp file comes up fine.  just can't find the wsdl ?...
> > thx abe
> >
> >
> > ----- Original Message ----
> > From: Abraham Washington <[EMAIL PROTECTED]>
> > To: tuscany-user@ws.apache.org
> > Sent: Thursday, April 24, 2008 2:48:53 PM
> > Subject: noobie wsdl location question
> >
> > hi all...
> >
> >  just a quick noobie question.  i have the composite below.  the war file
> > deploys fine in tomcat, but I can't figure out where the wsdl location
> would
> > be for the trial and create trial services.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
> >        xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0";
> >        xmlns:c="http://org.dcri.finance";
> >        name="DCRI-Finance-Composite">
> >    <component name="TrialServiceComponent">
> >        <implementation.java class="org.dcri.finance.TrialServiceImpl">
> >        </implementation.java>
> >        <reference name="createTrialService" >
> >        <interface.java interface="org.dcri.finance.CreateTrialService" />
> >        <binding.ws uri="
> > http://127.0.0.1:8087/dcri-finance-composite/CreateTrialServiceComponent
> > "/>
> >        </reference>
> >    </component>
> >    <component name="CreateTrialServiceComponent">
> >            <implementation.java
> > class="org.dcri.finance.CreateTrialServiceImpl"/>
> >            <service name="CreateTrialService">
> >                    <interface.java
> > interface="org.dcri.finance.CreateTrialService" />
> >                    <binding.ws/>
> >            </service>
> >    </component>
> > </composite>
> >
> > tomcat log:
> > INFO: Deploying web application archive dcri-finance-composite.war
> > Apr 24, 2008 2:35:05 PM
> > org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPath
> > INFO: initContextPath: /dcri-finance-composite
> >
> >
> > also, I'm curious to know if it's possible to change the port when
> running
> > within eclipse.  I'm testing within eclipse using:
> >
> > SCADomain scaDomain =
> > SCADomain.newInstance("DCRI-Finance-Composite.composite");
> >
> > and I'm wondering if it's possible to change the port 8080.
> >
> > thx - abe
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > "DCRI-Finance-Composite.composite");
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
>
> Hi
>
> On the tomcat front do you see the messages in the log where Tuscany says
> that it is adding servlet mappings. If so can you post them here? If not
> can
> you post whatever error you are seeing in the log? If you are not seeing
> anything in the log to do with Tuscany it maybe that your webapp is not
> configured to fire up Tuscany. In that case take a look at one of our
> webapp
> samples to see how the web.xml is configured and what is deployed in the
> webapp.
>
> You don't say if you are seeing messages in the JBoss log. Did you get past
> the problems from the other thread [1]?
>
> Regards
>
> Simon
>
> [1] http://www.mail-archive.com/tuscany-user%40ws.apache.org/msg02980.html
> web-app>
>
>
>
>  
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>

Hi Abe

When I deploy the Tuscany sample calculator-webapp to tomcat-6.0.13 I see
this output when Tomcat starts

C:\simon\apps\apache-tomcat-6.0.13\bin>catalina run
Using CATALINA_BASE:   C:\simon\apps\apache-tomcat-6.0.13
Using CATALINA_HOME:   C:\simon\apps\apache-tomcat-6.0.13
Using CATALINA_TMPDIR: C:\simon\apps\apache-tomcat-6.0.13\temp
Using JRE_HOME:        c:\simon\apps\j2sdk5.0-ibm
25-Apr-2008 18:57:53 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
produ
ction environments was not found on the java.library.path:
c:\simon\apps\j2sdk5.
0-ibm\jre\bin;.;C:\Program
Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDO
WS;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint Select;C:\Program
Fil
es\ThinkPad\ConnectUtilities;C:\Program Files\Common
Files\Lenovo;c:\simon\apps\
j2sdk5.0-ibm\bin;c:\simon\apps\maven-2.0.7\bin;c:\simon\apps\apache-ant-1.7.0\bi
n;C:\simon\apps\GnuPG\pub;C:\simon\apps\axis2c-bin-1.1.0-win32\lib;C:\simon\apps
\libxml2-2.6.26.threads\bin;C:\simon\apps\iconv-1.9.2.win32\bin;C:\simon\apps\zl
ib-1.2.3.win32\bin;C:\simon\php\branch-build\php-5.2.0\Debug_TS;C:\simon\apps\su
bversion\bin;C:\Program Files\QuickTime\QTSystem\
25-Apr-2008 18:57:54 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
25-Apr-2008 18:57:54 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1846 ms
25-Apr-2008 18:57:54 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
25-Apr-2008 18:57:54 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
25-Apr-2008 18:57:54 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive sample-calculator-webapp.war
25-Apr-2008 18:57:56 org.apache.tuscany.sca.host.webapp.WebAppServletHost
initCo
ntextPath
INFO: ContextPath: /sample-calculator-webapp
25-Apr-2008 18:58:01 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
25-Apr-2008 18:58:01 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
25-Apr-2008 18:58:01 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78  config=null
25-Apr-2008 18:58:01 org.apache.catalina.startup.Catalina start
INFO: Server startup in 7220 ms


Note the line "INFO: ContextPath: /sample-calculator-webapp". Which is akin
to your output "INFO: initContextPath: /dcri-finance-composite". This is the
important line.

When I now point my browser at
http://localhost:8080/sample-calculator-webapp/ the SCA composite runs and I
see some output in my browser.

Can you try the calculator sample  also and see if that works for you. We
can then look at what the difference is between it and you WAR.

Regards

Simon

Reply via email to